免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3005 | 回复: 0
打印 上一主题 下一主题

求救posgresql-service.xml 出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-28 17:50 |只看该作者 |倒序浏览
在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原文

  1. <?xml version="1.0" encoding="UTF-8"?>;

  2. <server>;

  3.   <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=PostgresDS">;


  4.     <depends optional-attribute-name="ManagedConnectionFactoryName">;
  5.       <!--embedded mbean-->;
  6.       <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=PostgresDS">;
  7. <!-- ========== Set the JndiName ======================= -->;
  8.         <attribute name="JndiName">;PostgresDS</attribute>;
  9.         <attribute name="ManagedConnectionFactoryProperties">;
  10.           <properties>;
  11.             <config-property name="ConnectionURL" type="java.lang.String">;jdbc:postgresql://192.168.0.2:5432/magazine</config-property>;
  12.             <config-property name="DriverClass" type="java.lang.String">;org.postgresql.Driver</config-property>;
  13.             <!--set these only if you want only default logins, not through JAAS -->;
  14.             <config-property name="UserName" type="java.lang.String">;Administrator</config-property>;
  15.             <config-property name="Password" type="java.lang.String">;</config-property>;
  16.           </properties>;

  17.         </attribute>;

  18. <!--Below here are advanced properties -->;
  19.         <!--hack-->;
  20.         <depends optional-attribute-name="OldRarDeployment">;jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>;

  21.         <!--real attributes-->;
  22.       </mbean>;
  23.     </depends>;

  24.     <depends optional-attribute-name="ManagedConnectionPool">;
  25.       <!--embedded mbean-->;
  26.       <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=PostgresDS">;

  27.         <attribute name="MinSize">;0</attribute>;
  28.         <attribute name="MaxSize">;50</attribute>;
  29.         <attribute name="BlockingTimeoutMillis">;5000</attribute>;
  30.         <attribute name="IdleTimeoutMinutes">;15</attribute>;

  31.         <attribute name="Criteria">;ByContainer</attribute>;
  32.       </mbean>;

  33.     </depends>;
  34.     <depends optional-attribute-name="CachedConnectionManager">;jboss.jca:service=CachedConnectionManager</depends>;

  35.     <depends optional-attribute-name="JaasSecurityManagerService">;jboss.security:service=JaasSecurityManager</depends>;

  36.     <attribute name="TransactionManager">;java:/TransactionManager</attribute>;
  37.     <!--make the rar deploy! hack till better deployment-->;
  38.     <depends>;jboss.jca:service=RARDeployer</depends>;


  39.   </mbean>;


  40. </server>;
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP