Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 10 of 10

Thread: Tomcat Server Fails to run Application

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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"]


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default 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.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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"]

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Tomcat Server Fails to run Application

    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.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  5. The Following User Says Thank You to Mr.777 For This Useful Post:

    anelsonwilson (March 20th, 2012)

  6. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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..................

  7. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Tomcat Server Fails to run Application

    Hey anelsonwilson, don't call me Sir, just say with my name, i feel like bossy
    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.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  8. The Following User Says Thank You to Mr.777 For This Useful Post:

    anelsonwilson (March 20th, 2012)

  9. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default 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
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  10. #8
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default 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:

    SEVERE: Error listenerStart
    Search for that line and I suspect you'll quickly find a solution.

  11. The Following User Says Thank You to Sean4u For This Useful Post:

    anelsonwilson (March 20th, 2012)

  12. #9
    Member
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Tomcat Server Fails to run Application

    Probably the port number is being used by another application. Change listen port of Tomcat.

  13. The Following User Says Thank You to Bob_Sadarka For This Useful Post:

    anelsonwilson (March 20th, 2012)

  14. #10
    Junior Member
    Join Date
    Mar 2012
    Posts
    4
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default 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 !!!

Similar Threads

  1. server/client application fails when client closes
    By billykid in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2012, 01:54 AM
  2. getting NPException while running my struts first application using tomcat
    By rafishaik999 in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: September 19th, 2011, 05:56 AM
  3. Hi Iam getting while iam deployin the war file in the tomcat server
    By nrao in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 10th, 2011, 07:24 PM
  4. JAAS implementaion for web application with tomcat
    By singharun in forum Java Servlet
    Replies: 0
    Last Post: August 30th, 2010, 05:56 AM
  5. Java Application Server
    By goutamdaphtari in forum Java Theory & Questions
    Replies: 0
    Last Post: July 14th, 2010, 11:53 PM