[Installation, Configuration & DEPLOYMENT] - Re: packaging log4j.properties with a server jar
by jaikiran
"prpo" wrote :
| a) Just package the shared library with the ejb - no overriding of java2ParentDelegation - Does not locate the log4j.xml
|
| Any insights?
|
In this scenario, where exactly is the log4j.xml placed? Is it inside the shared.jar or inside the ejb.jar? When you say you are packaging the shared jar with the ejb jar, how exactly are you doing this? Packaging one jar inside other? I think the reason why the log4j.xml is not being picked up is because of the singleton nature of the log4j Logger class. Unless a new instance of the Logger object is not created through the application specific classloader, the log4j properties/xml file initialization will not happen.
Furthermore, add the -log4j:debug parameter to the JAVA_OPTS in your run.bat of JBoss. This parameter will printout to the STDOUT (console) internal log4j messages which will help you understand where log4j is looking for the file.
Also, is the shared library code part of your applicaiton? And do you have rights to change the code (thinking of a last resort option).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185470#4185470
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185470
17 years, 6 months
[JNDI/Naming/Network] - JNDI/JDBC Error
by vitechinc2008
Hi.
I am new with JBOSS. Just wanted to know why does JBOSS append JNDI name with java. (java:jdbc/V3CRMDS)? My application is depened on JNDI name. Is that how JBOSS work, or can i change that?
[ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/V3CRMDS' to JNDI name 'java:jdbc/V3CRMDS'
I am getting the following error after deployment after deploying the war file:
Thank you for your help.
SA
2008-10-29 12:40:49,594 INFO [STDOUT] 12:40:49,584 ERROR ContextLoader:203 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pmf' defined in class path resource [v3coreconfig/hibernate-spring-con
text.xml]: Cannot resolve reference to bean 'V3DataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.Bea
nCreationException: Error creating bean with name 'V3DataSource' defined in class path resource [config/datasource-spring-context.xml]: Invocation of init met
hod failed; nested exception is javax.naming.NameNotFoundException: jdbc not bound
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'V3DataSource' defined in class path resource [config/datasource-spring
-context.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: jdbc not bound
Caused by:
javax.naming.NameNotFoundException: jdbc not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185466#4185466
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185466
17 years, 6 months
[JBoss jBPM] - Re: Problem running bpel process designed with eclipse bpel
by sw_bpel
ok, thank you for your help.
now i added an invoke-call for an external webservice. i add 2 assignments and one invoke node to the bpel-process. but when i want to test the process with soapUI i get also an error:
no port implements the required port type
my bpel-file:
| <?xml version="1.0" encoding="UTF-8"?>
| <bpws:process exitOnStandardFault="yes" name="SifedsBpelProcess"
| suppressJoinFailure="yes"
| targetNamespace="http://process.bpel.sifeds.de"
| xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
| xmlns:ns="http://process.bpel.sifeds.deArtifacts"
| xmlns:ns0="http://authentification.sifeds.de/"
| xmlns:tns="http://process.bpel.sifeds.de">
|
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
| location="SifedsBpelProcess.wsdl"
| namespace="http://process.bpel.sifeds.de" />
|
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
| location="SifedsBpelProcessArtifacts.wsdl"
| namespace="http://process.bpel.sifeds.deArtifacts" />
|
| <bpws:partnerLinks>
| <bpws:partnerLink myRole="SifedsBpelProcessProvider"
| name="client" partnerLinkType="tns:SifedsBpelProcessPLT" />
| <bpws:partnerLink name="auth" partnerLinkType="ns:authPLT"
| partnerRole="authRole" />
| </bpws:partnerLinks>
|
| <bpws:variables>
| <bpws:variable messageType="tns:SifedsBpelProcessRequestMessage"
| name="input" />
| <bpws:variable
| messageType="tns:SifedsBpelProcessResponseMessage" name="output" />
| <bpws:variable messageType="ns0:Sifedsauth_validateUserResponse"
| name="authResponse" />
| <bpws:variable messageType="ns0:Sifedsauth_validateUser"
| name="authRequest" />
| </bpws:variables>
|
| <bpws:sequence name="main">
| <bpws:receive createInstance="yes" name="receiveInput"
| operation="runBpelProcess" partnerLink="client"
| portType="tns:SifedsBpelProcessPT" variable="input" />
| <bpws:assign name="assignInput" validate="no">
| <bpws:copy>
| <bpws:from><![CDATA[$input.request/tns:procInputUserName]]></bpws:from>
| <bpws:to><![CDATA[$authRequest.validateUser/arg0]]></bpws:to>
| </bpws:copy>
| <bpws:copy>
| <bpws:from><![CDATA[$input.request/tns:procInputPassword]]></bpws:from>
| <bpws:to><![CDATA[$authRequest.validateUser/arg1]]></bpws:to>
| </bpws:copy>
| </bpws:assign>
| <bpws:invoke inputVariable="authRequest" name="invokeAuth"
| operation="validateUser" outputVariable="authResponse"
| partnerLink="auth" portType="ns0:Sifedsauth" />
| <bpws:assign name="assignOutput" validate="no">
| <bpws:copy>
| <bpws:from><![CDATA[$authResponse.validateUserResponse/return/id]]></bpws:from>
| <bpws:to><![CDATA[$output.response/tns:result/tns:procOutputID]]></bpws:to>
| </bpws:copy>
| <bpws:copy>
| <bpws:from><![CDATA[$authResponse.validateUserResponse/return/roleList]]></bpws:from>
| <bpws:to><![CDATA[$output.response/tns:result/tns:procOutputRoleList]]></bpws:to>
| </bpws:copy>
| <bpws:copy>
| <bpws:from><![CDATA[$authResponse.validateUserResponse/return/userName]]></bpws:from>
| <bpws:to><![CDATA[$output.response/tns:result/tns:procOutputUserName]]></bpws:to>
| </bpws:copy>
| </bpws:assign>
| <bpws:reply name="replyOutput" operation="runBpelProcess"
| partnerLink="client" portType="tns:SifedsBpelProcessPT"
| variable="output" />
| </bpws:sequence>
| </bpws:process>
|
my Artefact-wsdl:
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
| <definitions xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
| xmlns:tns="http://process.bpel.sifeds.deArtifacts"
| xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
| xmlns:wsdl="http://authentification.sifeds.de/"
| name="SifedsBpelProcessArtifacts"
| targetNamespace="http://process.bpel.sifeds.deArtifacts"
| xmlns="http://schemas.xmlsoap.org/wsdl/">
|
| <import
| location="http://testserver:8080/SifedsApplication-SifedsAuthentificationBean/Sifed..."
| namespace="http://authentification.sifeds.de/" />
|
| <plnk:partnerLinkType name="authPLT">
| <plnk:role name="authRole" portType="wsdl:Sifedsauth" />
| </plnk:partnerLinkType>
| </definitions>
|
and finally my process-wsdl:
| <?xml version="1.0"?>
| <definitions name="SifedsBpelProcess"
| targetNamespace="http://process.bpel.sifeds.de"
| xmlns:tns="http://process.bpel.sifeds.de"
| xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
| xmlns="http://schemas.xmlsoap.org/wsdl/">
|
| <types>
| <schema attributeFormDefault="unqualified"
| elementFormDefault="qualified"
| targetNamespace="http://process.bpel.sifeds.de"
| xmlns="http://www.w3.org/2001/XMLSchema">
|
| <element name="SifedsBpelProcessRequest"
| type="tns:SifedsBpelProcessRequest">
| </element>
|
| <element name="SifedsBpelProcessResponse">
| <complexType>
| <sequence>
| <element name="result"
| type="tns:SifedsProcessResponse" />
| </sequence>
| </complexType>
| </element>
|
| <complexType name="SifedsBpelProcessRequest">
| <sequence>
| <element name="procInputUserName" type="string"
| minOccurs="0" maxOccurs="1">
| </element>
| <element name="procInputPassword" type="string"
| minOccurs="0" maxOccurs="1">
| </element>
| </sequence>
| </complexType>
|
| <complexType name="SifedsProcessResponse">
| <sequence>
| <element name="procOutputID" type="string"
| minOccurs="0" maxOccurs="1">
| </element>
| <element name="procOutputRoleList" type="string"
| minOccurs="0" maxOccurs="unbounded">
| </element>
| <element name="procOutputUserName" type="string"
| minOccurs="0" maxOccurs="1">
| </element>
| </sequence>
| </complexType>
| </schema>
| </types>
|
| <message name="SifedsBpelProcessRequestMessage">
| <part name="request" element="tns:SifedsBpelProcessRequest" />
| </message>
| <message name="SifedsBpelProcessResponseMessage">
| <part name="response" element="tns:SifedsBpelProcessResponse" />
| </message>
|
| <portType name="SifedsBpelProcessPT">
| <operation name="runBpelProcess">
| <input message="tns:SifedsBpelProcessRequestMessage" />
| <output message="tns:SifedsBpelProcessResponseMessage" />
| </operation>
| </portType>
|
| <plnk:partnerLinkType name="SifedsBpelProcessPLT">
| <plnk:role name="SifedsBpelProcessProvider"
| portType="tns:SifedsBpelProcessPT" />
| </plnk:partnerLinkType>
|
| </definitions>
|
as i already said, i'm completely new to bpel and maybe it's a very simple or stupid failure, which i make here.
here is the log:
| 16:25:19,868 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.def.CompositeActivity - this operation breaks ==
| 16:25:19,899 ERROR [GraphElement] action threw exception: no port implements the required port type: portType={http://authentification.sifeds.de/}Sifedsauth
| org.jbpm.bpel.BpelException: no port implements the required port type: portType={http://authentification.sifeds.de/}Sifedsauth
| at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:97)
| at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:52)
| at org.jbpm.bpel.integration.jms.IntegrationControl.createCaller(IntegrationControl.java:261)
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:162)
| at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:75)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_114.execute(Action_$$_javassist_114.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
| at org.jbpm.graph.def.Node.execute(Node.java:335)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:123)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:390)
| at org.jbpm.bpel.graph.def.Activity.proceed(Activity.java:241)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:229)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:123)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:390)
| at org.jbpm.bpel.graph.def.Activity.proceed(Activity.java:241)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:229)
| at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_80.messageReceived(Receive_$$_javassist_80.java)
| at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:98)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_40.deliverMessage(ReceiveAction_$$_javassist_40.java)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:219)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:165)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:697)
| at java.lang.Thread.run(Unknown Source)
| 16:25:19,899 ERROR [StartListener] request delivery failed due to non-recoverable exception, giving up
| org.jbpm.bpel.BpelException: no port implements the required port type: portType={http://authentification.sifeds.de/}Sifedsauth
| at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:97)
| at org.jbpm.bpel.endpointref.SoapEndpointReference.selectPort(SoapEndpointReference.java:52)
| at org.jbpm.bpel.integration.jms.IntegrationControl.createCaller(IntegrationControl.java:261)
| at org.jbpm.bpel.integration.jms.JmsIntegrationService.invoke(JmsIntegrationService.java:162)
| at org.jbpm.bpel.integration.def.InvokeAction.execute(InvokeAction.java:75)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Action_$$_javassist_114.execute(Action_$$_javassist_114.java)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
| at org.jbpm.graph.def.Node.execute(Node.java:335)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:123)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:390)
| at org.jbpm.bpel.graph.def.Activity.proceed(Activity.java:241)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:229)
| at org.jbpm.bpel.graph.basic.Assign.execute(Assign.java:47)
| at org.jbpm.bpel.graph.def.Activity.enter(Activity.java:123)
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
| at org.jbpm.graph.def.Node.leave(Node.java:390)
| at org.jbpm.bpel.graph.def.Activity.proceed(Activity.java:241)
| at org.jbpm.bpel.graph.def.Activity.leave(Activity.java:229)
| at org.jbpm.bpel.graph.basic.Receive.messageReceived(Receive.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.graph.basic.Receive_$$_javassist_80.messageReceived(Receive_$$_javassist_80.java)
| at org.jbpm.bpel.integration.def.ReceiveAction.deliverMessage(ReceiveAction.java:98)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.bpel.integration.def.ReceiveAction_$$_javassist_40.deliverMessage(ReceiveAction_$$_javassist_40.java)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListener.java:219)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.java:165)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:697)
| at java.lang.Thread.run(Unknown Source)
|
thank you very much!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185460#4185460
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185460
17 years, 6 months
Certifcate based authentication and ldap
by Bill Smith
I have a working application on Jboss 4.2.1 using the ClientLoginModule and
the LdapExtLoginModule.
I am trying to replace the ClientLoginModule with the BaseCertLoginModule.
My authentication seems to pass the ClientLoginModule and the
LdapExtLoginModule. However, the problem I am having is that the
LdapExtLoginModule does not appear to be adding any roles.
In fact when examining the source code for the LsapExtLoginModule it appears
that validatePassword method never gets called. This method seems to
retrieve the roles. This is happening because I have password stacking on
and the login method returns early.
Has anyone done this type of thing before? I need Authentication to happen
with the cert and Authorization to happen with the LDAP.
Thanks
Bill.
17 years, 6 months