J2EE_Jonas [Fermé]

Signaler
-
Messages postés
623
Date d'inscription
vendredi 26 juillet 2002
Statut
Membre
Dernière intervention
11 novembre 2012
-
Bonsoir à tous,
J'ai un problème lors le déploiement de mon application sur le serveur Jonas.
Avez vous une idée sur comment résoudre ce problème
Bien Cordialement Hajer
le bug est le suivant :
2012-11-08 21:45:36,685 : J2EEServer.__deploy : Cannot deploy the deployable
org.ow2.util.ee.deploy.api.deployer.DeployerException: Cannot deploy the given EJB 'EJB3DeployableImpl[archive=E:\jonas-full-5.2.3\archives\HelloEJB.jar]'.
at org.ow2.jonas.ejb.easybeans.EasyBeansDeployer.doDeploy(EasyBeansDeployer.java:175)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:93)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:91)
at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:91)
at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:148)
at org.ow2.jonas.lib.jmbeans.J2EEServer.__deploy(J2EEServer.java:854)
at org.ow2.jonas.lib.jmbeans.J2EEServer.deploy(J2EEServer.java)
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:597)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
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:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.ow2.easybeans.api.EZBContainerException: Cannot create deployable metadata 'E:\jonas-full-5.2.3\work\ejb3s\jonas\HelloEJB_2012.11.08-21.45.36.jar'.
at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:301)
at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:383)
at org.ow2.jonas.ejb.easybeans.EasyBeansDeployer.doDeploy(EasyBeansDeployer.java:172)
... 33 more
Caused by: org.ow2.util.ee.deploy.api.deployable.metadata.DeployableMetadataException: org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException: Cannot parse the url
at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:214)
at org.ow2.easybeans.deployment.Deployment.analyze(Deployment.java:153)
at org.ow2.easybeans.container.JContainer3.resolve(JContainer3.java:291)
... 35 more
Caused by: org.ow2.util.ee.metadata.common.impl.xml.parsing.ParsingException: Cannot parse the url
at org.ow2.util.ee.metadata.ejbjar.impl.xml.parsing.EJB3DeploymentDescLoader.parse(EJB3DeploymentDescLoader.java:127)
at org.ow2.util.ee.metadata.ejbjar.impl.xml.parsing.EJB3DeploymentDescLoader.loadDeploymentDescriptor(EJB3DeploymentDescLoader.java:113)
at org.ow2.util.ee.metadata.ejbjar.impl.xml.parsing.EJB3DeploymentDesc.getEjb3(EJB3DeploymentDesc.java:68)
at org.ow2.util.ee.metadata.ejbjar.impl.EjbJarDeployableMetadataFactory.createDeployableMetadata(EjbJarDeployableMetadataFactory.java:212)
... 37 more
Caused by: org.ow2.util.xml.DocumentParserException: Cannot parse the XML InputSource.
at org.ow2.util.xml.DocumentParser.getDocument(DocumentParser.java:246)
at org.ow2.util.xml.DocumentParser.getDocument(DocumentParser.java:172)
at org.ow2.util.xml.DocumentParser.getDocument(DocumentParser.java:141)
at org.ow2.util.xml.DocumentParser.getDocument(DocumentParser.java:112)
at org.ow2.util.ee.metadata.ejbjar.impl.xml.parsing.EJB3DeploymentDescLoader.parse(EJB3DeploymentDescLoader.java:125)
... 40 more
Caused by: org.xml.sax.SAXException: Parse Fatal Error at line 4 column 102: cvc-elt.1: Cannot find the declaration of element 'ejb-jar'.
at org.ow2.util.xml.DefaultErrorHandler.error(DefaultErrorHandler.java:55)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.ow2.util.xml.DocumentParser.getDocument(DocumentParser.java:244)
... 44 more
2012-11-08 21:45:36,700 : BaseModelMBean.invoke : Exception invoking method deploy
java.lang.RuntimeException: Cannot deploy the deployable 'EJB3DeployableImpl[archive=E:\jonas-full-5.2.3\archives\HelloEJB.jar]' : Cannot deploy the given EJB 'EJB3DeployableImpl[archive=E:\jonas-full-5.2.3\archives\HelloEJB.jar]'.
at org.ow2.jonas.lib.jmbeans.J2EEServer.__deploy(J2EEServer.java:857)
at org.ow2.jonas.lib.jmbeans.J2EEServer.deploy(J2EEServer.java)
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:597)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
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:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)



1 réponse

Messages postés
623
Date d'inscription
vendredi 26 juillet 2002
Statut
Membre
Dernière intervention
11 novembre 2012
967
Salut!

Au vu de ceci, il y a une erreur dans la définition des tes beans dans le fichier XML où sont définis tes beans (ice doit être le fichier ejb-jar.xml)

Caused by: org.xml.sax.SAXException: Parse Fatal Error at line 4 column 102: cvc-elt.1: Cannot find the declaration of element 'ejb-jar'. 


Regarde donc à la ligne 4, caractère 102.

Je parierai qu'il s'agit d'une balise XML non fermée
;-)