[JBoss Portal] - jboss-portal.sar does not work in jboss-5.1.0.GA
by mikehsieh97
I download jboss-portal-2.6.8.GA and copy jboss-portal.sar to my custom configuration C:\jboss-5.1.0.GA\server\portal\deploy\ but I got the following error. (My custom configuration portal is a copy of server\default.) Please advise.
17:42:28,371 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/jboss-5.1.0.GA/server/portal/deploy/jboss-portal.sar/ state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss-5.1.0.GA/server/portal/deploy/jboss-portal.sar/portal-aop.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:355)
... 34 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=aop
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:281)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.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.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 42 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247455#4247455
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247455
15 years, 7 months
[JBoss AOP] - Re: ClassNotFoundException: org.jboss.injbossaop.lib.Example
by forumer
I am continuing to have problems making injboss example to work and would appreciate any help.
This time I started with a fresh version of JBoss 4.2.2 and JBoss-aop-2.1.3.GA
ran the default ant task in script under C:\Downloads\JBoss\jboss-aop-2.1.3.GA\jboss-40-install\jboss-aop-jdk50.deployer after modifying properties to point to JBoss instance
In C:\jboss-4.2.2.GA\server\all\deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml
<attribute name="EnableLoadtimeWeaving">true</attribute>
copied pluggable-instrumentor.jar from jboss-aop-2.1.3.GA\lib to C:\jboss-4.2.2.GA\bin
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -javaagent:C:\jboss-4.2.2.GA\bin\pluggable-instrumentor.jar in run.bat
ran the deploy-basic-lt-war-in-jar task for the examples\injboss
C:\jboss-4.2.2.GA\bin>run -c all
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss-4.2.2.GA
JAVA: C:\java\jdk1.5.0_13\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -javaagent:C:\jboss-4.2.2.GA\bin\pluggable-instrumentor.jar -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\java\jdk1.5.0_13\lib\tools.jar;C:\jboss-4.2.2.GA\bin\run.jar
===============================================================================
Also seeing the following on console:
ERROR [SuperClassesFirstWeavingStrategy] Error converting class .. Do verbose mode if you want full stack trace.
got the following error when I go to http://localhost:8080/aopexample/index.jsp
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 2
1: <%@page language="java" contentType="text/html" import="org.jboss.injbossaop.lib.ExampleValue"%>
2: <jsp:useBean id="exampleValue" scope="session" type="org.jboss.injbossaop.lib.ExampleValue" />
3:
4: AOP in JBoss Simple WAR example
5:
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.ServletException: java.lang.InstantiationException: bean exampleValue not found within scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
I get the following When I run DisplayClassInfo for org.jboss.injbossaop.lib.ExampleValue in JMX console
org.jboss.injbossaop.lib.ExampleValue Information
Repository cache version:
org.jboss.injbossaop.lib.ExampleValue(fb305f).ClassLoader=org.jboss.mx.loading.UnifiedClassLoader3@8eaec8{ url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar ,addedOrder=44}
..org.jboss.mx.loading.UnifiedClassLoader3@8eaec8{ url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar ,addedOrder=44}
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexamplelib.aop
....file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexample-exp.war/
....file:/C:/jboss-4.2.2.GA/server/all/tmp/aopdynclasses/ucl56834/
..org.jboss.system.server.NoAnnotationURLClassLoader@186db54
..sun.misc.Launcher$AppClassLoader@9fbe93
....file:/C:/Java/jdk1.5.0_13/lib/tools.jar
....file:/C:/jboss-4.2.2.GA/bin/run.jar
....file:/C:/jboss-4.2.2.GA/bin/pluggable-instrumentor.jar
..sun.misc.Launcher$ExtClassLoader@198dfaf
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/dnsns.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/localedata.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/sunjce_provider.jar
....file:/C:/Java/jdk1.5.0_13/jre/lib/ext/sunpkcs11.jar
++++CodeSource: (file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar-contents/aopexamplelib.aop )
Implemented Interfaces:
++interface java.io.Serializable(1c8b884)
++++ClassLoader: null
++++Null CodeSource
++interface org.jboss.aop.Advised(1f4cdd2)
++++ClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@119db9e{ url=file:/C:/jboss-4.2.2.GA/server/all/deploy/jboss-aop-jdk50.deployer/ ,addedOrder=4}
++++CodeSource: (file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56735jboss-aop-jarjar.jar )
### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3@8eaec8{ url=file:/C:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp56833aopexample.jar ,addedOrder=44}
anonymous wrote :
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247454#4247454
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247454
15 years, 7 months
[EJB 3.0] - EJB Deployment Error with MANIFEST entry 'Class-Path'
by murdochjohn
Hi all,
i'm experiencing a strange behaviour while deploying an EAR that contains three EJB-JARs. One of them is linked via the MANIFEST entry 'Class-Path' to an other. Without the MANIFEST entry the deployment works as expected.
The Exception shown:
| 20:42:37,408 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=ear-1-1.0.ear,jar=ejb-2-1.0.jar,name=MyMessageEJB,service=EJB3 state=Create
| org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@81d5e[name=destination descriptions=[DescriptionMetaData@394901[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
|
I'm using:
- JBoss 5.1.0 GA
- JDK 1.5.0_19
This is the application descriptor:
| <?xml version="1.0" encoding="UTF-8"?>
| <application xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
| <description>Application</description>
| <display-name>Application</display-name>
| <module>
| <ejb>ejb-1-1.0.jar</ejb>
| </module>
| <module>
| <ejb>ejb-2-1.0.jar</ejb>
| </module>
| <module>
| <ejb>mdb-1-1.0.jar</ejb>
| </module>
| </application>
|
The MANIFEST i'm using:
| Archiver-Version: Plexus Archiver
| Created-By: Apache Maven
| Built-By: john
| Build-Jdk: 1.5.0_19
| Class-Path: mdb-1-1.0.jar
|
The sample application EAR can be downloaded here: http://www.moumantai.de/dl/application.zip. The ZIP file includes the two EAR files (the one working and the one throwing the exception) and a destination-service.xml to create the necessary queue.
I'm need to build the applications classpath via the MANIFEST. Any suggestions to solve the problem?
Thanks a lot.
JOHN
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247451#4247451
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247451
15 years, 7 months
[JBoss jBPM] - Problem with Errors in named queries when deploying jbpm wit
by gerry78
Hi All,
I am trying to use jbpm 3.3.1 with oracle 10g and weblogic 10.3. I get the following exception from hibernate when i deploy the application:
org.hibernate.HibernateException: Errors in named queries: GraphSession.deleteJobsForProcessInstance, JobSession.deleteTimersForProcessInstance, GraphSession.AllProcessNames, JobSession.suspendJobs, JobSession.deleteExecuteNodeJobsForProcessInstance, GraphSession.deleteTaskInstancesById, JobSession.deleteTimersByName, JobSession.resumeJobs
I tried to chenge the server to a tomcat server or the database to mysql and the same problem exists. I saw in some post that using the latest version of hibernate will solve the problem but this haven't done the trick.
The problem exists in the org/jbpm/db/hibernate.queries.hbm.xml but i don't know how to change the queries there.
Is anyone that experienced a simular problem and solve it that can help?
Thanks a lot.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247446#4247446
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247446
15 years, 7 months