Letractively / jcatapult

Automatically exported from code.google.com/p/jcatapult
0 stars 0 forks source link

Tomcat startup fails on Windows 2003 #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new project on a Win2k3 Server image
2. Run target/tomcat/bin/tomcat.bat run

What is the expected output? What do you see instead?
Server logs show a stack trace:

Apr 25, 2009 3:55:04 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
C:\AppDev\projects\firstCatapult\web -Xmx256M -Djava.awt.headless=true does
not exist or is not a re
adable directory
        at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
        at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:385
5)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Apr 25, 2009 3:55:04 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()

What version of the product are you using? On what operating system?

Product: JCatapult module dowloaded via savant-1.5.1
OS: Windows 2003 Server SP2

Please provide any additional information below.

Removing the double quotes around the value of the JAVA_OPTS variable on
line 25 of tomcat.bat fixes this problem. The source file in the framework
needs to be updated as well.

Original issue reported on code.google.com by johnpres...@gmail.com on 25 Apr 2009 at 10:13

GoogleCodeExporter commented 8 years ago
This is a bug in Savant. The upstream issue is located here:

    http://code.google.com/p/savant-build/issues/detail?id=9

Original comment by bpontare...@gmail.com on 26 Apr 2009 at 1:58

GoogleCodeExporter commented 8 years ago
This bug was fixed in version 1.0.1 of the plugin. JCatapults templates have 
been updated to use this version of 
the tomcat plugin. If you want to use this fix for an exsting project, just 
update your project.xml file with this 
plugin defintion:

  <plugin group="plugins.savant.inversoft.org" name="tomcat" version="1.0.1"/>

Otherwise, all new projects created should use the new version.

Original comment by bpontare...@gmail.com on 26 Apr 2009 at 2:09