geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siss...@insession.com
Subject Excessive error output when deploying plan?
Date Thu, 18 Nov 2004 23:36:58 GMT
I tried deploying a JMS resource plan and got an error.  The amount of 
error output produced seems excessive.  It looks like the plan was output 
to the terminal three times in the error information.

Is it necessary to output so much information, including a stack trace?  I 
would have expected just a few lines of error output that hopefully points 
to the offending line of the plan. 

Would it be feasible to have a deploter option that could turn on more 
detailed debugging information, that is off by default?

Some users may be using a terminal with a limited scroll buffer and may 
lose part of the output.

I have included the command and output I received below..

Thanks,

John


D:\geronimo-1.0-SNAPSHOT>java -jar bin/deployer.jar deploy 
repository/activemq/rars/activemq-ra-1.2-SNAPSHOT.rar my-jms-resou
rce-plan.xml
Username: system
Password: manager
Deployment failed
  Server reports: org.apache.xmlbeans.XmlException: Invalid deployment 
descriptor: [D:\geronimo-1.0-SNAPSHOT\my-jms-resource-
plan.xml:0: error: Element not allowed: 
adminobject@http://geronimo.apache.org/xml/ns/j2ee/connector in element 
resourceadapter@http
://geronimo.apache.org/xml/ns/j2ee/connector, 
D:\geronimo-1.0-SNAPSHOT\my-jms-resource-plan.xml:0: error: Element not 
allowed
: adminobject@http://geronimo.apache.org/xml/ns/j2ee/connector in element 
resourceadapter@http://geronimo.apache.org/xml/ns/j2ee/con
nector]
Descriptor: <xml-fragment version="1.5" 
configId="com/insession/my/myJMSResources" 
parentId="org/apache/geronimo/Activ
eMQServer" xmlns:con="http://geronimo.apache.org/xml/ns/j2ee/connector">
  <con:resourceadapter>
    <!-- how to connect to the JMS Server -->
    <con:resourceadapter-instance>
      <con:resourceadapter-name>my JMS 
Resources</con:resourceadapter-name>
      <con:config-property-setting 
name="ServerUrl">tcp://localhost:61616</con:config-property-setting>
      <con:config-property-setting name="UserName">not 
needed</con:config-property-setting>
      <con:config-property-setting name="Password">not 
needed</con:config-property-setting>
      <con:workmanager-name>DefaultWorkManager</con:workmanager-name>
    </con:resourceadapter-instance>
    <!-- defines a ConnectionFactory -->
    <con:outbound-resourceadapter>
      <con:connection-definition>
 
<con:connectionfactory-interface>javax.jms.ConnectionFactory</con:connectionfactory-interface>
        <con:connectiondefinition-instance>
          <con:name>wpConnectionFactory</con:name>
 
<con:implemented-interface>javax.jms.QueueConnectionFactory</con:implemented-interface>
 
<con:implemented-interface>javax.jms.TopicConnectionFactory</con:implemented-interface>
          <con:connectionmanager>
            <con:xa-transaction>
              <con:transaction-caching/>
            </con:xa-transaction>
            <con:single-pool>
              <con:max-size>10</con:max-size>
              <con:min-size>0</con:min-size>
 
<con:blocking-timeout-milliseconds>5000</con:blocking-timeout-milliseconds>
              <con:idle-timeout-minutes>0</con:idle-timeout-minutes>
              <con:match-one/>
            </con:single-pool>
          </con:connectionmanager>
 <con:global-jndi-name>jms/wpConectionFactory</con:global-jndi-name>
        </con:connectiondefinition-instance>
      </con:connection-definition>
    </con:outbound-resourceadapter>
    <!-- defines a Topic -->
    <!--
    <adminobject>
      <adminobject-interface>
        javax.jms.Topic
      </adminobject-interface>
      <adminobject-class>
        org.codehaus.activemq.message.ActiveMQTopic
      </adminobject-class>
      <adminobject-instance>
        <message-destination-name>
          MyTopic
        </message-destination-name>
        <config-property-setting name="PhysicalName">
          MyTopic
        </config-property-setting>
      </adminobject-instance>
    </adminobject>
-->
    <!-- defines a Queue -->
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 
<con:message-destination-name>wpServAutoActQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">wpServAutoActQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 <con:message-destination-name>wpUtilQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">wpUtilQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
  </con:resourceadapter>
</xml-fragment>
org.apache.geronimo.deployment.DeploymentException: 
org.apache.xmlbeans.XmlException: Invalid deployment descriptor: 
[D:\geronimo-1.
0-SNAPSHOT\my-jms-resource-plan.xml:0: error: Element not allowed: 
adminobject@http://geronimo.apache.org/xml/ns/j2ee/connect
or in element 
resourceadapter@http://geronimo.apache.org/xml/ns/j2ee/connector, 
D:\geronimo-1.0-SNAPSHOT\my-jms-resource-plan
.xml:0: error: Element not allowed: 
adminobject@http://geronimo.apache.org/xml/ns/j2ee/connector in element 
resourceadapter@http://g
eronimo.apache.org/xml/ns/j2ee/connector]
Descriptor: <xml-fragment version="1.5" 
configId="com/insession/my/myJMSResources" 
parentId="org/apache/geronimo/Activ
eMQServer" xmlns:con="http://geronimo.apache.org/xml/ns/j2ee/connector">
  <con:resourceadapter>
    <!-- how to connect to the JMS Server -->
    <con:resourceadapter-instance>
      <con:resourceadapter-name>my JMS 
Resources</con:resourceadapter-name>
      <con:config-property-setting 
name="ServerUrl">tcp://localhost:61616</con:config-property-setting>
      <con:config-property-setting name="UserName">not 
needed</con:config-property-setting>
      <con:config-property-setting name="Password">not 
needed</con:config-property-setting>
      <con:workmanager-name>DefaultWorkManager</con:workmanager-name>
    </con:resourceadapter-instance>
    <!-- defines a ConnectionFactory -->
    <con:outbound-resourceadapter>
      <con:connection-definition>
 
<con:connectionfactory-interface>javax.jms.ConnectionFactory</con:connectionfactory-interface>
        <con:connectiondefinition-instance>
          <con:name>wpConnectionFactory</con:name>
 
<con:implemented-interface>javax.jms.QueueConnectionFactory</con:implemented-interface>
 
<con:implemented-interface>javax.jms.TopicConnectionFactory</con:implemented-interface>
          <con:connectionmanager>
            <con:xa-transaction>
              <con:transaction-caching/>
            </con:xa-transaction>
            <con:single-pool>
              <con:max-size>10</con:max-size>
              <con:min-size>0</con:min-size>
 
<con:blocking-timeout-milliseconds>5000</con:blocking-timeout-milliseconds>
              <con:idle-timeout-minutes>0</con:idle-timeout-minutes>
              <con:match-one/>
            </con:single-pool>
          </con:connectionmanager>
 <con:global-jndi-name>jms/wpConectionFactory</con:global-jndi-name>
        </con:connectiondefinition-instance>
      </con:connection-definition>
    </con:outbound-resourceadapter>
    <!-- defines a Topic -->
    <!--
    <adminobject>
      <adminobject-interface>
        javax.jms.Topic
      </adminobject-interface>
      <adminobject-class>
        org.codehaus.activemq.message.ActiveMQTopic
      </adminobject-class>
      <adminobject-instance>
        <message-destination-name>
          MyTopic
        </message-destination-name>
        <config-property-setting name="PhysicalName">
          MyTopic
        </config-property-setting>
      </adminobject-instance>
    </adminobject>
-->
    <!-- defines a Queue -->
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 
<con:message-destination-name>wpServAutoActQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">wpServAutoActQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 <con:message-destination-name>wpUtilQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">wpUtilQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
  </con:resourceadapter>
</xml-fragment>
        at 
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.createModule(ConnectorModuleBuilder.java:200)
        at 
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.createModule(ConnectorModuleBuilder.java:132)
        at 
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder$$FastClassByCGLIB$$a535b6aa.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at 
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
        at 
org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
        at 
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
        at 
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
        at 
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.createModule(<generated>)
        at 
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:129)
        at 
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at 
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:823)
        at 
org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
        at 
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
        at 
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112)
        at 
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.getDeploymentPlan(<generated>)
        at 
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:158)
        at 
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:79)
        at 
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at 
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at 
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        at 
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205
)
        at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
        at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
mx4j.server.ReflectionMBeanInvoker.invokeImpl(ReflectionMBeanInvoker.java:152)
        at 
mx4j.server.ReflectionMBeanInvoker.doInvoke(ReflectionMBeanInvoker.java:119)
        at 
mx4j.server.ReflectionMBeanInvoker.invoke(ReflectionMBeanInvoker.java:54)
        at 
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:235)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
        at 
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205
)
        at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
        at 
mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:222)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:36)
        at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:98)
        at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:32)
        at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:89)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
        at 
mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:151)
        at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:85)
        at 
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:79)
        at $Proxy0.invoke(Unknown Source)
        at 
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:224)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown 
Source)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment 
descriptor: [D:\geronimo-1.0-SNAPSHOT\my-jms-resource-plan.xm
l:0: error: Element not allowed: 
adminobject@http://geronimo.apache.org/xml/ns/j2ee/connector in element 
resourceadapter@http://gero
nimo.apache.org/xml/ns/j2ee/connector, 
D:\geronimo-1.0-SNAPSHOT\my-jms-resource-plan.xml:0: error: Element not 
allowed: admin
object@http://geronimo.apache.org/xml/ns/j2ee/connector in element 
resourceadapter@http://geronimo.apache.org/xml/ns/j2ee/connector]

Descriptor: <xml-fragment version="1.5" 
configId="com/insession/my/myJMSResources" 
parentId="org/apache/geronimo/Activ
eMQServer" xmlns:con="http://geronimo.apache.org/xml/ns/j2ee/connector">
  <con:resourceadapter>
    <!-- how to connect to the JMS Server -->
    <con:resourceadapter-instance>
      <con:resourceadapter-name>my JMS 
Resources</con:resourceadapter-name>
      <con:config-property-setting 
name="ServerUrl">tcp://localhost:61616</con:config-property-setting>
      <con:config-property-setting name="UserName">not 
needed</con:config-property-setting>
      <con:config-property-setting name="Password">not 
needed</con:config-property-setting>
      <con:workmanager-name>DefaultWorkManager</con:workmanager-name>
    </con:resourceadapter-instance>
    <!-- defines a ConnectionFactory -->
    <con:outbound-resourceadapter>
      <con:connection-definition>
 
<con:connectionfactory-interface>javax.jms.ConnectionFactory</con:connectionfactory-interface>
        <con:connectiondefinition-instance>
          <con:name>wpConnectionFactory</con:name>
 
<con:implemented-interface>javax.jms.QueueConnectionFactory</con:implemented-interface>
 
<con:implemented-interface>javax.jms.TopicConnectionFactory</con:implemented-interface>
          <con:connectionmanager>
            <con:xa-transaction>
              <con:transaction-caching/>
            </con:xa-transaction>
            <con:single-pool>
              <con:max-size>10</con:max-size>
              <con:min-size>0</con:min-size>
 
<con:blocking-timeout-milliseconds>5000</con:blocking-timeout-milliseconds>
              <con:idle-timeout-minutes>0</con:idle-timeout-minutes>
              <con:match-one/>
            </con:single-pool>
          </con:connectionmanager>
 <con:global-jndi-name>jms/wpConectionFactory</con:global-jndi-name>
        </con:connectiondefinition-instance>
      </con:connection-definition>
    </con:outbound-resourceadapter>
    <!-- defines a Topic -->
    <!--
    <adminobject>
      <adminobject-interface>
        javax.jms.Topic
      </adminobject-interface>
      <adminobject-class>
        org.codehaus.activemq.message.ActiveMQTopic
      </adminobject-class>
      <adminobject-instance>
        <message-destination-name>
          MyTopic
        </message-destination-name>
        <config-property-setting name="PhysicalName">
          MyTopic
        </config-property-setting>
      </adminobject-instance>
    </adminobject>
-->
    <!-- defines a Queue -->
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 
<con:message-destination-name>wpServAutoActQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">myFirstQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
    <con:adminobject>
 <con:adminobject-interface>javax.jms.Queue</con:adminobject-interface>
 
<con:adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</con:adminobject-class>
      <con:adminobject-instance>
 <con:message-destination-name>wpUtilQueue</con:message-destination-name>
        <con:config-property-setting 
name="PhysicalName">mySecondQueue</con:config-property-setting>
      </con:adminobject-instance>
    </con:adminobject>
  </con:resourceadapter>
</xml-fragment>
        at 
org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:469)
        at 
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.createModule(ConnectorModuleBuilder.java:198)
        ... 76 more


D:\geronimo-1.0-SNAPSHOT>

Mime
View raw message