[Opensource] Copying the Expresso_Config dtd to Core directory

Mike Traum mtraum at jgroup.net
Sat Jan 10 10:34:37 PST 2004


As far as I'm aware, Expresso_ConfigXXX.dtd must be in the
WEB-INF/classes/com/jcorporate/expresso/core directory and that is the
permanent solution (or having it in a .jar). I think figuring out why
it's being deleted is the solution. 

1. Are you using the expresso source to build the class files into
/classes, or are you using the .jar? (I'm assuming the source)

2. If you're using the source, I'm assuming that your IDE is doing a
complete rebuild sometimes, which often will delete the entire classes
directory and rebuild everything. You need to make sure your IDE is set
up to copy those files over (in Eclipse, for example, it's in Project
Properties -> Java Compiler -> Build Path -> Filtered Resources)

I'm guessing (2) will solve your problem, because I can think of nothing
else that would be deleting files from classes...

hth,
mike


On Fri, 2004-01-09 at 22:41, Venkatesh Krishnamurthy wrote:
> Hi,
> 
>  
> 
> Sometimes when I start my Tomcat/Expresso server I get the following
> message, and I read in one of the mail archives that, when somebody
> gets the following message, copy the  Expresso_ConfigXXX.dtd to
> webapps\ROOT\WEB-INF\classes\com\jcorporate\expresso\core 
> directory.   Actually, this works, and I know that this is not a
> permanent solution. More than that,  after copying the file to the
> above directory, it works fine for sometime, but at some point of time
> the file is getting deleted and I need to recopy the dtd file back to
> the above directly. Any permanent solution to the above problem is
> appreciated. 
> 
>  
> 
>  
> 
> javax.servlet.ServletException: ConfigManager: Unable to get URL to
> the expresso-config dtd
> 
>         at
> com.jcorporate.expresso.core.misc.ConfigManager.config(ConfigManager.java:1046)
> 
>         at
> com.jcorporate.expresso.core.servlet.StdServlet.init(StdServlet.java:378)
> 
>         at
> com.jcorporate.expresso.core.servlet.DBServlet.init(DBServlet.java:105)
> 
>         at
> com.jcorporate.expresso.core.servlet.InitServlet.init(InitServlet.java:135)
> 
>         at
> com.jcorporate.expresso.core.servlet.DefaultInit.init(DefaultInit.java:105)
> 
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> 
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> 
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
> 
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
> 
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
> 
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> 
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> 
>         at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
> 
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
> 
>         at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
> 
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
> 
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
> 
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
> 
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
> 
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
> 
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:497)
> 
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> 
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> 
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> 
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> 
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
>         at java.lang.reflect.Method.invoke(Method.java:324)
> 
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
>  
> 
> Venkatesh
> 
>  
-- 

Mike Traum
--
JGroup Expert 
Expresso Core Developer 
Providing support and development services - Available Now!




More information about the Opensource mailing list