[JBoss AS7 Development] - Deploying liferay on JBoss 7
by Chander Shivdasani
Chander Shivdasani [http://community.jboss.org/people/chandershivdasani] created the discussion
"Deploying liferay on JBoss 7"
To view the discussion, visit: http://community.jboss.org/message/620202#620202
--------------------------------------------------------------
I've been trying to deploy Liferay on JBoss 7 and have been failing miserably. I followed the usual steps:
* Downloaded Jboss 7 and liferay.war
* I copied liferay.way at JBOSS_HOME/standalone/deployments
* And i ran JBOSS_HOME/bin/standalone.sh
I've been getting following errors. Did anyone try doing this before? I would be nice if any of you can share the instructions.
12:06:02,088 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry ../bin/ in "/content/liferay.war/WEB-INF/lib/jurt.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,088 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry jaxp-api.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry jax-qname.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry activation.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry servlet.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry lib/ant.jar in "/content/liferay.war/WEB-INF/lib/truezip.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,090 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry lib/lcrypto-jdk14-135.jar in "/content/liferay.war/WEB-INF/lib/truezip.jar" does not point to a valid jar for a Class-Path reference.
12:06:02,250 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-47) MSC00001: Failed to start service jboss.deployment.unit."liferay.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."liferay.war".PARSE: Failed to process phase PARSE of deployment "liferay.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]
at java.lang.Thread.run(Thread.java:661) [:1.6.0_23]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/content/liferay.war/WEB-INF/jboss-web.xml"
at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:66)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[5,2]
Message: Unexpected element 'class-loading' encountered
at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)
at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:182)
at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:64)
... 6 more
12:06:02,267 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "liferay.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"liferay.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"liferay.war\".PARSE: Failed to process phase PARSE of deployment \"liferay.war\""}}
12:06:02,268 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report
Services which failed to start:
service jboss.deployment.unit."liferay.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."liferay.war".PARSE: Failed to process phase PARSE of deployment "liferay.war"
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/620202#620202]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss AS7 Development] - Spring-WS 1.5.9 on JBoss AS 7
by Andrei Biketov
Andrei Biketov [http://community.jboss.org/people/kmv2000] created the discussion
"Spring-WS 1.5.9 on JBoss AS 7"
To view the discussion, visit: http://community.jboss.org/message/633180#633180
--------------------------------------------------------------
Hi,
I'm getting the following exception trying to deploy web application that uses spring-ws 1.5.9. This application works without any problem on tomcat and other web app. servers. I suspect that there is a conflict between jdk1.6 soap implementation and jboss 7 implementatin in JAR
*jboss-saaj-api_1.3_spec-1.0.1.Final.jar*. I tried to exclude jboss module *javax.xml.soap.api* using jboss-deployment-structure.xml file
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
<exclusions>
<module name="javax.xml.soap.api"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
but it didn't help.
Anyone had a similar problem or knows work around?
Thnaks,
Caused by: org.springframework.beans.factory.BeanCreationException: Invocation of init method failed; nested exception is org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException; nested exception is javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException
at org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:169) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategies(DefaultStrategiesHelper.java:115) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:200) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:184) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.client.core.WebServiceTemplate.initMessageFactory(WebServiceTemplate.java:315) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.client.core.WebServiceTemplate.initDefaultStrategies(WebServiceTemplate.java:304) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.client.core.WebServiceTemplate.<init>(WebServiceTemplate.java:133) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.client.core.support.WebServiceGatewaySupport.<init>(WebServiceGatewaySupport.java:65) [spring-ws-core-1.5.9.jar:]
at com.nrx.adg.messaging.gateway.xforms.SisXFromsClientGateway.<init>(SisXFromsClientGateway.java:8) [messaging-6.1_SP3-SNAPSHOT.jar:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_25]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_25]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_25]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_25]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126) [spring-beans-3.0.6.RELEASE.jar:]
... 49 more
Caused by: org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ MessageFactory: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException; nested exception is javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException
at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:147) [spring-ws-core-1.5.9.jar:]
at org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:166) [spring-ws-core-1.5.9.jar:]
... 62 more
*Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: java.lang.reflect.InvocationTargetException*
* at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:112) [jboss-saaj-api_1.3_spec-1.0.1.Final.jar:1.0.1.Final]*
* at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:133) [spring-ws-core-1.5.9.jar:]*
... 63 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633180#633180]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM Development] - Oryx: Not able parse the knowledge when adding Message Events or Send Task Node
by uvijayreddy657
uvijayreddy657 [http://community.jboss.org/people/uvijayreddy657] created the discussion
"Oryx: Not able parse the knowledge when adding Message Events or Send Task Node"
To view the discussion, visit: http://community.jboss.org/message/629805#629805
--------------------------------------------------------------
I am getting the following exception when loading the process which has *Intermediate Message Event(i.e. Email Notification Nodes) or Send Task nodes*
URL url = new URL(guvnorRepoURL+ "/drools-guvnor/rest/packages/pkg/assets/" + assetName+ "/source/");
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newUrlResource(url),ResourceType.BPMN2);
KnowledgeBase kbase = kbuilder.newKnowledgeBase(); //Getting error at this statement
*(null: 369, 100): cvc-datatype-valid.1.2.1: '2' is not a valid value for 'QName'.*
*(null: 369, 100): cvc-attribute.3: The value '2' of attribute 'messageRef' on element 'bpmn2:messageEventDefinition' is not valid with respect to its type, 'QName'.*
*java.lang.IllegalArgumentException: No messages found*
at org.jbpm.bpmn2.xml.IntermediateCatchEventHandler.handleMessageNode(IntermediateCatchEventHandler.java:131)
at org.jbpm.bpmn2.xml.IntermediateCatchEventHandler.end(IntermediateCatchEventHandler.java:64)
at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:414)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:795)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:293)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:172)
at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:249)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:560)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at com.emirates.sds.workflow.mbean.CWorkflowDesignerMBean.getWFProcessNodesList(CWorkflowDesignerMBean.java:279)
at com.emirates.sds.workflow.mbean.CWorkflowDesignerMBean.getProcessNodesList(CWorkflowDesignerMBean.java:1071)
at com.emirates.sds.workflow.mbean.CWorkflowDesignerMBean.mapForms(CWorkflowDesignerMBean.java:249)
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.el.parser.AstValue.invoke(AstValue.java:172)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:84)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
at javax.faces.component.UICommand.broadcast(UICommand.java:311)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
*org.drools.compiler.ProcessLoadError: unable to parse xml : Exception class java.lang.IllegalArgumentException : No messages found*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629805#629805]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss AS7 Development] - JBoss HornetQ jms exception
by Bharat Savanur
Bharat Savanur [http://community.jboss.org/people/bharat.savanur] created the discussion
"JBoss HornetQ jms exception"
To view the discussion, visit: http://community.jboss.org/message/630220#630220
--------------------------------------------------------------
Hi All,
I am facing a problem in HornetQ jms. The queues and the topics are configured using spring jndi template.
When i start the server the queues are binded and everything works fine.
But the requirement is when the server starts up, we send a message to an MDB configured on the same server
with the server information specific to our application. When i try to do this, it gives me an error saying
jms exception occured while processing the message. The complete stack trace is given below :
ERROR [*MessageListenerAdapter*] (Thread-20 (group:HornetQ-client-global-threads-1688591)) Error happened when processing message: javax.jms.JMSException: *ServerInfo* from [Module "org.hornetq:main" from local module loader @4aeb52 (roots: D:\Servers_New\new 7.2 server\jboss-as-7.0.2.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
at java.lang.Class.forName0(Native Method) [:1.6.0_18]
at java.lang.Class.forName(Class.java:247) [:1.6.0_18]
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) [:1.6.0_18]
at org.hornetq.utils.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:71) [hornetq-core-2.2.7.Final.jar:]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) [:1.6.0_18]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) [:1.6.0_18]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) [:1.6.0_18]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_18]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_18]
at org.hornetq.jms.client.HornetQObjectMessage.getObject(HornetQObjectMessage.java:158) [hornetq-jms-2.2.7.Final.jar:]
at *ControlMessageUtil*.process(ControlMessageUtil.java:24)
at *MessageListenerAdapter*.onMessage(MessageListenerAdapter.java:53)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:510)
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:445)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
at org.springframework.jms.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:386)
at org.springframework.jms.listener.SimpleMessageListenerContainer$2.onMessage(SimpleMessageListenerContainer.java:205)
at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:91) [hornetq-jms-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:866) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:44) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:983) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [hornetq-core-2.2.7.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_18]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_18]
It would be great if to know if this a class loading issue or something else. An answer would be lot of helpful.
Thanks and Regards,
Bharat Savanur
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630220#630220]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month