[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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 EJB the problem is this i test it on 2 pc's result is the same am i wrong somewhere ? How can i change this port ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956701#3956701 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956701 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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 instances are created and etc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956703#3956703 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956703 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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 i have installed JBoss AGAIN 4.0.4- PATCH 1. now my web consoile dont work but when i deploy the same EJB and run the SAME client i get : javax.naming.NameNotFoundException: beans.SimpleSession not bound witch is step forward but i dont know why the EJB is not delpoyed how can i check what EJBs are deployed and what not ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956729#3956729 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956729 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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); ctx.addToEnvironment(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); ctx.addToEnvironment(Context.PROVIDER_URL, jnp://localhost:1099); SimpleSession simpleSession = (SimpleSession)ctx.lookup(SimpleSession.class.getName()); System.out.println(simpleSession.sayHello(EJB3)); } catch (NamingException e) { e.printStackTrace(); } stack : javax.naming.NameNotFoundException: beans.SimpleSession 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:296) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja when i try java:comp/env/beans/SimpleSession for name not SimpleSession.class.getName() i get javax.naming.NameNotFoundException: comp 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956732#3956732 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956732 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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=bbop=viewtopicp=3956734#3956734 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956734 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
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.ear 23:28:12,296 INFO [EARDeployer] Undeployed J2EE application: file:/G:/jboss-4.0 .4.GA/server/default/deploy/SimpleSessionBean.ear 23:28:12,296 INFO [EARDeployer] Init J2EE application: file:/G:/jboss-4.0.4.GA/ server/default/deploy/SimpleSessionBean.ear 23:28:12,375 INFO [Ejb3Deployment] EJB3 deployment time took: 16 23:28:12,390 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Simpl eSessionBean.ear,jar=SimpleSessionBean.jar,name=SimpleSession,service=EJB3 with dependencies: 23:28:12,406 INFO [EJBContainer] STARTED EJB: beans.SimpleSessionBean ejbName: SimpleSession 23:28:12,421 INFO [EJB3Deployer] Deployed: file:/G:/jboss-4.0.4.GA/server/defau lt/tmp/deploy/tmp25139SimpleSessionBean.ear-contents/SimpleSessionBean.jar 23:28:12,421 INFO [EARDeployer] Started J2EE application: file:/G:/jboss-4.0.4. GA/server/default/deploy/SimpleSessionBean.ear lol SOMETHINK STRANGE in JMX console i see SimpleSessionBean but in j2ee apps : jboss.j2ee ear=SimpleSessionBean.ear,jar=SimpleSessionBean.jar,name=SimpleSession,service=EJB3 module=SimpleSessionBean.jar,service=EJB3 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956754#3956754 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956754 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
yep and the problem comes from application.xml.. witch JDeveloper is generate ?xml version = '1.0' encoding = 'windows-1251'? application xmlns:xsi=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; display-nameSimpleSessionBean/display-name SimpleSessionBean.jar what must be contained in the ear fail with jar fail ? for EJB 3.0 ear. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956761#3956761 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956761 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi
yes and the problem comes from application.xml fail it contains : ?xml version = '1.0' encoding = 'windows-1251'? application xmlns:xsi=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; display-nameSimpleSessionBean/display-name SimpleSessionBean.jar what i must put in the ear file for EJB 3.0 EAR. ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956764#3956764 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956764 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Remote Client to EJB 3.0 fail .. :( javax.naming.Communicati
Hello i have want to try EJB 3.0 but i have problems. the problem is this i have EJB 3.0 like this : package beans; import javax.ejb.Stateless; @Stateless(name=SimpleSession) public class SimpleSessionBean implements SimpleSession { public SimpleSessionBean() { } public String sayHello(String name) { return Hello +name; } } package beans; import javax.ejb.Remote; @Remote public interface SimpleSession { public String sayHello(String name) ; } and i make test client for it . package client; import beans.SimpleSession; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; public class SimpleSessionClient { public static void main(String[] args) { InitialContext ctx; try { ctx = new InitialContext(); ctx.addToEnvironment(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); ctx.addToEnvironment(java.naming.factory.url.pkgs, org.jboss.naming:org.jnp.interfaces); ctx.addToEnvironment(Context.PROVIDER_URL,jnp://localhost:1099); SimpleSession simpleSession = (SimpleSession) ctx.lookup(SimpleSession.class.getName()); System.out.println(simpleSession.sayHello(EJB3)); } catch (NamingException e) { e.printStackTrace(); } } } but when i delpoy the EJB and start the client i get : cannot find : org.jboss.naming:org.jnp.interfaces Nothink UNNORAML i add to the CLASSPATH everythink in jbossServer/client/*.jars when i start now i get : log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext). log4j:WARN Please initialize the log4j system properly. javax.naming.CommunicationException: Could not obtain connection to any of these urls: jnp://localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(InitialContext.java:351) at client.SimpleSessionClient.main(SimpleSessionClient.java:19) Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) ... 4 more Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243) ... 5 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.(Socket.java:365) at java.net.Socket.(Socket.java:265) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84) at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239) ... 5 more Process exited with exit code 0. i try with just localhost and jnp://localhost but then the problem is the same. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3956387#3956387 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956387 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
[JBoss-user] [Management, JMX/JBoss] - How to register simple MBean to JBoss AS
Hello im new JBoss user i must migrate from Bea WebLogic 8.1 to JBoss but i have problem with MBeans. i have 1-2 simple MBeans and i want to register them to JBoss AS . how can i do that ? under Bea the things was like this i must implement class ApplicationLifecycleListener then i must predefine method called postStart(ApplicationLifecycleEvent evt) and in this metod i must register my mBeans this metod is executed when my domain starts . how can i do this on Jboss ? i found some parts of an XML tags like mbean but i dont know where to put them and how help me please thanks for listening me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953910#3953910 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953910 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to register simple MBean to JBoss AS
a :) 10x a lot :)) thanksss ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3953946#3953946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953946 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user