Please TellTheDetails.
Post the server log files and with relevant code snippets. First, we need to see, if the application is deployed successfully.
Regards, Prasad
SCJP 5 (93%)
Mark Chan
Greenhorn
Joined: Feb 05, 2012
Posts: 9
posted
0
Prasad Krishnegowda wrote:Please TellTheDetails.
Post the server log files and with relevant code snippets. First, we need to see, if the application is deployed successfully.
The link I provided earlier contains all the code, I've just copied and pasted code from the website 'as is'. If you want me to copy and paste the code from the website to here again, i really have no problem in this yet I thought it will be like stuffing the post with code which is already in the link
Regarding the log files, any idea what kind of log files you are looking for? I am pretty new to Spring and web apps and still learning so i am not sure what type of log files you are looking for, yet I will be more than glad to get them once I know which log files
I will see the code from that link, can you please post the logs from file located under your tomcathome/logs, file will be named catalina-<date>.log.
P:S: If you are very new to web applications, I would suggest you first learning Servlets and JSP's first, because servlets are the building blocks of any MVC framework.
Mark Chan
Greenhorn
Joined: Feb 05, 2012
Posts: 9
posted
0
Prasad Krishnegowda wrote:I will see the code from that link, can you please post the logs from file located under your tomcathome/logs, file will be named catalina-<date>.log.
P:S: If you are very new to web applications, I would suggest you first learning Servlets and JSP's first, because servlets are the building blocks of any MVC framework.
Thanks a lot for your advice and help. I've no problem in learning Servlet, JSP...the problem all raised when I tried to test
Please find below the content of catalina-date.log
Feb 6, 2012 1:02:11 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Feb 6, 2012 1:02:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 6, 2012 1:02:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1658 ms
Feb 6, 2012 1:02:11 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 6, 2012 1:02:11 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
Feb 6, 2012 1:02:11 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Feb 6, 2012 1:02:12 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor docs.xml
Feb 6, 2012 1:02:12 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Feb 6, 2012 1:02:12 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Feb 6, 2012 1:02:13 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor examples.xml
Feb 6, 2012 1:02:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 6, 2012 1:02:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1599 ms
Feb 6, 2012 1:04:23 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Feb 6, 2012 1:04:46 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Feb 6, 2012 1:04:46 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Feb 6, 2012 1:04:47 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Feb 6, 2012 1:05:01 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
I don't see the application getting deployed at all. Where have you placed the war file, is it under tomcathome/webapps? Also, you can try restarting tomcat, once you place the war file under webapps.
Mark Chan
Greenhorn
Joined: Feb 05, 2012
Posts: 9
posted
0
Prasad Krishnegowda wrote:I don't see the application getting deployed at all. Where have you placed the war file, is it under tomcathome/webapps? Also, you can try restarting tomcat, once you place the war file under webapps.
There is no war file there, if you checked the tutorial in the link you will notice I am just testing a simple JSP file with static text This is a very basic spring tutorial, and it is like the first step in the tutorial...please check it to know what I am referring to
Thanks for your help!
Mark Chan
Greenhorn
Joined: Feb 05, 2012
Posts: 9
posted
0
I just wanted to add that I've tested Servlet / JSP examples that come with Tomcat and all work OK, which means that Tomcat is running without a problem
As you can only see, the springapp example is not deployed. Can you please try restarting the tomcat, after you run the ant script to deploy the application.
Mark Chan
Greenhorn
Joined: Feb 05, 2012
Posts: 9
posted
0
Prasad Krishnegowda wrote:As you can only see, the springapp example is not deployed. Can you please try restarting the tomcat, after you run the ant script to deploy the application.
I have done so many times and same result Actually this is my problem from the start which is the I keep trying, restarting and nothing happens which make the problem even weirder
You could also just manually copy the war file to your webapps directory and bypass ant if ant isn't doing the copying correct.
Looking at your properties
# appserver.home=${user.home}/apache-tomcat-6.0.24
appserver.home=/usr/share/tomcat6
# for Tomcat 5 use $appserver.home}/server/lib
# for Tomcat 6 use $appserver.home}/lib
appserver.lib=${appserver.home}/lib
deploy.path=${appserver.home}/webapps
Are those directories correct? Is your tomcat installed at /user/share/tomcat6?