Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / September 2005

Tip: Looking for answers? Try searching our database.

JBoss  problem

Thread view: 
bard - 17 Feb 2004 17:07 GMT
I have a problem about Jboss 3.2.3: when I run Bean file, I have this problem:
ERROR [XmlFileLoader] The processing instruction target matching "[
xX][mM][lL]" is not allowed.:6:2
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][
mM][lL]" is not allowed.
Help me!!!
Thanks in advance.
Bard
Collin VanDyck - 17 Feb 2004 20:38 GMT
> I have a problem about Jboss 3.2.3: when I run Bean file, I have this problem:
> ERROR [XmlFileLoader] The processing instruction target matching "[
[quoted text clipped - 4 lines]
> Thanks in advance.
> Bard

Does the error give you the name of the XML file it is having a problem
parsing?
Collin VanDyck - 17 Feb 2004 22:03 GMT
Are you getting the error when JBoss is deploying the Bean?  What kind of a
bean is it?  Did you generate the Deployment Descriptor(s) for the bean, or
did you use a tool like xdoclet?  If you did it by hand, can you post it?

> "bard" <raffaelecorvino@libero.it> wrote in message

news:3ac5c5539da1a495bd7f28b51c86deee@localhost.talkaboutprogramming.com...
> > I have a problem about Jboss 3.2.3: when I run Bean file, I have this
> problem:
[quoted text clipped - 9 lines]
> Does the error give you the name of the XML file it is having a problem
> parsing?
bard - 17 Feb 2004 22:13 GMT
File name isn't present!!!
bard - 17 Feb 2004 22:29 GMT
The complete error is:
ERROR [XmlFileLoader] The processing instruction target matching "[xX][mM][lL]" is not allowed.:6:2
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
23:04:07,916 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
org.jboss.deployment.DeploymentException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; - nested throwable: (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       ... 19 more
I don't know what means it and I can't resolve it!!!
Collin VanDyck - 17 Feb 2004 22:23 GMT
> The complete error is:
> ERROR [XmlFileLoader] The processing instruction target matching "[xX][mM][lL]" is not allowed.:6:2
> org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
>         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
>         at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
>         at
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
>         at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
>         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
[quoted text clipped - 3 lines]
>         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(ReflectedMBeanDispat
cher.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.deploy(URLDeploymentScanne
r.java:302)
>         at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:476)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:201)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:212)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:191)
> 23:04:07,916 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
> org.jboss.deployment.DeploymentException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; - nested throwable:
(org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
>         at
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
>         at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
>         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
[quoted text clipped - 3 lines]
>         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(ReflectedMBeanDispat
cher.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.deploy(URLDeploymentScanne
r.java:302)
>         at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:476)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:201)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:212)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:191)
> Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
>         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
>         at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
>         ... 19 more
> I don't know what means it and I can't resolve it!!!

Did you create the deployment descriptors?  Also, do you have the console
output directly before, and after, the exception?
bard - 18 Feb 2004 09:43 GMT
I'm not using Xdoclet,but I'm using ANT. I wrote HelloWorld as first example, I wrote the deployment file ejb-jar.xml and jboss.xml. By Ant I put the deployment file HelloWOrld.jar in Jboss' deploy directory, and when the server start, and run the deployment file, it give me the horrible error:

ERROR [XmlFileLoader] The processing instruction target matching "[xX][mM][lL]" is not allowed.:6:2
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
23:04:07,916 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
org.jboss.deployment.DeploymentException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; - nested throwable: (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       ... 19 more

Ant compile correctly bean file .java.  
Thanks very much in advance Collin VanDyck for his interess.
Collin VanDyck - 18 Feb 2004 14:36 GMT
> I'm not using Xdoclet,but I'm using ANT. I wrote HelloWorld as first example, I wrote the deployment file ejb-jar.xml and jboss.xml. By Ant I put
the deployment file HelloWOrld.jar in Jboss' deploy directory, and when the
server start, and run the deployment file, it give me the horrible error:

> ERROR [XmlFileLoader] The processing instruction target matching "[xX][mM][lL]" is not allowed.:6:2
> org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
>         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
>         at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
>         at
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
>         at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
>         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
[quoted text clipped - 3 lines]
>         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(ReflectedMBeanDispat
cher.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.deploy(URLDeploymentScanne
r.java:302)
>         at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:476)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:201)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:212)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:191)
> 23:04:07,916 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
> org.jboss.deployment.DeploymentException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; - nested throwable:
(org.xml.sax.SAXParseException: The processing instruction target matching
"[xX][mM][lL]" is not allowed.)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
>         at
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
>         at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
>         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
[quoted text clipped - 3 lines]
>         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(ReflectedMBeanDispat
cher.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.deploy(URLDeploymentScanne
r.java:302)
>         at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:476)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:201)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:212)
>         at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:191)
> Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
>         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
>         at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
>         at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
>         ... 19 more
>
> Ant compile correctly bean file .java.
> Thanks very much in advance Collin VanDyck for his interess.

No problem -- I suspect that it is a problem with your ejb-jar.xml and/or
jboss.xml.

Does your ejb-jar.xml start with:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >

and your jboss.xml start with:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
<jboss>

?
bard - 18 Feb 2004 22:13 GMT
Ejb-jar.xml has these lines, while there isn't in jboss.xml. Now I hope the server run correctly!!! I prove it, I say you what happened.
Collin VanDyck - 18 Feb 2004 22:02 GMT
> Ejb-jar.xml has these lines, while there isn't in jboss.xml. Now I hope the server run correctly!!! I prove it, I say you what happened.

Good. please give us an update as soon as you can.

CV
bard - 18 Feb 2004 22:42 GMT
there is error message:

23:11:26,698 INFO  [MainDeployer] Starting deployment of package: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
23:11:26,978 ERROR [XmlFileLoader] The processing instruction target matching "[xX][mM][lL]" is not allowed.:6:2
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
23:11:27,010 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
org.jboss.deployment.DeploymentException: The processing instruction target matching "[xX][mM][lL]" is not allowed.; - nested throwable: (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:307)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       ... 19 more
23:11:56,481 INFO  [STDOUT] Wed Feb 18 23:11:56 CET 2004 - SnmpPortal.Receiver.run: AsnEncodingException: Invalid SNMP ASN.1 type
23:11:56,481 INFO  [STDOUT] 0x
23:11:56,482 INFO  [STDOUT] 9
23:11:56,482 INFO  [STDOUT] 6
23:11:56,482 INFO  [STDOUT]
23:11:56,482 INFO  [STDOUT] 0x
23:11:56,482 INFO  [STDOUT] 5
23:11:56,482 INFO  [STDOUT] f
23:11:56,482 INFO  [STDOUT]
23:11:56,482 INFO  [STDOUT] 0x
23:11:56,482 INFO  [STDOUT] 8
23:11:56,483 INFO  [STDOUT] 1
23:11:56,483 INFO  [STDOUT]
23:11:56,483 INFO  [STDOUT] 0x
23:11:56,483 INFO  [STDOUT] 8
23:11:56,483 INFO  [STDOUT] 2
23:11:56,483 INFO  [STDOUT]
23:11:56,483 INFO  [STDOUT] 0x
23:11:56,483 INFO  [STDOUT] 0
23:11:56,484 INFO  [STDOUT] 0
23:11:56,484 INFO  [STDOUT]
23:11:56,484 INFO  [STDOUT] 0x
23:11:56,484 INFO  [STDOUT] 0
23:11:56,484 INFO  [STDOUT] 1
23:11:56,484 INFO  [STDOUT]
23:11:56,484 INFO  [STDOUT] 0x
23:11:56,484 INFO  [STDOUT] 0
23:11:56,485 INFO  [STDOUT] 0
23:11:56,485 INFO  [STDOUT]
23:11:56,485 INFO  [STDOUT] 0x
23:11:56,485 INFO  [STDOUT] 0
23:11:56,485 INFO  [STDOUT] 0
23:11:56,485 INFO  [STDOUT]
23:11:56,485 INFO  [STDOUT] 0x
23:11:56,485 INFO  [STDOUT] 0
23:11:56,485 INFO  [STDOUT] 0
23:11:56,486 INFO  [STDOUT]
23:11:56,486 INFO  [STDOUT] 0x
23:11:56,486 INFO  [STDOUT] 0
23:11:56,486 INFO  [STDOUT] 0
23:11:56,486 INFO  [STDOUT]
23:11:56,486 INFO  [STDOUT] 0x
23:11:56,486 INFO  [STDOUT] 0
23:11:56,486 INFO  [STDOUT] 0
23:11:56,486 INFO  [STDOUT]
23:11:56,487 INFO  [STDOUT] 0x
23:11:56,487 INFO  [STDOUT] 0
23:11:56,487 INFO  [STDOUT] 0
23:11:56,487 INFO  [STDOUT]
23:11:56,487 INFO  [STDOUT] 0x
23:11:56,487 INFO  [STDOUT] 0
23:11:56,487 INFO  [STDOUT] 1
23:11:56,488 INFO  [STDOUT]
23:11:56,488 INFO  [STDOUT] 0x
23:11:56,488 INFO  [STDOUT] 3
23:11:56,488 INFO  [STDOUT] 0
23:11:56,488 INFO  [STDOUT]
23:11:56,488 INFO  [STDOUT] 0x
23:11:56,488 INFO  [STDOUT] 0
23:11:56,488 INFO  [STDOUT] 1
23:11:56,489 INFO  [STDOUT]
23:11:56,489 INFO  [STDOUT] 0x
23:11:56,489 INFO  [STDOUT] 3
23:11:56,489 INFO  [STDOUT] 0
23:11:56,489 INFO  [STDOUT]
23:11:56,489 INFO  [STDOUT] 0x
23:11:56,489 INFO  [STDOUT] 0
23:11:56,489 INFO  [STDOUT] 1
23:11:56,489 INFO  [STDOUT]
23:11:56,490 INFO  [STDOUT] 0x
23:11:56,490 INFO  [STDOUT] 3
23:11:56,490 INFO  [STDOUT] 0
23:11:56,490 INFO  [STDOUT]
23:11:56,490 INFO  [STDOUT] 0x
23:11:56,490 INFO  [STDOUT] 0
23:11:56,490 INFO  [STDOUT] 1
23:11:56,490 INFO  [STDOUT]
23:11:56,490 INFO  [STDOUT] 0x
23:11:56,491 INFO  [STDOUT] 3
23:11:56,491 INFO  [STDOUT] 0
23:11:56,491 INFO  [STDOUT]
23:11:56,491 INFO  [STDOUT] 0x
23:11:56,491 INFO  [STDOUT] 0
23:11:56,491 INFO  [STDOUT] 7
23:11:56,491 INFO  [STDOUT]
23:11:56,491 INFO  [STDOUT] 0x
23:11:56,492 INFO  [STDOUT] 6
23:11:56,492 INFO  [STDOUT] 9
23:11:56,492 INFO  [STDOUT]
23:11:56,492 INFO  [STDOUT] 0x
23:11:56,492 INFO  [STDOUT] 6
23:11:56,492 INFO  [STDOUT] e
23:11:56,492 INFO  [STDOUT]
23:11:56,492 INFO  [STDOUT] 0x
23:11:56,493 INFO  [STDOUT] 2
23:11:56,493 INFO  [STDOUT] d
23:11:56,493 INFO  [STDOUT]
23:11:56,493 INFO  [STDOUT] 0x
23:11:56,493 INFO  [STDOUT] 6
23:11:56,493 INFO  [STDOUT] 1
23:11:56,493 INFO  [STDOUT]
23:11:56,493 INFO  [STDOUT] 0x
23:11:56,493 INFO  [STDOUT] 6
23:11:56,494 INFO  [STDOUT] 4
23:11:56,494 INFO  [STDOUT]
23:11:56,494 INFO  [STDOUT] 0x
23:11:56,494 INFO  [STDOUT] 6
23:11:56,494 INFO  [STDOUT] 4
23:11:56,494 INFO  [STDOUT]
23:11:56,494 INFO  [STDOUT] 0x
23:11:56,494 INFO  [STDOUT] 7
23:11:56,495 INFO  [STDOUT] 2
23:11:56,495 INFO  [STDOUT]
23:11:56,495 INFO  [STDOUT] 0x
23:11:56,495 INFO  [STDOUT] 0
23:11:56,495 INFO  [STDOUT] 4
23:11:56,495 INFO  [STDOUT]
23:11:56,495 INFO  [STDOUT] 0x
23:11:56,495 INFO  [STDOUT] 6
23:11:56,496 INFO  [STDOUT] 1
23:11:56,496 INFO  [STDOUT]
23:11:56,496 INFO  [STDOUT] 0x
23:11:56,496 INFO  [STDOUT] 7
23:11:56,496 INFO  [STDOUT] 2
23:11:56,496 INFO  [STDOUT]
23:11:56,496 INFO  [STDOUT] 0x
23:11:56,496 INFO  [STDOUT] 7
23:11:56,496 INFO  [STDOUT] 0
23:11:56,534 INFO  [STDOUT]
23:11:56,534 INFO  [STDOUT] 0x
23:11:56,534 INFO  [STDOUT] 6
23:11:56,534 INFO  [STDOUT] 1
23:11:56,534 INFO  [STDOUT]
23:11:56,534 INFO  [STDOUT] 0x
23:11:56,534 INFO  [STDOUT] 0
23:11:56,534 INFO  [STDOUT] 0
23:11:56,535 INFO  [STDOUT]
23:11:56,535 INFO  [STDOUT] 0x
23:11:56,535 INFO  [STDOUT] 0
23:11:56,535 INFO  [STDOUT] 0
23:11:56,535 INFO  [STDOUT]
23:11:56,535 INFO  [STDOUT] 0x
23:11:56,535 INFO  [STDOUT] 0
23:11:56,535 INFO  [STDOUT] c
23:11:56,535 INFO  [STDOUT]
23:11:56,536 INFO  [STDOUT] 0x
23:11:56,536 INFO  [STDOUT] 0
23:11:56,536 INFO  [STDOUT] 0
23:11:56,536 INFO  [STDOUT]
23:11:56,536 INFO  [STDOUT] 0x
23:11:56,536 INFO  [STDOUT] 0
23:11:56,536 INFO  [STDOUT] 1
23:11:56,536 INFO  [STDOUT]
23:11:56,539 INFO  [STDOUT] Wed Feb 18 23:11:56 CET 2004 - SnmpPortal.Receiver.run: AsnEncodingException: Invalid SNMP ASN.1 type
23:11:56,539 INFO  [STDOUT] 0x
23:11:56,539 INFO  [STDOUT] 9
23:11:56,539 INFO  [STDOUT] 6
23:11:56,539 INFO  [STDOUT]
23:11:56,539 INFO  [STDOUT] 0x
23:11:56,539 INFO  [STDOUT] 5
23:11:56,540 INFO  [STDOUT] f
23:11:56,540 INFO  [STDOUT]
23:11:56,540 INFO  [STDOUT] 0x
23:11:56,540 INFO  [STDOUT] 8
23:11:56,540 INFO  [STDOUT] 1
23:11:56,540 INFO  [STDOUT]
23:11:56,540 INFO  [STDOUT] 0x
23:11:56,540 INFO  [STDOUT] 8
23:11:56,540 INFO  [STDOUT] 2
23:11:56,540 INFO  [STDOUT]
23:11:56,541 INFO  [STDOUT] 0x
23:11:56,541 INFO  [STDOUT] 0
23:11:56,541 INFO  [STDOUT] 0
23:11:56,541 INFO  [STDOUT]
23:11:56,541 INFO  [STDOUT] 0x
23:11:56,541 INFO  [STDOUT] 0
23:11:56,541 INFO  [STDOUT] 1
23:11:56,541 INFO  [STDOUT]
23:11:56,541 INFO  [STDOUT] 0x
23:11:56,542 INFO  [STDOUT] 0
23:11:56,542 INFO  [STDOUT] 0
23:11:56,542 INFO  [STDOUT]
23:11:56,542 INFO  [STDOUT] 0x
23:11:56,542 INFO  [STDOUT] 0
23:11:56,542 INFO  [STDOUT] 0
23:11:56,542 INFO  [STDOUT]
23:11:56,542 INFO  [STDOUT] 0x
23:11:56,542 INFO  [STDOUT] 0
23:11:56,543 INFO  [STDOUT] 0
23:11:56,543 INFO  [STDOUT]
23:11:56,543 INFO  [STDOUT] 0x
23:11:56,543 INFO  [STDOUT] 0
23:11:56,543 INFO  [STDOUT] 0
23:11:56,543 INFO  [STDOUT]
23:11:56,543 INFO  [STDOUT] 0x
23:11:56,543 INFO  [STDOUT] 0
23:11:56,544 INFO  [STDOUT] 0
23:11:56,544 INFO  [STDOUT]
23:11:56,544 INFO  [STDOUT] 0x
23:11:56,544 INFO  [STDOUT] 0
23:11:56,544 INFO  [STDOUT] 0
23:11:56,544 INFO  [STDOUT]
23:11:56,544 INFO  [STDOUT] 0x
23:11:56,544 INFO  [STDOUT] 0
23:11:56,544 INFO  [STDOUT] 1
23:11:56,544 INFO  [STDOUT]
23:11:56,545 INFO  [STDOUT] 0x
23:11:56,545 INFO  [STDOUT] 3
23:11:56,545 INFO  [STDOUT] 0
23:11:56,545 INFO  [STDOUT]
23:11:56,545 INFO  [STDOUT] 0x
23:11:56,545 INFO  [STDOUT] 0
23:11:56,545 INFO  [STDOUT] 1
23:11:56,545 INFO  [STDOUT]
23:11:56,545 INFO  [STDOUT] 0x
23:11:56,546 INFO  [STDOUT] 3
23:11:56,546 INFO  [STDOUT] 0
23:11:56,546 INFO  [STDOUT]
23:11:56,546 INFO  [STDOUT] 0x
23:11:56,546 INFO  [STDOUT] 0
23:11:56,546 INFO  [STDOUT] 1
23:11:56,546 INFO  [STDOUT]
23:11:56,546 INFO  [STDOUT] 0x
23:11:56,547 INFO  [STDOUT] 3
23:11:56,547 INFO  [STDOUT] 0
23:11:56,547 INFO  [STDOUT]
23:11:56,547 INFO  [STDOUT] 0x
23:11:56,547 INFO  [STDOUT] 0
23:11:56,547 INFO  [STDOUT] 1
23:11:56,547 INFO  [STDOUT]
23:11:56,547 INFO  [STDOUT] 0x
23:11:56,547 INFO  [STDOUT] 3
23:11:56,547 INFO  [STDOUT] 0
23:11:56,548 INFO  [STDOUT]
23:11:56,548 INFO  [STDOUT] 0x
23:11:56,548 INFO  [STDOUT] 0
23:11:56,548 INFO  [STDOUT] 7
23:11:56,548 INFO  [STDOUT]
23:11:56,548 INFO  [STDOUT] 0x
23:11:56,548 INFO  [STDOUT] 6
23:11:56,548 INFO  [STDOUT] 9
23:11:56,548 INFO  [STDOUT]
23:11:56,549 INFO  [STDOUT] 0x
23:11:56,549 INFO  [STDOUT] 6
23:11:56,549 INFO  [STDOUT] e
23:11:56,549 INFO  [STDOUT]
23:11:56,549 INFO  [STDOUT] 0x
23:11:56,549 INFO  [STDOUT] 2
23:11:56,549 INFO  [STDOUT] d
23:11:56,549 INFO  [STDOUT]
23:11:56,549 INFO  [STDOUT] 0x
23:11:56,550 INFO  [STDOUT] 6
23:11:56,550 INFO  [STDOUT] 1
23:11:56,550 INFO  [STDOUT]
23:11:56,550 INFO  [STDOUT] 0x
23:11:56,550 INFO  [STDOUT] 6
23:11:56,556 INFO  [STDOUT] 4
23:11:56,557 INFO  [STDOUT]
23:11:56,557 INFO  [STDOUT] 0x
23:11:56,557 INFO  [STDOUT] 6
23:11:56,557 INFO  [STDOUT] 4
23:11:56,558 INFO  [STDOUT]
23:11:56,558 INFO  [STDOUT] 0x
23:11:56,558 INFO  [STDOUT] 7
23:11:56,558 INFO  [STDOUT] 2
23:11:56,559 INFO  [STDOUT]
23:11:56,559 INFO  [STDOUT] 0x
23:11:56,559 INFO  [STDOUT] 0
23:11:56,559 INFO  [STDOUT] 4
23:11:56,559 INFO  [STDOUT]
23:11:56,560 INFO  [STDOUT] 0x
23:11:56,560 INFO  [STDOUT] 6
23:11:56,560 INFO  [STDOUT] 1
23:11:56,560 INFO  [STDOUT]
23:11:56,560 INFO  [STDOUT] 0x
23:11:56,561 INFO  [STDOUT] 7
23:11:56,561 INFO  [STDOUT] 2
23:11:56,561 INFO  [STDOUT]
23:11:56,561 INFO  [STDOUT] 0x
23:11:56,562 INFO  [STDOUT] 7
23:11:56,562 INFO  [STDOUT] 0
23:11:56,562 INFO  [STDOUT]
23:11:56,562 INFO  [STDOUT] 0x
23:11:56,563 INFO  [STDOUT] 6
23:11:56,563 INFO  [STDOUT] 1
23:11:56,563 INFO  [STDOUT]
23:11:56,563 INFO  [STDOUT] 0x
23:11:56,563 INFO  [STDOUT] 0
23:11:56,564 INFO  [STDOUT] 0
23:11:56,564 INFO  [STDOUT]
23:11:56,564 INFO  [STDOUT] 0x
23:11:56,564 INFO  [STDOUT] 0
23:11:56,564 INFO  [STDOUT] 0
23:11:56,565 INFO  [STDOUT]
23:11:56,565 INFO  [STDOUT] 0x
23:11:56,565 INFO  [STDOUT] 0
23:11:56,565 INFO  [STDOUT] c
23:11:56,566 INFO  [STDOUT]
23:11:56,566 INFO  [STDOUT] 0x
23:11:56,566 INFO  [STDOUT] 0
23:11:56,566 INFO  [STDOUT] 0
23:11:56,567 INFO  [STDOUT]
23:11:56,567 INFO  [STDOUT] 0x
23:11:56,567 INFO  [STDOUT] 0
23:11:56,567 INFO  [STDOUT]

The horrible error is present.
Dear frend,please  can you say me a good free Jboss3.2.3-Ejb book (His link!!)?

Thank and execuse me for my ignoranre!
Collin VanDyck - 18 Feb 2004 22:31 GMT
> The horrible error is present.
> Dear frend,please  can you say me a good free Jboss3.2.3-Ejb book (His link!!)?
>
> Thank and execuse me for my ignoranre!

bard-

I'm kind of at the end of my useful (?) knowledge regarding your error...
However, you should really try and do two things:

1. Think about using a tool to build your deployment descriptors for you
once you figure out this error.  Ant/XDoclet is a great combination.
2. Go to jboss.org and register with their forums.  I think you might have
better luck there. comp.lang.java.beans is rather low traffic.

Best of luck,
CV
John C. Bollinger - 20 Feb 2004 18:53 GMT
> I have a problem about Jboss 3.2.3: when I run Bean file, I have this problem:
> ERROR [XmlFileLoader] The processing instruction target matching "[
> xX][mM][lL]" is not allowed.:6:2
> org.xml.sax.SAXParseException: The processing instruction target matching "[xX][
> mM][lL]" is not allowed.

Since Collin seems to have run dry I'll observe that the error is
complaining about a malformed XML file.  An XML processing instruction
is something that looks more or less like:
    <?someName optionalAttribute1="value1" ?>

Although the format is the same, the XML declaration at the start of
your files (the <?xml version="1.0" encoding="UTF-8"?>) is considered
something different.  The "someName" in a processing instruction is not
allowed to start with the character sequence "xml", in any combination
of upper/lower case.  The exception message says that while processing
some XML file, the parser encountered what it thought was a processing
instruction that violated that rule.

The easiest error to make that might cause this is to have whitespace in
your file before the XML declaration.  The opening '<' of the XML
declaration must be the very first character of the file if the XML
declaration is present at all.  (There are reasons for that, but they're
not relevant at the moment.)

Another possible error would be to duplicate the XML declaration.  A
third would be to mistakenly use "<?" instead of "<" to open the start
tag of an element named "xmlElement" or similar.

Verify that the problem is in your hello world jar by removing it from
JBoss' deployment directory and ensuring that JBoss then starts without
error.  If so then start by checking ejb-jar.xml for any of the above
problems; I bet you'll find that you have committed the first mistake
described above.  When you locate the error make sure you haven't
duplicated it in jboss.xml.

Good Luck,

John Bollinger
jobollin@indiana.edu
bard - 22 Feb 2004 10:18 GMT
Thanks very much John C.Bollinger.
bard - 23 Feb 2004 07:27 GMT
I solve first problem, but I have now this error:
12:17:19,447 INFO  [MainDeployer] Starting deployment of package: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
12:17:19,701 ERROR [MainDeployer] could not create deployment: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Entity Bean HelloWorld: expected one persistence-type tag
       at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:252)
       at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:141)
       at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:436)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       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.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
12:17:56,722 INFO  [STDOUT] Fri Feb 20 12:17:56 CET 2004 - SnmpPortal.Receiver.run: AsnEncodingException: Invalid ASN.1 length

Thanks in advance.
John C. Bollinger - 23 Feb 2004 18:07 GMT
> I solve first problem, but I have now this error:
> 12:17:19,447 INFO  [MainDeployer] Starting deployment of package: file:/home/raffaele/jboss-3.2.3/server/default/deploy/HelloWorld.jar
[quoted text clipped - 19 lines]
>         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
> 12:17:56,722 INFO  [STDOUT] Fri Feb 20 12:17:56 CET 2004 - SnmpPortal.Receiver.run: AsnEncodingException: Invalid ASN.1 length

Once again, the exception message indicates exactly what the problem is:
the deployment descriptor for your HelloWorld bean needs to contain a
persistence-type element.  Alternatively, the bean could be made a
session bean instead of an entity bean, but then other requirements
would apply.  The required content of the deployment descriptor is
covered in the EJB spec; you can get it at

    http://java.sun.com/products/ejb/docs.html#specs

I don't know whether JBoss supports EJB 2.1, but it certainly does
support 2.0; it's probably safe to get that version and use it for your
reference.

John Bollinger
jobollin@indiana.edu
leighfwarren - 01 Sep 2005 16:48 GMT
Upgrading from JBoss 3.2.3 to 4.0.2 I get a ClassCastException from
PortableRemoteObject.narrow(Object, Class) line: 260


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.