The entry you found in the jmx-console was not for the EJB, but rather for the
mbean that was automatically created for the EJB. To look at the JNDI
namespace, in the jmx-console, click on the service=JNDIView entry under the
jboss namespace, then click on the Invoke button under the list() ope
yes and the problem comes from application.xml fail it contains :
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee";>
SimpleSessionBean
yep and the problem comes from application.xml..
witch JDeveloper is generate
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4"
xmlns="http://java.sun.com/xml/ns/j2ee";>
SimpleSe
jar tf ear fail
META-INF/application.xml
SimpleSessionBean.jar
jar tf jar fail
beans/SimpleSession.class
beans/SimpleSessionBean.class
When i deploy i see :
23:28:12,296 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
e:/G:/jboss-4.0.4.GA/server/default/deploy/SimpleSessionBean.
Deploying an ear file is fine, that is how I usually deploy my ejbs. What are
the contents of your ear file? Run "jar tf ear-file-name" and post the
results. If the ear file contains a jar file (or a war file), repeat the "jar
tf" for those files (you will have to unpack the ear first).
You
I delpoy EAR file with EJB is there a chance JBOSS to expect (need) JAR instead
of EAR ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956734#3956734
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956734
--
the code is the same :
public static void main(String[] args) {
InitialContext ctx;
try {
ctx = new InitialContext();
ctx.addToEnvironment("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
i have included all the jboss\client jars to my classpath
becouse if i dont include them at that line :
ctx.addToEnvironment("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");
it throws error cant find org.jboss.naming .. .etc.
btw
Looking at the original post again, I see that you have a standalone client app
from which you are attempting to look up the EJB. When you run that client app,
are you providing the necessary jar files in the classpath? I thought I had a
script file that ran an EJB3 client, but I cannot seem to
another strange problem
when i deploy EJB3 with ejb3 enabled ( i mean installed jbos from installer.jar
and check the EJB3 support ) . So.. when i open web-console i and go to ear of
the EJB and click on it nothink happened .. i cant see the EJB name like when
it is EJB 2.1 i cant see how match
Windows XP SP2.
No Firewall its off.
JBoss 4.0.4 and 4.0.3 result is the same
ejb3 enabled
when i install FULL (ALL) installation of JBOss 4.0.4 EJB 2.1 works fine EJB
3.0 dont deploy i think that it search for descriptors then and the error then
is no bound "EJbName" .
But with ejb3 enable and E
Did you, by any chance, change the JNDI port?
What operating system are you running on? Are you running a firewall and have
your configured it properly?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956606#3956606
Reply to the post :
http://www.jboss.com/
12 matches
Mail list logo