Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2017
    Posts
    1
    Rep Power
    0

    Default Getting Error in ApacheTomCat Server when I give Localhost:Port and context file path

    I have imported maven project into eclipes luna and configured the project to tomcat 8.0.41 outside the application and configured the tomcat7(tomcat7-maven-plugin) plugin dependency in pom.xml to map the application to that server. Also, I configured settings.xml and tomcat-user.xml with username and password. I have also increased the memory size.
    I am able to bulid successfully and run the server. I am able to deploy the application in webapps of tomcat. When i give the localhost:port and context file path in browser then I am getting 404 error.
    I got below errors in server logs:
    at org.apache.catalina.core.StandardContext.listenerS top(StandardContext.java:4900)
    at org.apache.catalina.core.StandardContext.stopInter nal(StandardContext.java:5537)
    at org.apache.catalina.util.LifecycleBase.stop(Lifecy cleBase.java:221)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:149)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:729)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:940)
    at org.apache.catalina.startup.HostConfig$DeployWar.r un(HostConfig.java:1816)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4853)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:145)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:729)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:940)
    at org.apache.catalina.startup.HostConfig$DeployWar.r un(HostConfig.java:1816)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    Please let me know the solutions?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Getting Error in ApacheTomCat Server when I give Localhost:Port and context file

    I am getting 404 error.
    Could you give us some more information on that?
    What was the URL that returned the 404?
    Where is the file located that you were trying to load?
    What is in the configuration files?
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Getting Error in ApacheTomCat Server when I give Localhost:Port and context file

    Those are just (part of?) the stacktraces.
    What were the actual errors, including the full stacktrace?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    399
    Rep Power
    6

    Default Re: Getting Error in ApacheTomCat Server when I give Localhost:Port and context file

    Check whether there is a log file in your Tomcat logs folder, probably something like localhost.log.

Similar Threads

  1. Replies: 3
    Last Post: 11-16-2015, 11:40 AM
  2. how to manage old requests due to context path change
    By makpandian in forum New To Java
    Replies: 6
    Last Post: 06-16-2014, 09:53 AM
  3. Replies: 5
    Last Post: 08-02-2013, 06:28 AM
  4. How to give class path for .properties file
    By kewlkeny in forum Spring
    Replies: 1
    Last Post: 01-23-2012, 02:40 PM
  5. how can i give a file path to java stream ?
    By sheckoo in forum New To Java
    Replies: 2
    Last Post: 11-05-2008, 08:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •