Bugs item #970379, was opened at 2004-06-10 06:51
Message generated for change (Comment added) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=970379&group_id=22866

Category: JBossServer
Group: v3.2
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Steve Wolfangel (swolfangel)
>Assigned to: Scott M Stark (starksm)
Summary: EarDeployer tries to validate DTD when ValidateDTDs=false

Initial Comment:
I have an ear file that contains both an application.xml 
file and a jboss-app.xml file. We have a customer that 
does not have access to the internet. When the ear 
deploys I am getting an unknownHostException. It 
appears that XMLFileLoader is trying to validate the 
jboss-app.xml file against the dtd even though 
ValidateDTDs is set to false. (application.xml does not 
have this problem). When I remove the jboss-app.xml 
file the ear deploys fine, but I need this file to control 
the classloader.  


==========================================
=====================================
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: D:\metamatrix\41EA2JB32\jboss\bin\..
.
  JAVA: D:\metamatrix\41EA2JB32\jdk142\bin\java
.
  JAVA_OPTS: -ms64m -XX:MaxPermSize=64m -
mx256m  -Djava.io.tmpdir=D:\metamatrix\41EA2JB32
\data\temp -Djava.awt.headless=true -
Dprogram.name=run.bat
.
  CLASSPATH: D:\metamatrix\41EA2JB32
\lib;D:\metamatrix\41EA2JB32
\license;D:\metamatrix\41EA2JB32
\lib\mmsupport.jar;D:\metamatrix\41EA2JB32
\lib\jdbc\MJjdbc.jar;D:\metamatrix\41EA2JB32
\webreports;D:\metamatrix\41EA2JB32\jdk142
\lib\tools.jar;D:\metamatrix\41EA2JB32\jboss\bin\run.jar
.
==========================================
=====================================
.
10:43:30,046 INFO  [Server] Starting JBoss (MX 
MicroKernel)...
10:43:30,046 INFO  [Server] Release ID: JBoss 
[WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 
date=200311301445)
10:43:30,062 INFO  [Server] Home Dir: 
D:\metamatrix\41EA2JB32\jboss
10:43:30,062 INFO  [Server] Home URL: 
file:/D:/metamatrix/41EA2JB32/jboss/
10:43:30,062 INFO  [Server] Library URL: 
file:/D:/metamatrix/41EA2JB32/jboss/lib/
10:43:30,062 INFO  [Server] Patch URL: null
10:43:30,062 INFO  [Server] Server Name: metamatrix
10:43:30,062 INFO  [Server] Server Home Dir: 
D:\metamatrix\41EA2JB32\jboss\server\metamatrix
10:43:30,062 INFO  [Server] Server Home URL: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/
10:43:30,062 INFO  [Server] Server Data Dir: 
D:\metamatrix\41EA2JB32\jboss\server\metamatrix\data
10:43:30,062 INFO  [Server] Server Temp Dir: 
D:\metamatrix\41EA2JB32\jboss\server\metamatrix\tmp
10:43:30,062 INFO  [Server] Server Config URL: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/c
onf/
10:43:30,062 INFO  [Server] Server Library URL: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/li
b/
10:43:30,062 INFO  [Server] Root Deployment Filename: 
jboss-service.xml
10:43:30,078 INFO  [Server] Starting General Purpose 
Architecture (GPA)...
10:43:30,765 INFO  [ServerInfo] Java version: 
1.4.2,Sun Microsystems Inc.
10:43:30,765 INFO  [ServerInfo] Java VM: Java HotSpot
(TM) Client VM 1.4.2-b28,Sun Microsystems Inc.
10:43:30,765 INFO  [ServerInfo] OS-System: Windows 
2003 5.2,x86
10:43:30,875 INFO  [ServiceController] Controller MBean 
online


10:44:28,296 INFO  [Engine] StandardManager
[/querybuilder]: Seeding random number generator class 
java.security.SecureRandom
10:44:28,312 INFO  [Engine] StandardManager
[/querybuilder]: Seeding of random number generator 
has been completed
10:44:28,312 INFO  [Engine] StandardWrapper
[/querybuilder:default]: Loading container servlet default
10:44:28,312 INFO  [Engine] StandardWrapper
[/querybuilder:invoker]: Loading container servlet invoker
10:44:28,953 INFO  [MainDeployer] Deployed package: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/d
eploy/querybuilder.war
10:44:28,984 INFO  [MainDeployer] Starting deployment 
of package: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/d
eploy/MMServer.ear
10:44:31,687 INFO  [EARDeployer] Init J2EE application: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/d
eploy/MMServer.ear
10:44:34,093 ERROR [MainDeployer] Could not initialise 
deloyment: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/d
eploy/MMServer.ear
org.jboss.deployment.DeploymentException: 
java.sun.com; - nested throwable: 
(java.net.UnknownHostException: java.sun.com)
        at 
org.jboss.metadata.XmlFileLoader.getDocument
(XmlFileLoader.java:316)
        at 
org.jboss.metadata.XmlFileLoader.getDocument
(XmlFileLoader.java:247)
        at org.jboss.deployment.EARDeployer.init
(EARDeployer.java:78)
        at org.jboss.deployment.MainDeployer.init
(MainDeployer.java:696)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:632)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:605)
        at 
sun.reflect.GeneratedMethodAccessor18.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:546)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:177)
        at $Proxy6.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:302)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:476)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er.startService(AbstractDeploymentScanner.java:274)
        at org.jboss.system.ServiceMBeanSupport.start
(ServiceMBeanSupport.java:192)
        at 
sun.reflect.GeneratedMethodAccessor5.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:546)
        at 
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:976)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start
(ServiceController.java:394)
        at 
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:546)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:177)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:226)
        at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:832)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:642)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:605)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:589)
        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.jboss.mx.capability.ReflectedMBeanDispatcher.invoke
(ReflectedMBeanDispatcher.java:284)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:546)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:177)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:384)
        at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:291)
        at org.jboss.Main.boot(Main.java:150)
        at org.jboss.Main$1.run(Main.java:395)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.net.UnknownHostException: 
java.sun.com
        at java.net.PlainSocketImpl.connect
(PlainSocketImpl.java:153)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at sun.net.NetworkClient.doConnect
(NetworkClient.java:139)
        at sun.net.www.http.HttpClient.openServer
(HttpClient.java:402)
        at sun.net.www.http.HttpClient.openServer
(HttpClient.java:618)
        at sun.net.www.http.HttpClient.<init>
(HttpClient.java:306)
        at sun.net.www.http.HttpClient.<init>
(HttpClient.java:267)
        at sun.net.www.http.HttpClient.New
(HttpClient.java:339)
        at sun.net.www.http.HttpClient.New
(HttpClient.java:320)
        at sun.net.www.http.HttpClient.New
(HttpClient.java:315)
        at 
sun.net.www.protocol.http.HttpURLConnection.plainConn
ect(HttpURLConnection.java:510)
        at 
sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:487)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputS
tream(HttpURLConnection.java:615)
        at java.net.URL.openStream(URL.java:913)
        at 
org.apache.xerces.impl.XMLEntityManager.startEntity
(XMLEntityManager.java:740)
        at 
org.apache.xerces.impl.XMLEntityManager.startDTDEntity
(XMLEntityManager.java:700)
        at 
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSour
ce(XMLDTDScannerImpl.java:258)
        at 
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDi
spatcher.dispatch(XMLDocumentScannerImpl.java:811)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerIm
pl.scanDocument
(XMLDocumentFragmentScannerImpl.java:333)
        at 
org.apache.xerces.parsers.StandardParserConfiguration.p
arse(StandardParserConfiguration.java:529)
        at 
org.apache.xerces.parsers.StandardParserConfiguration.p
arse(StandardParserConfiguration.java:585)
        at org.apache.xerces.parsers.XMLParser.parse
(XMLParser.java:147)
        at org.apache.xerces.parsers.DOMParser.parse
(DOMParser.java:221)
        at 
org.apache.xerces.jaxp.DocumentBuilderImpl.parse
(DocumentBuilderImpl.java:201)
        at 
org.jboss.metadata.XmlFileLoader.getDocument
(XmlFileLoader.java:293)
        ... 50 more
10:44:34,109 ERROR [URLDeploymentScanner] 
MBeanException: Exception in MBean 
operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  <none>
Incompletely deployed packages:
[EMAIL PROTECTED] { 
url=file:/D:/metamatrix/41EA2JB32/jboss/server/metamatr
ix/deploy/MMServer.ear }
  deployer: [EMAIL PROTECTED]
  status: null
  state: FAILED
  watch: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/d
eploy/MMServer.ear
  lastDeployed: 1086795874093
  lastModified: 1086795871687
  mbeans:
]MBeans waiting for classes:
  <none>
MBeans waiting for other MBeans:
  <none>

10:44:34,109 INFO  [URLDeploymentScanner] Started 
jboss.deployment:type=DeploymentScanner,flavor=URL
10:44:34,203 INFO  [MainDeployer] Deployed package: 
file:/D:/metamatrix/41EA2JB32/jboss/server/metamatrix/c
onf/jboss-service.xml
10:44:34,203 INFO  [Server] JBoss (MX MicroKernel) 
[3.2.3 (build: CVSTag=JBoss_3_2_3 
date=200311301445)] Started in 1m:4s:125ms


----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2004-06-19 21:41

Message:
Logged In: YES 
user_id=175228

This has nothing to do with validation of the jboss-app.xml
descriptor. This is occurring doing the resolution of the
doctype public entity. Since we have local entity resolvers
for all j2ee and jboss descriptors, your document must be
invalid. It must be one of:

DOCTYPE jboss-app
    PUBLIC "-//JBoss//DTD J2EE Application 1.3//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-app_3_0.dtd";

DOCTYPE jboss-app
    PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd";


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=970379&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to