This discussion is archived
1 2 Previous Next 25 Replies Latest reply: May 7, 2008 12:14 AM by 807581 RSS

Tomcat start problem in NetBeans

807581 Newbie
Currently Being Moderated
Hello all,

This may not be the best place to post it. Anyhow, everything was working perfect but then I had to reinstall NetBeans with java 1.4 and not nothing works. I can't build the project in NB. Here is what I get:


Using CATALINA_BASE: C:\Documents and Setti.netbeans\4.1\jakarta-tomcat-5.5.7_base
Using CATALINA_HOME: C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: C:\Documents and Setti.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp
Using JAVA_HOME: C:\j2sdk1.4.2_10
Created MBeanServer with ID: 913fe2:1091f29b295:-8000:PALN00407343A:1
Jan 30, 2006 10:32:40 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Jan 30, 2006 10:32:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 921 ms
Jan 30, 2006 10:32:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 30, 2006 10:32:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Jan 30, 2006 10:32:41 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Documents and SettiDesktop\FirstWebApplication\build\web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3 720)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3892)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[FirstWebApplication] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4101)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Documents and SettiDesktop\Foo\build\web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3 720)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3892)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 30, 2006 10:32:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[Foo] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4101)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:43 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Documents and SettiDesktop\FooBar\Web\build\web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3 720)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3892)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jan 30, 2006 10:32:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jan 30, 2006 10:32:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 30, 2006 10:32:43 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[Web] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4101)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:44 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\WebLogic\build\web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3 720)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3892)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jan 30, 2006 10:32:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jan 30, 2006 10:32:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 30, 2006 10:32:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
LifecycleException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[WebLogic] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4101)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport. java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:44 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
Jan 30, 2006 10:32:44 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 30, 2006 10:32:45 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/110 config=null
Jan 30, 2006 10:32:45 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 30, 2006 10:32:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4246 ms
Jan 30, 2006 10:32:45 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8025]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 30, 2006 10:32:45 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8084

____________________________________________________

after 2 mins I get the following;


init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
do-dist:
dist:
run-deploy:
Starting server Bundled Tomcat (5.5.7)
Starting Tomcat process...
Tomcat server started.
In-place deployment at C:\Documents and SettiDesktop\WebSite\Logic\FirstWebApplication\build\web
deploy?config=file:/C:/DOCUME~1/LOCALS~1/Temp/context16202.xml&path=/FirstWebApplication
Deployment error: Deployment timed out after 120 seconds.. See the server log file for details.
C:\Documents and SettiDesktop\WebSite\Logic\FirstWebApplication\nbproject\build-impl.xml:356: Deployment error: Deployment timed out after 120 seconds.. See the server log file for details.
BUILD FAILED (total time: 7 minutes 46 seconds)



Any ideas on what is going on?

Thank you.
  • 1. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    If a reinstall of netbeans is failing, one possible reason could be that the new install is still using the older user directory.

    Can u try running the ide with a new userdir:

    runide.exe -userdir <path_to_new_userdir>


    Ref: http://blogs.sun.com/roller/page/karthikr

    Also, from the log file:

    Using CATALINA_TMPDIR: C:\Documents and Setti.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp
    java.lang.IllegalArgumentException: Document base C:\Documents and SettiDesktop\FirstWebApplication\build\web does not exist or is not a readable directory


    For some reason, "c:\documents and settings" seems to be truncated to "c:\documents and setti"...
  • 2. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    I see a couple of things that seem odd:

    (1) as noted above your path information seems contaminated. And since these path lines are followed by "file doesnt exist" errors, I would certainly find out what happened there.

    (2) it looks like you have NB4.1. You said you had to re-install NB with java 1.4. This may not be necessary. You can use NB4.1 and java1.5; then set the source level in your project to 1.4. This will force the build to use 1.4 while building your project.

    (3) the problem seems to be inthe deployment and not in the build. This seems to be caused by the class problem.
  • 3. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Thanks for the input
    Path information is truncated is because I changed it while I made the post (accidentally).

    FirstWebApplication project (or whatever it was called) was created back a WHILE ago and I deleted that. Now it is complaning that it can't find it.

    Yes you are tight when I build the project - create .war file it fails.

    If reinstall does not help what can be done?

    What do you mean when you say "This seems to be caused by the class problem."?

    I created a new, clean project and tried to build it right away but it still fails.

    Thanks.
  • 4. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    The following is another thread with a similar problem:

    http://forum.java.sun.com/thread.jspa?threadID=642716


    I created a web application project (WebApplication1) using NB, but even after I deleted this project (outside of IDE), I'm still getting refereces in Tomcat to this deleted project. For example, when I create completely brand new web proejcts, and run it with Tomcat, Tomcat gives me errors such as...

    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base ~/WebApplication1\build\web does not exist or is not a readable director

    Can someone tell me what I need to do/change, to get rid of these references to old projects? I've already tried uninstalling and reinstalling NB IDE 4.1.....

    Reply:

    I believe that you need to remove the project references from Tomcat's files, as well as just deleting the project.

    In the Runtime window, expand Servers, start Tomcat (rightclick it), and expand Bundled Tomcat and Web Applications. Then righclick the project and undeploy.

    You need to do this to any project you remove manually. (and for SJS App Server, as well.) NB has an enhancement task to delete projects from within NB, but it's for the future.


    Can u try the above and see if it solves your issue?
  • 5. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    hello,

    I did not try what you've suggested because now I am getting a different error message.

    There is a pop up comes up with this info:

    "Deployment error: null. See the server log file for details"

    So I went to C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\logs
    there is one file with name 'dummy' which is empty.

    ?

    Thanks
  • 6. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Pl. refer to http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=60415:


    Tomcat 5.5.7 has been shipped without preconfigured logging and thus you had to configure it by yourself. Starting with 5.5.9 Tomcat comes with preset JULI logging.
    For more info refer to:
    http://tomcat.apache.org/tomcat-5.5-doc/logging.html


    Also, you can check the server output by right-clicking on the tomcat server instance and selecting 'View server output' in the context menu.

    btw, you may still want to try undeploying the problematic applications (like FirstWebApplication) if they still show up in the list of webapps.
  • 7. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Thanks,

    first link seems to be broken.

    where do i get "tomcat server instance "?

    Thanks
  • 8. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    The link is:

    http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=60415

    To view the server output:
    Switch to runtime tab
    Expand servers
    Select 'Bundled Tomcat (5.5.7)
    Right-click and select 'View server output'

    The option 'view server output' will be greyed out if the server is not running. You will have to start the server for the option to become available.
  • 9. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Hello,

    I am back to the same problem.
    When I try to "Run Project" it says that FirstWebApplication does not exist.

    I went to "Runtime" tab expended "Servers" and found "Bundled Tomcat (5.5.7)" in there. However "Bundled Tomcat (5.5.7)" does not have any subnodes.

    I right-clicked on it and tried to run it and it still says that FirstWebApplication does not exist.

    ?

    Thanks.
  • 10. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    I also get something like this
    Using CATALINA_BASE:   C:\Documents and Settings\I808036\.netbeans\4.1\jakarta-tomcat-5.5.7_base
    Using CATALINA_HOME:   C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7
    Using CATALINA_TMPDIR: C:\Documents and Settings\I808036\.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp
    Using JAVA_HOME:       C:\j2sdk1.4.2_10
    FATAL ERROR in native method: No transports initialized
    Error creating shared memory, rc = -7
    Transport dt_shmem failed to initialize, rc = -7.
  • 11. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    any help?
  • 12. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Once you expand the servers node and select 'Bundled tomcat (5.5.7)', can u right-click and select 'Start/stop server' to start the server? Does the server start? What is the output you see in the output window (in the 'Output- Bundled tomcat(5.5.7)' tab)?
  • 13. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    Thanks.

    No, it does not.
    I get a pop up on which I see "Server is running." Under Bundled Tomcat I see "Web Applications". I click on it and sub node "Please wait..." appears for 5 seconds and then goes away.

    Then, I stopped the server and started it over again.
    In this case I get a pop up with "Waiting for Tomcat"
    Output window:

    Using CATALINA_BASE: C:\Documents and Settings\.netbeans\4.1\jakarta-tomcat-5.5.7_base
    Using CATALINA_HOME: C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7
    Using CATALINA_TMPDIR: C:\Documents and Settings\.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp
    Using JAVA_HOME: C:\j2sdk1.4.2_10
    Created MBeanServer with ID: 91cee:10931490f8d:-8000:PALN00407343A:1
    Feb 3, 2006 11:00:06 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    Feb 3, 2006 11:00:06 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1161 ms
    Feb 3, 2006 11:00:06 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 3, 2006 11:00:06 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
    Feb 3, 2006 11:00:07 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Feb 3, 2006 11:00:09 AM org.apache.catalina.core.StandardContext resourcesStart
    SEVERE: Error starting static Resources
    java.lang.IllegalArgumentException: Document base C:\Documents and Settings\Desktop\FirstWebApplication\build\web does not exist or is not a readable directory
  • 14. Re: Tomcat start problem in NetBeans
    807581 Newbie
    Currently Being Moderated
    In your user directory (<usedir>/jakarta-tomcat-5.5.7_base/conf/Catalina/localhost) do u see a file called FirstWebApplication1.xml ? If so, can u move that file elsewhere, restart the ide and try restarting the server?
1 2 Previous Next