InitialContext();
Echo echo = (Echo)ctx.lookup(java:comp/env/my/test/Echo); *
there is:
*javax.naming.NotContextException: my/test/Echo
*Who can help me?*
*
Geronimo version 2.2
--
Best Regards,
Rodger.
/impl.jar
And then add a dependency in you deployment plan,like
dependencies
dependency
groupIdcom.group/groupId
artifactIdimpl/artifactId
typejar/type
/dependency
/dependencies
--
Best Regards,
Rodger.
The specified dependency is used for classloading when the war is deployed
on geronimo.
I think red circle X is because the compiler can't find the right classes.
Add the very jar to the build path.
--
Best Regards,
Rodger.
That problem exists not only when deploying axis2 webapp.
It seems any packages containing third party jars in WEB-INF/lib can not be
removed because of jars in use.
Is there a firewall on server host? Maybe port is not permitted.
Why not try netstat -a on server host?
--
Best Regards,
Rodger.
will become a parent classloader of the current classloader.
If the dependency is a jar, then the jar's path will become one URL added to
the current classloader.
I'm still learning Geronimo. If I make a mistake, pls don't mind.
--
Best Regards,
Rodger.
And
geronimo_home/repository/org/apache/openejb/openejb-client/3.0.1/openejb-client-3.0.1.jar
is necessary.
2009/6/18 Rodger eternalj...@gmail.com
http://cwiki.apache.org/GMOxDEV/client-jndi-names.html will use a
RemoteInitialContextFactory.
Like:
Properties p = new Properties
org.apache.geronimo.openejb.OpenejbRemoteLoginModule.
I get the reference from
http://cwiki.apache.org/GMOxDOC22/configuring-javaee-app-client-security.html
--
Best Regards,
Rodger.
and also include the
geronimo version in the dependency?
Also, what is the geronimo version?
thanks
david jencks
On Jun 9, 2009, at 6:16 AM, Rodger wrote:
My realm deploy plan named security_realm.xml is as follow:
=
module
Then it will find OpenEjbremoteloginmodule class.
Rodger-10 wrote:
My geronimo version is 2.1.4
And in repository,there is no client-security.
Thanks.
2009/6/9, David Jencks david_jen...@yahoo.com:
I don't see anything obviously wrong.
It _really_ shouldn't make a difference but could you try using
Yes,that's the exception's reason.
--
Best Regards,
Rodger.
Do you mean
bin/geronimo.bat run -Dopenejb.jndiname.format={ejbName}/{interfaceClass}
?
I tried it.But the default format--{ejbName}{interfaceType.annotationName}
still works,the format doesn't change to {ejbName}/{interfaceClass}.
That is
*initialContext.lookup(CalculatorRemote);* works
but *
Yes.Great.It's ok.
Thank you very much for your patient help!
Rodger.
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:2
38)
... 5 more
==
Who can give me some suggestions? Thanks a lot.
Rodger
}
openejb.jndiname.format = {deploymentId}{interfaceClass}
/properties
/openejb-jar
But how to set it in Geronimo?
Rodger
Thanks.
16 matches
Mail list logo