2013年10月1日星期二

java publishing problems

Trying to publish a project to another computer , the computer installed the jdk, tomcat, database , project also placed under the tomcat webapps , start, how can not access it ? Need to do those things ?
------ Solution ---------------------------------------- ----
then the path problem . Your project following localhost: 8888/project/index.html you can not build a index.html
------ Solution ---------------- ----------------------------
home called project?
------ Solution ---------------------------------------- ----
can see tomcat log
------ Solution ------------------------- -------------------
directly in the tomcat server.xml to configure the following about it . docBase path is the path of your project


try this right
------ Solution ------------------------------- -------------

  
project refers ---- Project , waysun is my project , localhost: 8888/waysun, error 404 , this is  

waysun following directory structure does not comply with JavaEE specification

Or waysun catalog no index.html or index.jsp file
------ For reference only --------------------- ------------------
NOTE : tomcat startup is successful , localhost: 8888/examples, tomcat own project is accessible , my own projects show 404
------ For reference only ------------------------------------- -
localhost: 8888 / project name , directly on 404 the
------ For reference only ---------------------- -----------------
plus see,


index.html
index.htm
index.jsp

------ For reference only ------------------------- --------------

plus there ? That folder
------ For reference only ---------------------------------- -----

plus there ? That folder   web.xml
------ For reference only ------------------------------- --------

plus there ? That folder        web.xml   added there , index.jsp

------ For reference only ---------------------------------- -----
page path that is not
------ For reference only ------------------------- --------------

plus there ? That folder        web.xml   Another question I do not think 404 to plus without these associated
------ For reference only --------------------- ------------------
convenient to cut a figure file directory
------ For reference only ------ ---------------------------------
localhost: 8888, tomcat can be displayed the , project is placed under the webapps that localhost: 8888/project, 404 this is not a path problem , the feeling is less than the project to read , but I do not know where is wrong, or less steps
- ----- For reference only ---------------------------------------
localhost: 8888, tomcat can be displayed , project is placed under the webapps that localhost: 8888/project, 404 this is not a path problem , the feeling is less than the project to read , but I I do not know where the wrong steps or less  
------ For reference only ----- ----------------------------------


project is the project name I localhost: 8888 / project name , it 404 a
------ For reference only ------------ ---------------------------

  
project is the project name I localhost: 8888 / project name , it is a 404   weird
------ For reference only -------------------------------- -------

    
project is the project name I localhost: 8888 / project name , it is a 404        weird   was first released , did not get off , Oh, thank enthusiastic reply ah
------ For reference only ------------------- --------------------

      
project is the project name I localhost: 8888 / project name , it is a 404            weird        was first released , did not get off , Oh, thank enthusiastic response ah   project root, following what
------ For reference only ---------------------------- -----------

        
project is the project name I localhost: 8888 / project name , it is a 404                weird            was first released , did not get off , Oh, thank enthusiastic response ah        project root, below it  

no longer with the root file tied
------ For reference only --------------------------- ------------

          
project is the project name I localhost: 8888 / project name , it is a 404                    weird                was first released , did not get off , Oh, thank enthusiastic response ah            project root, below it          
  
longer , juxtaposed with the root file   try to get the root li
------ For reference only --------------------------- ------------
project has no error log ?
------ For reference only -------------------------------------- -

            
project is the project name I localhost: 8888 / project name , it is a 404                        weird                    was first released , did not get off , Oh, thank enthusiastic response ah                project root, below it                
    
longer , juxtaposed with the root file        try to get the root li   Just tried it , root has the following items ah ,
------ For reference only ----------------------- ----------------
not wrong , I do not see wrong , and my own computer running normally
------ For reference only - --------------------------------------
see your screenshot directory , there is no project of this project , ah, this is certainly not found . localhost: 8080 / project name , the project name in the webapps directory is to be found , and if the project name bit root can be omitted . Then the index.html is compiled to put your project root directory, is the project 's first directory
------ For reference only ----------- ----------------------------


is included in do, I try
------ For reference only ----------------- ----------------------

  
is included in do, I try   right, yes house in
------ For reference only -------------------- -------------------
is placed , the house is not wrong
------ For reference only ------- --------------------------------


project refers ---- Project , waysun is my project , localhost: 8888/waysun, error 404 , so
------ For reference only ------ ---------------------------------
rely , tomcat start all die , (tomcat set to start automatically start )
------ For reference only ----------------------------------- ----
rely , tomcat start all die , (tomcat set to start automatically activated )  
. . . . Deletion heavy copy of it
------ For reference only ------------------------------- --------
lay the war on your local computer bag, now try the local tomcat , if you can directly copy the war package to another table, if not explain the tomcat problem, if not work in the local , that is the project issues . Or you put the machine after deployment after deployment in the webapps find the generated project directory directly copied to another machine under the tomcat webapps
------ For reference only -------- -------------------------------
not start up ? Whether the process has been occupied
------ For reference only -------------------------------- -------


I have tried every method under , thank you !
------ For reference only -------------------------------------- -

tomcat set into boot automatically start running in the background , the process of possession, is that it refers to ?
------ For reference only -------------------------------------- -

tomcat set into boot automatically start running in the background , the process of possession, is that it refers to ?   process to find what java, kill off, and then restart try
------ For reference only --------------------- ------------------

tomcat set into boot automatically start running in the background , the process of possession, is that it refers to ?        process to find what java, kill off, and then try to restart  
line to try it
------ For reference only ----------------------------- ----------
the server.xml tomcat directory sent to look
------ For reference only ------------ ---------------------------
404 access path error
------ For reference only ---- -----------------------------------
web.xml issues now !
------ For reference only -------------------------------------- -
location right place to put it.
------ For reference only -------------------------------------- -

    
project refers ---- Project , waysun is my project , localhost: 8888/waysun, error 404 , this is          
  
waysun following directory structure does not comply with JavaEE specification   
  
Or waysun catalog no index.html or index.jsp file   I copied the whole project in the past, so you can see , all the jsp directory in the project 's first , there are index.jsp, but the project did not use it, I login page is login.jsp, you see how to be considered spec?
------ For reference only -------------------------------------- -


tomcat 's web.xml,
index.html
index.htm
index.jsp

replaced login.jsp Is that right ?
------ For reference only -------------------------------------- -
first method: tomcat in the conf directory, in server.xml of , node add the following:


Context node attributes , you can see detailed documentation.

The second method: a web project files pc copied to the webapps directory .

The third approach : very flexible in the conf directory, create Catalina \ localhost directory in the directory create an xml file name can not be free to take , and the path to that name after the same, in accordance with the below this path configuration , xml name should it should be hello, the xml file content is:



These three methods I have tried , will not work, it should be " irrigation Hunzi " put it : waysun under the directory structure does not comply with JavaEE specification

Or waysun catalog no index.html or index.jsp file
------ For reference only ------------------- --------------------
there a possibility yes. Your project is JDK7 's . tomcat version is too low and does not support ah. Not used 7 of 7 see your screenshot . Try another version of the JDK low
------ For reference only ------------------------------- --------
found that the reasons , I am the first directory under no index.jsp, plus you can, but the project can not run , the above path is all wrong, like my login window , http://localhost:8888/waysun3/WebRoot/login.jsp, be sure to add WebRoot, on my own computer is not used ( to copy and paste the entire project is in webapps below ) ; and Login Jump words the path is wrong , is the " irrigation Hunzi " says : waysun under the directory structure does not comply with JavaEE specification , please talk about how to be considered normative it ?
------ For reference only -------------------------------------- -
not a problem of low jdk , tried, the directory structure is not standardized, how norms considered it, my first release , the company I am a man ah
------ For reference only ---------------------------------------
can start, the machine can be accessed program is not a problem
other machines can not access , look at the firewall

------ For reference only ---------------------------------- -----
If so , I suggest you export directly into the war, and then put under tomcat try.
------ For reference only -------------------------------------- -
good , just I visited , the result , Firefox can not establish a connection to the server is 192.168.1.100 .

------ For reference only ---------------------------------- -----


export war, directly into the webapps below to configure anything else ? I would first try to say it
------ For reference only -------------------------------- -------


You should only copy the files under webroot directory

------ For reference only ---------------------------------- -----
javaEE directory structure


details Reference http://docs.oracle.com/javaee/6/tutorial/doc/bnadx.html
------ For reference only -------- -------------------------------


Thank you ! I export the war file , you can now run , -------- downloaded the two jar files , jstl.jar and stander.jar, Thank you very much , ladies !

没有评论:

发表评论