[JBoss Web Services Users] - PKIX path building failed: sun.security.provider.certpath.Su
by pvenkatesh
Hi All
I need your help in enabling security for my webservice
I have tried to enable SSL and encryption for my service, but i failed in both.
Here i tried to enable SSL security for my service, please find below the steps i have followed
1.I have created keystore and trust store using following commands
keytool -genkey -alias serverkeys -keyalg RSA -keystore server.keystore -storepass 123456 -keypass 123456 -dname "CN=localhost, OU=MYOU, O=MYORG, L=MYCITY, ST=MYSTATE, C=MY"
| keytool -export -alias serverkeys -keystore server.keystore -storepass 123456 -file server.cer
| keytool -genkey -alias clientkeys -keyalg RSA -keystore client.keystore -storepass 123456 -keypass 123456 -dname "CN=localhost, OU=MYOU, O=MYORG, L=MYCITY, S=MYSTATE, C=MY"
| keytool -export -alias clientkeys -keystore client.keystore -storepass 123456 -file client.cer
| keytool -import -v -keystore client.truststore -storepass 123456 -file server.cer
| keytool -import -v -keystore server.truststore -storepass 123456 -file client.cer
|
2.I have placed my server.keystore, server.truststore at servers home directory
3.I have updated my server.xml as follows
| <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
| maxThreads="150" scheme="https" secure="true"
| clientAuth="false" sslProtocol="TLS"
| keystoreFile="${jboss.server.home.dir}/conf/server.keystore" keystorePass="password"
| truststoreFile="${jboss.server.home.dir}/conf/server.truststore" truststorePass="password"/>
|
4.My web.xml is as follows
anonymous wrote :
|
| <servlet-name>Hello</servlet-name>
| <servlet-class>org.jbia.ws.Hello</servlet-class>
|
| <servlet-mapping>
| <servlet-name>Hello</servlet-name>
| <url-pattern>/hello</url-pattern>
| </servlet-mapping>
|
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>All resources</web-resource-name>
| <url-pattern>/*</url-pattern>
| </web-resource-collection>
| <user-data-constraint>
| <transport-guarantee>CONFIDENTIAL</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
|
My service class is as follows
anonymous wrote :
| package org.jbia.ws;
| import javax.jws.*;
| import javax.jws.soap.SOAPBinding;
| @SOAPBinding(style=SOAPBinding.Style.RPC)
| @WebService
| public class Hello {
| @WebMethod
| public String sayHello(String name){
| return "Hello " + name;
| }
| }
|
I have deployed my webservice as .war file in my server then I got the wsdl(generated), using that wsdl I generated my Stub.
My Client is as follows
anonymous wrote :
| package org.jbia.ws;
| public class Client
| {
| public static void main(String args[]) {
| if (args.length != 1) {
| System.err.println("usage: HelloClient ");
| System.exit(1);
| }
| System
| .setProperty("org.jboss.wsse.keyStore",
| "D:\\EclipseWorkspace\\Latest\\WebService\\META-INF\\client.keystore");
| System.setProperty("org.jboss.wsse.keyStorePassword", "password");
| System
| .setProperty("org.jboss.wsse.trustStore",
| "D:\\EclipseWorkspace\\Latest\\WebService\\META-INF\\client.truststore");
| System.setProperty("org.jboss.wsse.trustStorePassword", "password");
| try {
|
| HelloProxy proxy = new HelloProxy();
| proxy.setEndpoint("https://127.0.0.1:8443/JBossWS/hello?wsdl");
| proxy.sayHello("Venkat");
| System.out.println("Result = ");
| } catch (Exception ex) {
| ex.printStackTrace();
| System.out.println("Exception occurs in web services : " + ex);
| }
|
| }
| }
|
Here I am not at all using my certificates i have generated(I am not srue weather this is the issue or not). Please someone correct me if i am wrong.
When i try to acess my service i am getting the following exception
anonymous wrote :
| AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
| faultSubcode:
| faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1520)
| at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:182)
| at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
| at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:511)
| at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:449)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1029)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1056)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1040)
| at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
| at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
| at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
| at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
| at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
| at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
| at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
| at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
| at org.apache.axis.client.Call.invoke(Call.java:2767)
| at org.apache.axis.client.Call.invoke(Call.java:2443)
| at org.apache.axis.client.Call.invoke(Call.java:2366)
| at org.apache.axis.client.Call.invoke(Call.java:1812)
| at org.jbia.ws.HelloBindingStub.sayHello(HelloBindingStub.java:106)
| at org.jbia.ws.HelloProxy.sayHello(HelloProxy.java:50)
| at org.jbia.ws.Client.main(Client.java:24)
| Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)
| at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)
| at sun.security.validator.Validator.validate(Validator.java:218)
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954)
| ... 23 more
| Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
| at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
| at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)
| ... 29 more
|
| {http://xml.apache.org/axis/}hostname:pvenkatesh
|
| javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
| at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
| at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
| at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118), SEND TLSv1 ALERT: fatal, description = certificate_unknown
| main, WRITE: TLSv1 Alert, length = 2
| main, called closeSocket()
| main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
|
| at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
| at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
| at org.apache.axis.client.Call.invoke(Call.java:2767)
| at org.apache.axis.client.Call.invoke(Call.java:2443)
| at org.apache.axis.client.Call.invoke(Call.java:2366)
| at org.apache.axis.client.Call.invoke(Call.java:1812)
| at org.jbia.ws.HelloBindingStub.sayHello(HelloBindingStub.java:106)
| at org.jbia.ws.HelloProxy.sayHello(HelloProxy.java:50)
| at org.jbia.ws.Client.main(Client.java:24)
| Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1520)
| at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:182)
| at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
| at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:511)
| at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:449)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1029)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1056)
| at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1040)
| at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
| at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
| at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
| at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
| ... 12 more
| Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)
| at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)
| at sun.security.validator.Validator.validate(Validator.java:218)
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)Exception occurs in web services : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| HI2
|
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
| at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
| at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954)
| ... 23 more
| Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
| at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
| at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)
| ... 29 more
|
|
your inputs are appriciated
Thanks
With Regards
Venkatesh
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268280#4268280
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268280
15 years, 1 month
[Security] - Problem combining two loginmodules for SSO with Active Direc
by Johan2001
For SSO in Windows Server 2008 we would like to use Kerberos so the user does not have to type in his/her username/password again for our application. Further we need the users roles/groups from Active Directory to restrict access to our application.
The solution I tried was to combine Krb5LoginModule with LdapExtLoginModule, but they do not work together in my case. If I use the Krb5LoginModule I can use SSO, if I use the LdapExtLoginModule I can retrieve the roles after entering my username/password again. But combining them for SSO and roles does not work.
If my research is correct than the problem is that the Krb5LoginModule returns a user of the form "username@domain" while the LdapExtLoginModule expects just "username". But I could not find a solution for that. Is there a solution for this problem, or is there perhaps another LoginModule that could be used?
The code we are using is the following:
| <application-policy name="kerberos">
| <authentication>
|
| <login-module code="com.sun.security.auth.module.Krb5LoginModule" flag="required" >
| <module-option name="debug">true</module-option>
| <module-option name="storeKey">true</module-option>
| <module-option name="storePass">true</module-option>
| </login-module>
|
|
| <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
| <module-option name="debug">true</module-option>
| <module-option name="java.naming.provider.url">ldap://$ip$:389</module-option>
| <module-option name="bindDN">cn=$Username$, cn=Users, dc=$domain$, dc=$domainextension$</module-option>
| <module-option name="bindCredential">$password$</module-option>
| <module-option name="baseCtxDN">cn=Users,dc=$domain$,dc=$domainextension$</module-option>
| <module-option name="baseFilter">(sAMAccountName={0})</module-option>
| <module-option name="rolesCtxDN">cn=Users,dc=$domain$,dc=$domainextension$</module-option>
| <module-option name="roleFilter">(sAMAccountName={0})</module-option>
| <module-option name="roleAttributeID">memberOf</module-option>
| <module-option name="roleAttributeIsDN">true</module-option>
| <module-option name="roleNameAttributeID">cn</module-option>
| <module-option name="searchScope">ONELEVEL_SCOPE</module-option>
| <module-option name="allowEmptyPasswords">false</module-option>
| </login-module>
|
| </authentication>
| </application-policy>
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268266#4268266
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268266
15 years, 1 month
[Installation, Configuration & Deployment] - Error in Deployement of Ear File
by varshneyankit
Hello,
When I was trying to deploy my application(.ear)
on JBOSS-5.0.1.GA-jdk6 its not able to deploy that application and throwing some exception.
The exception is given below....
|
| 13:12:47,906 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/ state=ClassLoader mode=Manual requiredState=PostClassLoader
| org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/JNRLDC-ejb.jar/
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
| 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:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
|
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| 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:698)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| 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:619)
| Caused by: java.lang.NullPointerException
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:247)
| at org.jboss.metadata.process.processor.ejb.jboss.SetDefaultLocalBusinessInterfaceProcessor.process(SetDefaultLocalBusinessInterfaceProcessor.java:114)
| at org.jboss.metadata.process.chain.ejb.jboss.JBossMetaDataProcessorChain.process(JBossMetaDataProcessorChain.java:115)
| at org.jboss.ejb3.deployers.Ejb3MetadataProcessingDeployer.deploy(Ejb3MetadataProcessingDeployer.java:115)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| ... 24 more
| 13:12:48,328 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| DEPLOYMENTS IN ERROR:
| Deployment "vfszip:/E:/nrldc/jboss-5.0.1.GA-jdk6/jboss-5.0.1.GA/server/default/deploy/JNRLDC.ear/" is in error due to the following reason(s): java.lang.NullPointerException
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| 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:619)
When I searched on net Its showing that there is a problem in jboss.xml.
When I removed the jboss.xml from my ear file Its deploying sucessfully but some error in deployment its showing....
DEPLOYMENTS MISSING DEPENDENCIES:
| Deployment "jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AgreementFacade,service=EJB3" is missing the following dependencies:
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AgreementFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:JNRLDC/CorporatesFacade/local-cdac.nroa.sessions.CorporatesFacadeLocal' **")
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AgreementFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:JNRLDC/UserDetailsFacade/local-cdac.nroa.sessions.UserDetailsFacadeLocal' **")
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AgreementFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=JNRLDC.ear/JNRLDC-ejb.jar#JNRLDC-ejbPU' **")
| Deployment "jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaFacade,service=EJB3" is missing the following dependencies:
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=JNRLDC.ear/JNRLDC-ejb.jar#JNRLDC-ejbPU' **")
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:JNRLDC/ElementsFacade/local-cdac.nroa.sessions.ElementsFacadeLocal' **")
| Deployment "jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaScheduleFacade,service=EJB3" is missing the following dependencies:
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaScheduleFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:JNRLDC/AllocationLtoaFacade/local-cdac.nroa.sessions.AllocationLtoaFacadeLocal' **")
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationLtoaScheduleFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=JNRLDC.ear/JNRLDC-ejb.jar#JNRLDC-ejbPU' **")
| Deployment "jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationStoaFacade,service=EJB3" is missing the following dependencies:
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationStoaFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:JNRLDC/ElementsFacade/local-cdac.nroa.sessions.ElementsFacadeLocal' **")
| Dependency "<UNKNOWN jboss.j2ee:ear=JNRLDC.ear,jar=JNRLDC-ejb.jar,name=AllocationStoaFacade,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=JNRLDC.ear/JNRLDC-ejb.jar#JNRLDC-ejbPU' **")..........
| ......
|
But with the same jboss.xml
one application is already running but with older code.
How to handle these exception.Please help me as soon as possible.
My jboss.xml is posteed below
<?xml version="1.0" encoding="UTF-8"?>
| <jboss xmlns:xs="http://www.jboss.org/j2ee/schema"
| xs:schemaLocation="http://www.jboss.org/j2ee/schema jboss_5_0.xsd"
| version="5.0">
| <enterprise-beans>
| <session>
| <ejb-name>ApplicationFacade</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>cdac.nroa.sessions.ReroutesFacade</injection-target-class>
| <injection-target-name>reroutesFacade</injection-target-name>
| </injection-target>
| <injection-target>
| <injection-target-class>cdac.nroa.sessions.UserProcTrackFacade</injection-target-class>
| <injection-target-name>userProcTrackFacade</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
|
| <session>
| <ejb-name>ConsentDetailsFacade</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>cdac.nroa.sessions.ConsentsFacade</injection-target-class>
| <injection-target-name>consentsFacade</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
|
| <session>
| <ejb-name>ConsentsFacade</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>cdac.nroa.common.ApplicationSubmissionBean</injection-target-class>
| <injection-target-name>applicationSubmissionBean</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
|
| <session>
| <ejb-name>PaymentApplnFacade</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>cdac.nroa.sessions.PaymentFacade</injection-target-class>
| <injection-target-name>paymentFacade</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
|
| <session>
| <ejb-name>ScheduleConFacade</ejb-name>
| <ignore-dependency>
| <injection-target>
| <injection-target-class>cdac.nroa.sessions.ConsentDetailsFacade</injection-target-class>
| <injection-target-name>consentDetailsFacade</injection-target-name>
| </injection-target>
| </ignore-dependency>
| </session>
| </enterprise-beans>
| </jboss>
I am using Netbeans 6.5.1.so Is there any problem with my jboss.xml?
As ignore dependency tag is needed for my application because there are circular dependencies in my session beans.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268255#4268255
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268255
15 years, 1 month