Tomcat Server Fails to run Application
I have downloaded one application in JAVA.When I start the tomcat server by startup.bat file and hit the URL "localhost:8080" it shows Tomcat Server running without any problem.Also my application "localhost:8080/abc" also runs fine. But when the same application(without any file change) when tried on other PC it doesn't work! although the tomcat server works fine.
I have searched the internet and found no solution for it.In other PCs,tomcat server is working fine but the application (abc) doesn't works while I hit the URL.The same application runs on some PCs very fine but it goes wrong while on other PC.......
Following is the error log in tomcat....
Pls help me to find out the solution.....
Any tip is appreciated............
Mar 7, 2012 1:34:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Mar 7, 2012 1:34:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/logicaldoc] startup failed due to previous errors
Mar 7, 2012 1:34:43 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/logicaldoc] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 7, 2012 1:34:43 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/logicaldoc] appears to have started a thread named [Store dav-resources Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
Mar 7, 2012 1:34:43 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Mar 7, 2012 1:34:43 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Mar 7, 2012 1:34:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 7, 2012 1:34:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Re: Tomcat Server Fails to run Application
Can you be more precise about the system architecture where you trying to run this. And what's the application configuration, you are tyring to run.
Note: Read the Forums Rules. This section is not for posting questions.
Re: Tomcat Server Fails to run Application
I am sorry to post this in wrong thread.....I am a new user and Desperately searching for the answer........
As per your query..I have mentioned the following answers.......
System Architecture :
Window 7 OS,4GB RAM,core i5
Again I want to convey you that I have not changed any file inside that downloaded application, but still it runs on some PC and doesn't in some.I have tried in all OS like Win7,XP.
The detailed Tomcat error log(PC in which application does not runs) is as follows :
Mar 9, 2012 3:09:29 PM 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: C:\Program Files\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32 ;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Mar 9, 2012 3:09:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:09:29 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:09:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 316 ms
Mar 9, 2012 3:09:29 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 9, 2012 3:09:29 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
Mar 9, 2012 3:09:29 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive logicaldoc.war
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/st...rmittedTaglibs is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Mar 9, 2012 3:09:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Mar 9, 2012 3:09:38 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Mar 9, 2012 3:09:38 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:09:38 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Mar 9, 2012 3:09:38 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Mar 9, 2012 3:09:38 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:09:42 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Mar 9, 2012 3:09:42 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/logicaldoc] startup failed due to previous errors
Mar 9, 2012 3:09:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/logicaldoc] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 9, 2012 3:09:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/logicaldoc] appears to have started a thread named [Store dav-resources Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
Mar 9, 2012 3:09:42 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Mar 9, 2012 3:09:42 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Mar 9, 2012 3:09:42 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:09:42 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:09:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12754 ms
Mar 9, 2012 3:23:21 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:23:22 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:23:23 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Mar 9, 2012 3:23:23 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/logicaldoc]] after stop() had already been called. The second call will be ignored.
Mar 9, 2012 3:23:23 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:23:23 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:23:24 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:23:24 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:23:27 PM 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: C:\Program Files\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32 ;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Mar 9, 2012 3:23:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:23:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 314 ms
Mar 9, 2012 3:23:27 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 9, 2012 3:23:27 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive logicaldoc.war
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/st...rmittedTaglibs is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Mar 9, 2012 3:23:27 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: JavaServer Pages Standard Tag Library is already defined
Mar 9, 2012 3:23:31 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Mar 9, 2012 3:23:31 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/logicaldoc] startup failed due to previous errors
Mar 9, 2012 3:23:31 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/logicaldoc] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 9, 2012 3:23:31 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/logicaldoc] appears to have started a thread named [Store dav-resources Spool Thread] but has failed to stop it. This is very likely to create a memory leak.
Mar 9, 2012 3:23:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Mar 9, 2012 3:23:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Mar 9, 2012 3:23:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:23:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:23:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4066 ms
Mar 9, 2012 3:41:33 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:41:34 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:41:35 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Mar 9, 2012 3:41:35 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/logicaldoc]] after stop() had already been called. The second call will be ignored.
Mar 9, 2012 3:41:35 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:41:35 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Mar 9, 2012 3:41:35 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Mar 9, 2012 3:41:35 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Re: Tomcat Server Fails to run Application
Quote:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32 ;C:\WINDOWS;C:\WINDOWS\System32\Wbem
The exception is clear. The application can not find the native library you are using. Remember native libraries are platform dependent. So, which native library are you using in your application? If you are using then place the right native library in the right place.
Re: Tomcat Server Fails to run Application
Respected sir,
I have managed to keep all the required files in the PATH environment which you have mentioned here.Also I have changed almost all the native library of my application with a newer version.But still the same error is coming.....
Can you be more clear on "native library" as mentioned by you above.........
Thanking you for spending your precious time with this query..................
Re: Tomcat Server Fails to run Application
Hey anelsonwilson, don't call me Sir, just say with my name, i feel like bossy :P
Well, by native library i mean, the libraries which are platform dependent. Like all the java libraries are platform independent which means that they can run on any java compatible platform. And all those libraries which are platform dependent like they are written in the languages i.e. C,C++ etc, these things can just run on the platform on which these are compiled and executed, so native libraries are different for different for different OS.
Re: Tomcat Server Fails to run Application
I've moved this thread out of the introductions forum. Please read this: http://www.javaprogrammingforums.com...e-posting.html
Re: Tomcat Server Fails to run Application
This line looks like the root of your problem, all the others look 'normal' for a badly configured tomcat:
Quote:
SEVERE: Error listenerStart
Search for that line and I suspect you'll quickly find a solution.
Re: Tomcat Server Fails to run Application
Probably the port number is being used by another application. Change listen port of Tomcat.
Re: Tomcat Server Fails to run Application
Thanks to all.Now the problem has been solved.The Solution for this problem was to make an "endorsed" folder containing the jaxb jar file inside Tomcat directory.That's it !!!!!
Thanks to all !!!