[JBoss Web Services] - Re: JBossWS + CXF + Spring + Maven triggers "java.lang.NoClassDefFoundError: javax/servlet/ServletException"
by stephen b
stephen b [https://community.jboss.org/people/slbanal] created the discussion
"Re: JBossWS + CXF + Spring + Maven triggers "java.lang.NoClassDefFoundError: javax/servlet/ServletException""
To view the discussion, visit: https://community.jboss.org/message/799219#799219
--------------------------------------------------------------
At last I figured out the issue!
It looks like JBossWS-CXF jax-ws-client module have some issues in its dependencies thus causing the stack to throw a "+javax.servlet.ServletException"+ due to some missing dependency to "javax.servlet.api" module. I did the following steps to diagnose and fix the issue:
1. I fixed the module dependency issue of "+org.jboss.ws.jaxws-client" module in JBoss. I modified file JBOSS_HOME/+modules/org/jboss/ws/jaxws-client/main/module.xml and added line under <dependencies/> section.
<module name="javax.servlet.api" />
After this fix, JBossWS-CXF is now throwing the correct error. Example stack trace below:
15:54:14,958 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-as-helloworld-ws].[HelloWorldService]] (http--127.0.0.1-8083-1) Servlet.service() for servlet HelloWorldService threw exception: javax.servlet.ServletException: JBWS024029: Cannot obtain destination for /jboss-as-helloworld-ws/hello-world
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.findDestination(RequestHandlerImpl.java:168)
at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:85)
at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)
at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
2. I changed my jbossws-cxf.xml and fixed the jaxws endpoint address
From:
+ <jaxws:endpoint implementor="#HelloWorldService"+
+ address="/hello-world">+
+ </jaxws:endpoint>+
To:
<jaxws:endpoint implementor="#HelloWorldService"
address="*/jboss-as-helloworld-ws*/hello-world">
</jaxws:endpoint>
I don't understand why +org.jboss.ws.jaxws-clientI+ module doesn't have a dependency on javax.servlet.api dependency if it is throwing a ServletException.
Could this be a bug that I should report?
Thanks
Stephen
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799219#799219]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss Web Services] - Cxf Jboss AS 7.1 and Spring problem
by massai khosa
massai khosa [https://community.jboss.org/people/mbsakho] created the discussion
"Cxf Jboss AS 7.1 and Spring problem"
To view the discussion, visit: https://community.jboss.org/message/794109#794109
--------------------------------------------------------------
Hi all,
I'm in trouble with Spring intégration with cxf and jbossAS 7.1
I'm trying to use the cxf version which is bundled with jbossAS7.1
As explained in the documentation, I've performed theses steps below:
1)I've created the spring module in jboss with the required jars
2)I've added the spring dependendy in the manifest File
When I deploy my webapps, I've a lot of errors below:
Here are the errors
15:08:18,577 WARN [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-5) Ignored XML validation warning: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 72; schema_reference.4: Failed to read schema document ' http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/beans/spring-beans-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
15:08:18,609 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Context initialization failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from ServletContext resource [/WEB-INF/ws-jv-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 72; cvc-elt.1: Cannot find the declaration of element 'beans'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [org.springframework.web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [org.springframework.web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [org.springframework.context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530) [org.springframework.context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444) [org.springframework.context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388) [org.springframework.web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293) [org.springframework.web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [org.springframework.web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
Caused by: org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 72; cvc-elt.1: Cannot find the declaration of element 'beans'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
... 21 more
*Here is my web.xml file:*
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0"
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/web-app_3_0.xsd">
<display-name>wsproto2</display-name>
<servlet>
<description>Apache CXF Endpoint</description>
<display-name>cxf</display-name>
<servlet-name>cxf</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cxf</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/ws-jv-context.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
</web-app>
*Here is my ws-jv-context.xml*
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<jaxws:endpoint xmlns:tns="http://sandbox.casden.fr/"
id="helloservice" implementor="fr.casden.sandbox.HelloServiceImpl"
wsdlLocation="wsdl/helloserviceimpl.wsdl" endpointName="tns:HelloServiceImplPort"
serviceName="tns:HelloServiceImplService" address="/HelloServiceImplPort">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature" />
</jaxws:features>
</jaxws:endpoint>
</beans>
My spring module content:
<module xmlns="urn:jboss:module:1.1" name="org.springframework.spring">
<resources>
<resource-root path="org.springframework.aop-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.asm-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.aspects-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.beans-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.context-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.context.support-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.core-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.expression-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.instrument-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.oxm-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.web.servlet-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.web-3.1.4.RELEASE.jar"/>
<resource-root path="org.springframework.transaction-3.1.4.RELEASE.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.enterprise.api"/>
<module name="javax.api"/>
<module name="javax.servlet.api"/>
<module name="org.apache.commons.logging"/>
</dependencies>
</module>
Any help would be greatly appreciated.
Massai.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794109#794109]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[Beginner's Corner] - TicketMonster - importing GitHub- trying to deploy
by zacce
zacce [https://community.jboss.org/people/zacce] created the discussion
"TicketMonster - importing GitHub- trying to deploy"
To view the discussion, visit: https://community.jboss.org/message/799200#799200
--------------------------------------------------------------
Trying to Full publish my imported TicketMonster but I get an error:
14:46:02,815 INFO [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-3) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
14:46:02,822 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-3) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
14:46:02,823 WARN [org.hibernate.dialect.H2Dialect] (MSC service thread 1-3) HHH000431: Unable to determine H2 database version, certain features may not work
14:46:02,823 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-3) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
14:46:02,824 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-3) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory
14:46:02,825 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-3) HHH000397: Using ASTQueryTranslatorFactory
14:46:02,930 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000227: Running hbm2ddl schema export
14:46:02,932 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Booking drop constraint FK6713A039F0809A8E
14:46:02,932 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "BOOKING" not found; SQL statement:
alter table Booking drop constraint FK6713A039F0809A8E [42102-161]
14:46:02,933 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Event drop constraint FK403827A28772A4E
14:46:02,933 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "EVENT" not found; SQL statement:
alter table Event drop constraint FK403827A28772A4E [42102-161]
14:46:02,934 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Event drop constraint FK403827A9D6DF788
14:46:02,935 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "EVENT" not found; SQL statement:
alter table Event drop constraint FK403827A9D6DF788 [42102-161]
14:46:02,935 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Performance drop constraint FKB2CB810D13A2446
14:46:02,936 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "PERFORMANCE" not found; SQL statement:
alter table Performance drop constraint FKB2CB810D13A2446 [42102-161]
14:46:02,937 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Section drop constraint FKD8A816C5ED55AD2E
14:46:02,937 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "SECTION" not found; SQL statement:
alter table Section drop constraint FKD8A816C5ED55AD2E [42102-161]
14:46:02,938 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table SectionAllocation drop constraint FK66D65185F0809A8E
14:46:02,938 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "SECTIONALLOCATION" not found; SQL statement:
alter table SectionAllocation drop constraint FK66D65185F0809A8E [42102-161]
14:46:02,939 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table SectionAllocation drop constraint FK66D65185CE98AC6E
14:46:02,939 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "SECTIONALLOCATION" not found; SQL statement:
alter table SectionAllocation drop constraint FK66D65185CE98AC6E [42102-161]
14:46:02,940 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Show drop constraint FK274F1DED55AD2E
14:46:02,940 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "SHOW" not found; SQL statement:
alter table Show drop constraint FK274F1DED55AD2E [42102-161]
14:46:02,941 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Show drop constraint FK274F1D7A0C394E
14:46:02,941 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "SHOW" not found; SQL statement:
alter table Show drop constraint FK274F1D7A0C394E [42102-161]
14:46:02,942 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Ticket drop constraint FK954D572C84282A46
14:46:02,942 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKET" not found; SQL statement:
alter table Ticket drop constraint FK954D572C84282A46 [42102-161]
14:46:02,943 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Ticket drop constraint FK954D572CBFBCA6A0
14:46:02,944 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKET" not found; SQL statement:
alter table Ticket drop constraint FK954D572CBFBCA6A0 [42102-161]
14:46:02,944 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Ticket drop constraint FK954D572CCE98AC6E
14:46:02,945 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKET" not found; SQL statement:
alter table Ticket drop constraint FK954D572CCE98AC6E [42102-161]
14:46:02,945 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK7823057D84282A46
14:46:02,946 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKETPRICE" not found; SQL statement:
alter table TicketPrice drop constraint FK7823057D84282A46 [42102-161]
14:46:02,946 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK7823057DD13A2446
14:46:02,947 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKETPRICE" not found; SQL statement:
alter table TicketPrice drop constraint FK7823057DD13A2446 [42102-161]
14:46:02,948 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table TicketPrice drop constraint FK7823057DCE98AC6E
14:46:02,948 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "TICKETPRICE" not found; SQL statement:
alter table TicketPrice drop constraint FK7823057DCE98AC6E [42102-161]
14:46:02,949 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000389: Unsuccessful: alter table Venue drop constraint FK4EB7A4F28772A4E
14:46:02,949 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) Table "VENUE" not found; SQL statement:
alter table Venue drop constraint FK4EB7A4F28772A4E [42102-161]
14:46:02,994 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000230: Schema export complete
14:46:03,001 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment ticket-monster.war
14:46:03,011 INFO [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-3) starting errai cdi ...
14:46:03,582 INFO [org.jboss.errai.reflections.Reflections] (Thread-84) Reflections took 296 ms to scan 7 urls, producing 380 keys and 1377 values [using 2 cores]
14:46:03,641 INFO [org.jboss.errai.cdi.server.CDIExtensionPoints] (pool-28-thread-1) all services registered successfully
14:46:03,707 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/ticket-monster'
14:46:03,812 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! WELD-001001 Cannot pass null expressionFactory
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]
Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001001 Cannot pass null expressionFactory
at org.jboss.weld.el.WeldExpressionFactory.<init>(WeldExpressionFactory.java:38) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.manager.BeanManagerImpl.wrapExpressionFactory(BeanManagerImpl.java:995) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.webtier.jsf.WeldApplication.getExpressionFactory(WeldApplication.java:91) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.weld.environment.servlet.jsf.WeldApplication.init(WeldApplication.java:77) [weld-servlet-core-1.1.6.Final.jar:20120321-1852]
at org.jboss.weld.environment.servlet.jsf.WeldApplication.delegate(WeldApplication.java:85) [weld-servlet-core-1.1.6.Final.jar:20120321-1852]
at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.getActionListener(ForwardingApplication.java:168) [weld-servlet-core-1.1.6.Final.jar:20120321-1852]
at com.sun.faces.config.processor.ApplicationConfigProcessor.addActionListener(ApplicationConfigProcessor.java:459) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:290) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 9 more
Seems to me that imported TicketMonster cannot create H2 tables in deployment. Does anybody has any hint how to proceed ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799200#799200]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM] - Error on task complete.
by Diego Aguirre
Diego Aguirre [https://community.jboss.org/people/diaguirr] created the discussion
"Error on task complete."
To view the discussion, visit: https://community.jboss.org/message/798218#798218
--------------------------------------------------------------
I am working with JBPM 5.1 , integrated with the ESB 4.11 and the AS 5. Actualy, its the enterprise confirguration for this products (SOA-P 5.3 + its JBPM5 integration)
Untill now i have been using some services wich start a single process each one. Those process are fairly complex and include human tasks. This setup was working quite well untill we started using bpmn process to orchestrate those services on more complex ones.
So now we have a service wich starts a process wich calls another service wich start a process with human tasks on it. In this scenario, some times (most times actually) when we complete a human task, an error is thrown in the console, but apparently the task completes normally.
We have experenced some task duplication and taks not being created, and we think this error might be cousing that.
The error trace is the following:
15:40:15,823 ERROR [SingleSessionCommandService] Could not commit session
java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.setProcess(ProcessInstanceImpl.java:61)
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:375)
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:142)
at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:83)
at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:204)
at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1100)
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:295)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:117)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:355)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
at org.jbpm.task.service.hornetq.CommandBasedHornetQWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedHornetQWSHumanTaskHandler.java:309)
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:108)
at java.lang.Thread.run(Unknown Source)
15:40:16,630 ERROR [STDERR] Exception in thread "Thread-86"
15:40:16,630 ERROR [STDERR] java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5446
15:40:16,630 ERROR [STDERR] at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:119)
15:40:16,630 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
15:40:16,630 ERROR [STDERR] Caused by: java.lang.NullPointerException
15:40:16,630 ERROR [STDERR] at org.jbpm.process.instance.impl.ProcessInstanceImpl.setProcess(ProcessInstanceImpl.java:61)
15:40:16,630 ERROR [STDERR] at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:375)
15:40:16,630 ERROR [STDERR] at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:142)
15:40:16,630 ERROR [STDERR] at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:83)
15:40:16,630 ERROR [STDERR] at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:204)
15:40:16,630 ERROR [STDERR] at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1100)
15:40:16,630 ERROR [STDERR] at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:295)
15:40:16,630 ERROR [STDERR] at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:117)
15:40:16,630 ERROR [STDERR] at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
15:40:16,630 ERROR [STDERR] at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
15:40:16,630 ERROR [STDERR] at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
15:40:16,630 ERROR [STDERR] at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:355)
15:40:16,630 ERROR [STDERR] at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
15:40:16,630 ERROR [STDERR] at org.jbpm.task.service.hornetq.CommandBasedHornetQWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedHornetQWSHumanTaskHandler.java:309)
15:40:16,630 ERROR [STDERR] at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
15:40:16,630 ERROR [STDERR] at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)
15:40:16,630 ERROR [STDERR] at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:108)
15:40:16,630 ERROR [STDERR] ... 1 more
As the log shows i am usng CommandBasedHornetQWSHumanTaskHandler as the human task work item handler and HornetQTaskClientConnector as the client conector for completing the task (but this happens too if i use the eclipse client).
For starting the process i am using the Bpm5Processor action.
I have been trying to solve this issue for several days now, so any idea or pointer is very welcome.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798218#798218]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months