[JNDI and Naming] - javax.naming.NameNotFoundException with Migration from JBoss-5.1.0 to JBoss-7.1.1
by Kevin Yuan
Kevin Yuan [https://community.jboss.org/people/kyuan] created the document:
"javax.naming.NameNotFoundException with Migration from JBoss-5.1.0 to JBoss-7.1.1"
To view the document, visit: https://community.jboss.org/docs/DOC-18532
--------------------------------------------------------------
I am also trying to connect to a stateless session bean, and it works partially – I can deploy my application ear successfully, also can contact the server, but no matter how I try to name the EJB, I get a NameNotFoundException, just like:
javax.naming.NameNotFoundException: eclipselink-advanced-model/TestRunner!org.eclipse.persistence.testing.framework.server.TestRunner -- service jboss.naming.context.java.jboss.exported.eclipselink-advanced-model."TestRunner!org.eclipse.persistence.testing.framework.server.TestRunner"
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127)
at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73)
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:662)
I have the following environment:
JBoss-as-7.1.1.Final
My EAR: eclipselink-advanced-model.ear
My EJB archive: eclipselink-advanced-model_ejb.jar
My stateless session bean: TestRunnerBean
Actually my application worked fine on JBoss-5.1.0, I have made the following changes with jndi.properties and lookup, my jndi.properties just like the following:
java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
java.naming.provider.url=remote://localhost:4447
java.naming.security.principal=usera
java.naming.security.credentials=passworda
java.naming.security.authentication=none
And the lookup just like: ejb:eclipselink-advanced-model/eclipselink-advanced-model_ejb/TestRunner!org.eclipse.persistence.testing.framework.server.TestRunner
(for JBoss-5.1.0, the lookup is: TestRunner/remote-org.eclipse.persistence.testing.framework.server.TestRunner)
I have referred to the post: https://community.jboss.org/message/722635#722635 https://community.jboss.org/message/722635, and I also tried to add jboss-ejb-client.properties in the client classpath, still didn't help. BTW, my jboss-ejb-client.properties just like the following:
remote.connections=default
endpoint.name=client-endpoint
remote.connection.default.port=4447
remote.connection.default.host=127.0.0.1
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.username=usera
remote.connection.default.password=passworda
Does anyone can give me a hint to things I can try out? Any suggestion will be appreciated.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18532]
Create a new document in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 10 months
[jBPM] - Unable to load session snapshot in jbpm 5.3
by Bira Neto
Bira Neto [https://community.jboss.org/people/biraneto] created the discussion
"Unable to load session snapshot in jbpm 5.3"
To view the discussion, visit: https://community.jboss.org/message/739415#739415
--------------------------------------------------------------
I've searched the posts and found a few similar problems. I decided to post this anyway for two reasons. 1. The stack trace of the cause wasn't the same. 2. This wasn't happening on version 5.2
I am getting the error
java.lang.RuntimeException: Unable to load session snapshot
with main cause
Caused by: java.lang.NullPointerException
at org.drools.common.Scheduler$ActivationTimerInputMarshaller.deserialize(Scheduler.java:230)
at org.drools.marshalling.impl.ProtobufInputMarshaller.readTimer(ProtobufInputMarshaller.java:597)
at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:292)
at org.drools.marshalling.impl.ProtobufInputMarshaller.readSession(ProtobufInputMarshaller.java:161)
at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:117)
at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)
I'm currently using Postgres.
This happens after loading a knowledge base and executing just one workflow. After that the same session can't be loaded anymore.
Any ideas why this could be happening?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/739415#739415]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months
[IronJacamar] - ironjacamar maven validator 1.1.0.Alpha7 throws
by gonzalad
gonzalad [https://community.jboss.org/people/gonzalad] created the discussion
"ironjacamar maven validator 1.1.0.Alpha7 throws"
To view the discussion, visit: https://community.jboss.org/message/741219#741219
--------------------------------------------------------------
Hello,
I'm trying to validate my jca connector with Ironjacamar maven validator (as documented here : http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/validator.html... http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/validator.html...)
I get the following error when running mvn clean install on my pom.xml :
java.lang.IllegalStateException: Unable to find an annotation scanner implementa
tion
at org.jboss.jca.common.spi.annotations.repository.AnnotationScannerFact
ory.getAnnotationScanner(AnnotationScannerFactory.java:72)
at org.jboss.jca.validator.Validation.validate(Validation.java:148)
at org.jboss.jca.validator.maven.ValidatorMojo.execute(ValidatorMojo.jav
a:72)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
My pom.xml contains
<plugin>
<groupId>org.jboss.ironjacamar</groupId>
<artifactId>ironjacamar-validator-maven</artifactId>
<version>1.1.0.Alpha7</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDir>.</outputDir>
<rarFile>${project.build.directory}/${project.build.finalName}.rar</rarFile>
</configuration>
</plugin>
If i add a dependency to ironjacamar-common-impl-papaki, everything runs fine :
<plugin>
<groupId>org.jboss.ironjacamar</groupId>
<artifactId>ironjacamar-validator-maven</artifactId>
<version>1.1.0.Alpha7</version>
<dependencies>
<dependency>
<groupId>org.jboss.ironjacamar</groupId>
<artifactId>ironjacamar-common-impl-papaki</artifactId>
<version>1.1.0.Alpha7</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDir>.</outputDir>
<rarFile>${project.build.directory}/${project.build.finalName}.rar</rarFile>
</configuration>
</plugin>
Should I open an issue ?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741219#741219]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 10 months