Bugs item #547136, was opened at 2002-04-22 08:55
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=547136&group_id=22866
Category: JBossServer
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Ignacio Coloma (alu1344)
>Assigned to: Scott M Stark (starksm)
Summary: web.xml includes are not supported again
Initial Comment:
In current alpha (as of 22 April) XML includes into
web.xml are again not supported. That bug was resolved
before, but recently has arisen anew.
Including other XML files inside web.xml is the easiest
way to precompile JSPs. To get this behaviour web.xml
has to be modified:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
[
<!ENTITY web-jsp SYSTEM "web-jsp.xml">
]
>
...
where the file contents is desired, put:
&web-jsp;
The web-jsp.xml file can be empty, but it must exist.
This bug is associated with the Webapp container, was
fixed once but now it's alive again. Assigning a SYSTEM
ID to the web.xml file or somehow telling it in which
directory it is located should solve the problem.
Stack trace follows.
16:57:14,372 ERROR [XmlFileLoader] Relative URI
"web-jsp.xml"; can not be resolved without a document
URI.:-1:7
org.xml.sax.SAXParseException: Relative URI
"web-jsp.xml"; can not be resolved without a document URI.
at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108)
at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3102)
at
org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2700)
at
org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2672)
at
org.apache.crimson.parser.Parser2.maybeEntityDecl(Parser2.java:2574)
at
org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1204)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1132)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:260)
at
org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:982)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:407)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:658)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:350)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:530)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:410)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
at $Proxy0.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:341)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:281)
at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:665)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:507)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:470)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:452)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:320)
at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:218)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:512)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=547136&group_id=22866
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development