- 论坛徽章:
- 0
|
在jboss308中部署应用程序时,出下错,
17:39:22,017 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/postgres-service.xml
17:39:22,277 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDepl
oymentScanner$DeployedURL@609c9e03{ url=file:/D:/jboss-3.0.8/server/default/deploy/postgres-serv
ice.xml, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Exception getting document; - nested throwable: (org.x
ml.sax.SAXParseException: 缺少文件根组件。)
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:622)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:130)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor11.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:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:43
5)
at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.
java:656)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymen
tScanner.java:266)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
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:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:413)
at sun.reflect.GeneratedMethodAccessor4.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:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:232)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
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:517)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
at org.jboss.Main.boot(Main.java:14
at org.jboss.Main$1.run(Main.java:381)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.xml.sax.SAXParseException: 缺少文件根组件。
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:61
... 47 more
17:39:22,357 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/jboss-local-jdbc.rar
17:39:22,748 INFO [LocalTxConnectionManager] Creating
17:39:22,958 INFO [LocalTxConnectionManager] Created
17:39:23,048 INFO [LocalTxConnectionManager] Starting
17:39:23,259 INFO [DefaultDS] Bound connection factory for resource adapter 'JBoss LocalTransac
tion JDBC Wrapper' to JNDI name 'java:/DefaultDS'
17:39:23,269 INFO [LocalTxConnectionManager] Started
17:39:23,269 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/j
boss-local-jdbc.rar
17:39:23,269 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/jboss-xa-jdbc.rar
17:39:23,449 INFO [RARMetaData] Loading JBoss Resource Adapter for JDBC 2 XA drivers
17:39:23,449 INFO [RARMetaData] Required license terms present. See deployment descriptor.
17:39:23,539 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/j
boss-xa-jdbc.rar
17:39:23,539 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/jms-ra.rar
17:39:23,859 INFO [XATxConnectionManager] Creating
17:39:23,869 INFO [XATxConnectionManager] Created
17:39:23,910 INFO [XATxConnectionManager] Starting
17:39:23,990 INFO [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.J
aasSecurityManager@11b86c7
17:39:24,000 INFO [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolic
y@2da5a6
17:39:24,000 INFO [JaasSecurityManagerService] Added JmsXARealm, org.jboss.security.plugins.Sec
urityDomainContext@d647d8 to map
17:39:24,100 INFO [JmsXA] Bound connection factory for resource adapter 'JMS Adapter' to JNDI n
ame 'java:/JmsXA'
17:39:24,100 INFO [XATxConnectionManager] Started
17:39:24,100 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/j
ms-ra.rar
17:39:24,100 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/ejb-management.jar
17:39:25,121 INFO [EjbModule] Creating
17:39:25,221 INFO [EjbModule] Deploying MEJB
17:39:25,832 INFO [EjbModule] Created
17:39:25,832 INFO [EjbModule] Starting
17:39:25,972 INFO [EjbModule] Started
17:39:25,972 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/e
jb-management.jar
17:39:25,972 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/jmx-ejb-adaptor.jar
17:39:26,213 INFO [EjbModule] Creating
17:39:26,263 INFO [EjbModule] Deploying jmx/ejb/Adaptor
17:39:26,323 INFO [EjbModule] Created
17:39:26,323 INFO [EjbModule] Starting
17:39:26,403 INFO [EjbModule] Started
17:39:26,403 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/j
mx-ejb-adaptor.jar
17:39:26,413 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.8/server/de
fault/deploy/jmx-console.war/
17:39:26,613 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console
17:39:27,865 INFO [jbossweb] Started WebApplicationContext[/jmx-console,file:/D:/jboss-3.0.8/se
rver/default/deploy/jmx-console.war/]
17:39:27,965 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=DisplayMBeans
17:39:27,975 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=DisplayOpResult
17:39:27,995 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=InspectMBean
17:39:28,005 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=jsp
17:39:28,025 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=HtmlAdaptor
17:39:28,035 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=default
17:39:28,055 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,name=invoker
17:39:28,076 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=
/jmx-console,HashSessionManager=0
17:39:28,076 INFO [jbossweb] successfully deployed file:/D:/jboss-3.0.8/server/default/deploy/j
mx-console.war/ to /jmx-console
17:39:28,076 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/deploy/j
mx-console.war/
17:39:28,076 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkInc
ompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>;
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@609c9e03 { url=file:/D:/jboss-3.0.8/server/default/deploy/p
ostgres-service.xml }
deployer: org.jboss.deployment.SARDeployer@fe748f
status: null
state: FAILED
watch: file:/D:/jboss-3.0.8/server/default/deploy/postgres-service.xml
lastDeployed: 1077961162277
lastModified: 1077961164000
mbeans:
]MBeans waiting for classes:
<none>;
MBeans waiting for other MBeans:
<none>;
17:39:28,086 INFO [URLDeploymentScanner] Started
17:39:28,086 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.8/server/default/conf/jbo
ss-service.xml
17:39:28,086 INFO [Server] JBoss (MX MicroKernel) [3.0.8 (CVSTag=JBoss_3_0_8 Date=200306050849)
] Started in 0m:32s:587ms
=============================================
下面是postgres-service.xml原文
- <?xml version="1.0" encoding="UTF-8"?>;
- <server>;
- <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=PostgresDS">;
-
- <depends optional-attribute-name="ManagedConnectionFactoryName">;
- <!--embedded mbean-->;
- <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=PostgresDS">;
- <!-- ========== Set the JndiName ======================= -->;
- <attribute name="JndiName">;PostgresDS</attribute>;
- <attribute name="ManagedConnectionFactoryProperties">;
- <properties>;
- <config-property name="ConnectionURL" type="java.lang.String">;jdbc:postgresql://192.168.0.2:5432/magazine</config-property>;
- <config-property name="DriverClass" type="java.lang.String">;org.postgresql.Driver</config-property>;
- <!--set these only if you want only default logins, not through JAAS -->;
- <config-property name="UserName" type="java.lang.String">;Administrator</config-property>;
- <config-property name="Password" type="java.lang.String">;</config-property>;
- </properties>;
- </attribute>;
- <!--Below here are advanced properties -->;
- <!--hack-->;
- <depends optional-attribute-name="OldRarDeployment">;jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>;
- <!--real attributes-->;
- </mbean>;
- </depends>;
- <depends optional-attribute-name="ManagedConnectionPool">;
- <!--embedded mbean-->;
- <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=PostgresDS">;
- <attribute name="MinSize">;0</attribute>;
- <attribute name="MaxSize">;50</attribute>;
- <attribute name="BlockingTimeoutMillis">;5000</attribute>;
- <attribute name="IdleTimeoutMinutes">;15</attribute>;
- <attribute name="Criteria">;ByContainer</attribute>;
- </mbean>;
- </depends>;
- <depends optional-attribute-name="CachedConnectionManager">;jboss.jca:service=CachedConnectionManager</depends>;
- <depends optional-attribute-name="JaasSecurityManagerService">;jboss.security:service=JaasSecurityManager</depends>;
- <attribute name="TransactionManager">;java:/TransactionManager</attribute>;
- <!--make the rar deploy! hack till better deployment-->;
- <depends>;jboss.jca:service=RARDeployer</depends>;
- </mbean>;
- </server>;
复制代码 |
|