[EJB 3.0] - EJB lookup problem in EAServer 6.0
by srinivaslekkala
I'm migrating EAserver 4.1 to 6.0. EAserver 4.1 of Web
component and ejb component is successfully deployed in 6.0.
Web component is working fine but in ejb component is
throwing NamingException while lookup. if i verified
deployed package in "deploy" folder of EAserver 6.0
installation this is already existed. Please see below for
more information on exception.
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] -------------New GET Request--------------
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Time received= Wed Aug 29 18:38:44 IST 2007
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] General info:
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] RemoteHost= 10.100.106.112
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] RemoteAddr= 10.100.106.112
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] RemoteUser= null
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] RequestURL=
http://hdchctdann6311:8080/ent/Coordinator
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Request headers:Accept= image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Accept-Language= en-us
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Accept-Encoding= gzip, deflate
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] User-Agent= Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322)
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Host= hdchctdann6311:8080
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Connection= keep-alive
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Authorization= Basic
cnNodWdhbjphYWFhYWEzMg==
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] Login Credentials from Authorization Header:
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] coordID=rshugan
2007-08-29 18:38:44.327 INFO HttpListener0-2
[ConsoleOutput] coordPwd=aaaaaa32
2007-08-29 18:38:44.514 INFO HttpListener0-2 [JavaCompiler]
D:\Sybase6.0\Shared\jdk1.4.2_10\bin\javac.exe -target 1.4
-source 1.4 -d D:\Sybase6.0\EAServer6\genfiles\java\classes
-classpath
D:\Sybase6.0\EAServer6\bin\..\lib\eas-server-14.jar;D:\Sybase6.0\EAServer6\bin\..\lib;
D:\Sybase6.0\EAServer6\bin\..\ant\lib\ant.jar;D:\Sybase6.0\Shared\jdk1.4.2_10\lib\tools.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\sslplus_nio.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\sslplus.jar;D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\EccpressoFIPSJca.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\EccpressoFIPS.jar;
D:\j2sdk1.4\lib;D:\Sybase6.0\EAServer6\bin\..\genfiles\java\classes;
D:\Sybase6.0\EAServer6\bin\..\lib\ext\jconn3.jar;D:\Sybase6.0\EAServer6\bin\..\lib\ext\jTDS3.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\ext\pbejbclient100.jar;D:\Sybase6.0\EAServer6\bin\..\lib\ext\pbjdbc12100.jar;
D:\Sybase6.0\EAServer6\deploy\webapps\ent\WEB-INF\classes;D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\11\web.components.ent162660.jar;
D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\11\web.components.ent162671.jar;
D:\Sybase6.0\EAServer6\lib\eas-server-14.jar;D:\Sybase6.0\EAServer6\lib;
D:\Sybase6.0\EAServer6\ant\lib\ant.jar;D:\Sybase6.0\Shared\jdk1.4.2_10\lib\tools.jar;
D:\Sybase6.0\EAServer6\lib\fips\jdk14\sslplus_nio.jar;D:\Sybase6.0\EAServer6\lib\fips\jdk14\sslplus.jar;
D:\Sybase6.0\EAServer6\lib\fips\jdk14\EccpressoFIPSJca.jar;D:\Sybase6.0\EAServer6\lib\fips\jdk14\EccpressoFIPS.jar;
D:\j2sdk1.4\lib;D:\Sybase6.0\EAServer6\genfiles\java\classes;
D:\Sybase6.0\EAServer6\lib\ext\jconn3.jar;D:\Sybase6.0\EAServer6\lib\ext\jTDS3.jar;
D:\Sybase6.0\EAServer6\lib\ext\pbejbclient100.jar;D:\Sybase6.0\EAServer6\lib\ext\pbjdbc12100.jar;
D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\3\lib.default-ext162090.jar
-sourcepath D:\Sybase6.0\EAServer6\genfiles\java\src
D:\Sybase6.0\EAServer6\genfiles\java\src\com\sybase\djc\org\omg\CosNaming\iiop_stubs\NamingContext.java
2007-08-29 18:38:59.634 INFO HttpListener0-2 [JavaCompiler]
2007-08-29 18:38:59.697 INFO HttpListener0-2 [JavaCompiler]
D:\Sybase6.0\Shared\jdk1.4.2_10\bin\javac.exe -target 1.4
-source 1.4 -d D:\Sybase6.0\EAServer6\genfiles\java\classes
-classpath
D:\Sybase6.0\EAServer6\bin\..\lib\eas-server-14.jar;D:\Sybase6.0\EAServer6\bin\..\lib;
D:\Sybase6.0\EAServer6\bin\..\ant\lib\ant.jar;D:\Sybase6.0\Shared\jdk1.4.2_10\lib\tools.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\sslplus_nio.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\sslplus.jar;D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\EccpressoFIPSJca.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\fips\jdk14\EccpressoFIPS.jar;
D:\j2sdk1.4\lib;D:\Sybase6.0\EAServer6\bin\..\genfiles\java\classes;
D:\Sybase6.0\EAServer6\bin\..\lib\ext\jconn3.jar;D:\Sybase6.0\EAServer6\bin\..\lib\ext\jTDS3.jar;
D:\Sybase6.0\EAServer6\bin\..\lib\ext\pbejbclient100.jar;D:\Sybase6.0\EAServer6\bin\..\lib\ext\pbjdbc12100.jar;
D:\Sybase6.0\EAServer6\deploy\webapps\ent\WEB-INF\classes;D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\11\web.components.ent162660.jar;
D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\11\web.components.ent162671.jar;
D:\Sybase6.0\EAServer6\lib\eas-server-14.jar;D:\Sybase6.0\EAServer6\lib;
D:\Sybase6.0\EAServer6\ant\lib\ant.jar;D:\Sybase6.0\Shared\jdk1.4.2_10\lib\tools.jar;
D:\Sybase6.0\EAServer6\lib\fips\jdk14\sslplus_nio.jar;D:\Sybase6.0\EAServer6\lib\fips\jdk14\sslplus.jar;
D:\Sybase6.0\EAServer6\lib\fips\jdk14\EccpressoFIPSJca.jar;D:\Sybase6.0\EAServer6\lib\fips\jdk14\EccpressoFIPS.jar;
D:\j2sdk1.4\lib;D:\Sybase6.0\EAServer6\genfiles\java\classes;
D:\Sybase6.0\EAServer6\lib\ext\jconn3.jar;D:\Sybase6.0\EAServer6\lib\ext\jTDS3.jar;
D:\Sybase6.0\EAServer6\lib\ext\pbejbclient100.jar;D:\Sybase6.0\EAServer6\lib\ext\pbjdbc12100.jar;
D:\Sybase6.0\EAServer6\temp\HDCHCTDANN6311\3\lib.default-ext162090.jar
-sourcepath D:\Sybase6.0\EAServer6\genfiles\java\src
D:\Sybase6.0\EAServer6\genfiles\java\src\com\sybase\djc\rmi\iiop\iiop_stubs\NameService.java
2007-08-29 18:39:21.611 INFO HttpListener0-2 [JavaCompiler]
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] javax.naming.NamingException:
com.sybase.djc.SystemException
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.ThreadContext.loadClass(ThreadContext.java:157)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.CdrInputStream.read_Object(CdrInputStream.java:1180)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.CdrInputStream_DJC.read_Object(CdrInputStream_DJC.java:952)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.ObjectRefHelper.read(ObjectRefHelper.java:25)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.SimpleObjectInputStream.readObject(SimpleObjectInputStream.java:102)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.SimpleObjectInputStream_DJC.readObject(SimpleObjectInputStream_DJC.java:940)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.SimpleObjectInputStream.readObject(SimpleObjectInputStream.java:91)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.SimpleObjectInputStream_DJC.readObject(SimpleObjectInputStream_DJC.java:903)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.iiop_stubs.NameService.resolve(NameService.java:468)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.resolve(ClientNamingContext.java:673)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.lookup1(ClientNamingContext.java:294)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.lookup(ClientNamingContext.java:251)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.naming.InitialContext.lookup(InitialContext.java:347)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.xml.util.EJBUtils.getInquiryHome(EJBUtils.java:27)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.xml.CoordinatorInquiriesProcessor.(CoordinatorInquiriesProcessor.java:34)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.CoordinatorHttpRequestProcessor.(CoordinatorHttpRequestProcessor.java:34)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.DispatcherSM.getGetRequestProcessor(DispatcherSM.java:86)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.EntServlet.doGet(EntServlet.java:103)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet.service(EntServlet.java:28)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC.access$201(EntServlet_DJC.java:4)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC$3.invoke(EntServlet_DJC.java:310)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.transaction.TransactionManager.invokeNotSupported1(TransactionManager.java:654)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.transaction.TransactionManager.invokeBeanManaged(TransactionManager.java:589)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC.service(EntServlet_DJC.java:339)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet$WC.service(EntServlet$WC.java:24)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.WebApplicationHandler.dispatch(WebApplicationHandler.java:157)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.WebApplicationHandler.handle(WebApplicationHandler.java:115)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.HttpListener.handleConnection(HttpListener.java:107)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] Caused by: java.lang.ClassNotFoundException:
class loader: web.components.ent, class name:
com.ilx.mis.entIA.ejb.InquiryHome
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader.load(NamedClassLoader.java:616)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader_DJC.load(NamedClassLoader_DJC.java:916)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader.loadClass(NamedClassLoader.java:135)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader_DJC.loadClass(NamedClassLoader_DJC.java:1042)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader.loadClass(NamedClassLoader.java:111)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader_DJC.loadClass(NamedClassLoader_DJC.java:1000)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader.loadClass(NamedClassLoader.java:94)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.NamedClassLoader_DJC.loadClass(NamedClassLoader_DJC.java:958)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.util.ThreadContext.loadClass(ThreadContext.java:148)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] ... 46 more
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.resolve(ClientNamingContext.java:685)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.lookup1(ClientNamingContext.java:294)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.rmi.iiop.client.ClientNamingContext.lookup(ClientNamingContext.java:251)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.naming.InitialContext.lookup(InitialContext.java:347)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.xml.util.EJBUtils.getInquiryHome(EJBUtils.java:27)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.xml.CoordinatorInquiriesProcessor.(CoordinatorInquiriesProcessor.java:34)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.CoordinatorHttpRequestProcessor.(CoordinatorHttpRequestProcessor.java:34)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.DispatcherSM.getGetRequestProcessor(DispatcherSM.java:86)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.ilx.mis.entIA.web.EntServlet.doGet(EntServlet.java:103)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet.service(EntServlet.java:28)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC.access$201(EntServlet_DJC.java:4)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC$3.invoke(EntServlet_DJC.java:310)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.transaction.TransactionManager.invokeNotSupported1(TransactionManager.java:654)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.transaction.TransactionManager.invokeBeanManaged(TransactionManager.java:589)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet_DJC.service(EntServlet_DJC.java:339)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
web.components.ent.EntServlet$WC.service(EntServlet$WC.java:24)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.WebApplicationHandler.dispatch(WebApplicationHandler.java:157)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.WebApplicationHandler.handle(WebApplicationHandler.java:115)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
com.sybase.djc.server.jetty.HttpListener.handleConnection(HttpListener.java:107)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
2007-08-29 18:39:21.658 INFO HttpListener0-2
[ConsoleOutput] at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-08-29 18:39:21.673 INFO HttpListener0-2
[ConsoleOutput] Response Status= 503
2007-08-29 18:39:21.689 INFO HttpListener0-2
[SystemException] java.lang.NoClassDefFoundError was thrown
by method
web.components.ent.EntServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse)
2007-08-29 18:39:21.689 INFO HttpListener0-2
java.lang.NoClassDefFoundError:
org/apache/turbine/util/StringUtils
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.ilx.mis.entIA.web.EntServlet.doGet(EntServlet.java:136)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
web.components.ent.EntServlet.service(EntServlet.java:28)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
web.components.ent.EntServlet_DJC.access$201(EntServlet_DJC.java:4)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
web.components.ent.EntServlet_DJC$3.invoke(EntServlet_DJC.java:310)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.sybase.djc.transaction.TransactionManager.invokeNotSupported1(TransactionManager.java:654)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.sybase.djc.transaction.TransactionManager.invokeBeanManaged(TransactionManager.java:589)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
web.components.ent.EntServlet_DJC.service(EntServlet_DJC.java:339)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
web.components.ent.EntServlet$WC.service(EntServlet$WC.java:24)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.sybase.djc.server.jetty.WebApplicationHandler.dispatch(WebApplicationHandler.java:157)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.sybase.djc.server.jetty.WebApplicationHandler.handle(WebApplicationHandler.java:115)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
com.sybase.djc.server.jetty.HttpListener.handleConnection(HttpListener.java:107)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
2007-08-29 18:39:21.689 INFO HttpListener0-2 at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-08-29 18:39:21.689 WARN HttpListener0-2
[ServletHandler] Error for /ent/Coordinator
2007-08-29 18:39:21.689 WARN HttpListener0-2 Caused by:
java.lang.NoClassDefFoundError:
org/apache/turbine/util/StringUtils
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.ilx.mis.entIA.web.EntServlet.doGet(EntServlet.java:136)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
web.components.ent.EntServlet.service(EntServlet.java:28)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
web.components.ent.EntServlet_DJC.access$201(EntServlet_DJC.java:4)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
web.components.ent.EntServlet_DJC$3.invoke(EntServlet_DJC.java:310)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.sybase.djc.transaction.TransactionManager.invokeNotSupported1(TransactionManager.java:654)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.sybase.djc.transaction.TransactionManager.invokeBeanManaged(TransactionManager.java:589)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
web.components.ent.EntServlet_DJC.service(EntServlet_DJC.java:339)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
web.components.ent.EntServlet$WC.service(EntServlet$WC.java:24)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.sybase.djc.server.jetty.WebApplicationHandler.dispatch(WebApplicationHandler.java:157)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.sybase.djc.server.jetty.WebApplicationHandler.handle(WebApplicationHandler.java:115)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
com.sybase.djc.server.jetty.HttpListener.handleConnection(HttpListener.java:107)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
2007-08-29 18:39:21.689 WARN HttpListener0-2 | at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
2007-08-29 18:39:38.136 INFO HttpListener0-0
[TilesRequestProcessor] Tiles definition factory found for
request processor '/easmgmplugin'.
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: default
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: ejb.components.management
2007-08-29 18:44:10.886 INFO HttpListener0-2
[TransactionBatch:default] init: maximum batch size = 1,
maximum batch wait = 1 ms
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: lib.default-ext
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: application.console
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing:
ejb.components.console.managementejb
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: ejb.components.datawindow
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: ejb.components.entia
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing:
web.components.console.console
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.ent
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.entia_xsl
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.jspclient
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.sybasewst
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.wfs
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.wlb
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: web.components.wsh
2007-08-29 18:44:10.886 INFO HttpListener0-2
[NamedClassLoader] Refreshing: ejb.components.pbdebugger
2007-08-29 18:44:10.886 INFO HttpListener0-2
[ManagementImpl] Refresh OK for
com.sybase.djc.server.ApplicationServer - HDCHCTDANN6311.
2007-08-29 18:44:10.886 INFO HttpListener0-2
[ConsoleOutput] Refresh OK for
com.sybase.djc.server.ApplicationServer - HDCHCTDANN6311.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080429#4080429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080429
18 years, 7 months
[JBoss Seam] - Re: Trying to build seam-2.0.0.BETA1
by davidjoseph
For the spring example, I have this error:
[javac] Compiling 10 source files to C:\Downloads\jboss-seam\examples\spring
| \exploded-archives-jbosswar\jboss-seam-spring.jar
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\BookingService.java:97: cannot find symbol
| [javac] symbol : method createValueExpression(java.lang.String)
| [javac] location: class org.jboss.seam.core.Expressions
| [javac] UserService userService = (UserService)Expressions.insta
| nce().createValueExpression("#{userService}").getValue();
| [javac]
| ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:45: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] invokeAction("#{register.register}");
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:59: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] invokeAction("#{identity.login}");
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:68: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] assert invokeAction("#{hotelSearch.find}
| ") == null;
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:96: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] invokeAction("#{hotelBooking.bookHotel}"
| );
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:128: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] assert invokeAction("#{hotelBooking.setB
| ookingDetails}") == null;
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:160: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] invokeAction("#{hotelBooking.setBookingD
| etails}");
| [javac] ^
| [javac] C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\example\s
| pring\test\StartupTest.java:179: cannot find symbol
| [javac] symbol: method invokeAction(java.lang.String)
| [javac] invokeAction("#{hotelBooking.confirm}");
|
| [javac] ^
| [javac] Note: C:\Downloads\jboss-seam\examples\spring\src\org\jboss\seam\exa
| mple\spring\HibernateTestService.java uses unchecked or unsafe operations.
| [javac] Note: Recompile with -Xlint:unchecked for details.
| [javac] 8 errors
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080426#4080426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080426
18 years, 7 months
[JBoss Seam] - Re: Trying to build seam-2.0.0.BETA1
by davidjoseph
for example the main build file: i get this error:
initioc:
[echo] Build JBoss Seam ioc 2.0
compileioc:
[javac] Compiling 31 source files to C:\Downloads\jboss-seam\classes\iocclas
ses
[javac] C:\Downloads\jboss-seam\src\ioc\org\jboss\seam\ioc\spring\SeamTarget
Source.java:15: cannot find symbol
[javac] symbol : class ValueExpression
[javac] location: class org.jboss.seam.core.Expressions
[javac] import org.jboss.seam.core.Expressions.ValueExpression;
[javac] ^
[javac] C:\Downloads\jboss-seam\src\ioc\org\jboss\seam\ioc\spring\SeamTarget
Source.java:35: cannot find symbol
[javac] symbol : class ValueExpression
[javac] location: class org.jboss.seam.ioc.spring.SeamTargetSource
[javac] private ValueExpression valueExpression;
[javac] ^
[javac] C:\Downloads\jboss-seam\src\ioc\org\jboss\seam\ioc\spring\SpringTask
ExecutorDispatcher.java:17: cannot find symbol
[javac] symbol : class ValueExpression
[javac] location: class org.jboss.seam.core.Expressions
[javac] import org.jboss.seam.core.Expressions.ValueExpression;
[javac] ^
[javac] C:\Downloads\jboss-seam\src\ioc\org\jboss\seam\ioc\spring\SpringTask
ExecutorDispatcher.java:34: cannot find symbol
[javac] symbol : class ValueExpression
[javac] location: class org.jboss.seam.ioc.spring.SpringTaskExecutorDispatch
er<T,S>
[javac] private ValueExpression<Dispatcher<T, S>> scheduleDispatcher;
[javac] ^
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080422#4080422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080422
18 years, 7 months
[EJB/JBoss] - problem connecting to EJB3
by alexsbe
Hi ,
I am a newbie in EJB3, and I tried for days to deploy an EJB
I have jboss 4.0.5 installed on red hat. where I want to deploy my EJB.
The start logs of jboss for the deployement are ok
ex I have : default remote binding has jndiName of LoginEAR/LoginEJB3Bean/remote
SO i think that evrything is ok...
Here is the code for the client side :
| public static void main(String[] args) {
| try {
| Properties properties = new Properties();
| properties.put(Context.PROVIDER_URL, "adresse_IP:1099");
| properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| properties.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
|
|
| return new InitialContext(properties);
| Context context = getContext();
|
| String jndiName = "LoginEAR/LoginEJB3Bean/remote";
|
| LoginEJB3 loginEJB3 = (LoginEJB3)context.lookup(jndiName);
|
|
| } catch (NamingException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
|
Here is the error log I had :
| 2007-09-03 11:26:13 DEBUG [SecurityAssociation/:143] Using ThreadLocal: false
| 2007-09-03 11:26:13 DEBUG [Client/:514] invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [socket://127.0.0.1:3873/]
| 2007-09-03 11:26:13 DEBUG [SocketClientInvoker/:275] connect called for: org.jboss.remoting.transport.socket.SocketClientInvoker@b66cc
| Exception in thread "main" org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection.
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:267)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy0.login(Unknown Source)
|
I added this command on the launch jboss start
-Djava.rmi.server.hostname=adresseIPserver"
I have read that it can solve this problem
But now I have this error
Exception in thread "main" org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection.
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:267)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy0.login(Unknown Source)
|
I really don't know what I did wrong. this application work fine with the same server installed on windows.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080420#4080420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080420
18 years, 7 months
[EJB 3.0] - Relation many to many based on views
by Sadreg
There is two tables which are connected with help of view. View has only two ids of those tables. We have also two entities which are based on those tables.
To connect entities I use @ManyToMany and @JoinTable annotations. In @JoinTable annotation I tried to use view as join-table. Everything works, all entities are connected but when one entity (which is master) is removed, I am getting exception "ERROR:Can not delete from view" (even if there is no slave entity).
Piece of code:
@Entity
| ...
| public class JobGroup implements Serializable {
|
| private long id ;
| private String name;
| private Collection<Category> categories;
|
| public JobGroup() {
| }
|
| ...
|
| @ManyToMany(cascade = {})
| @JoinTable(name = "some_view",
| joinColumns = {@JoinColumn(name = "job_group_id", referencedColumnName = "id")},
| inverseJoinColumns = {@JoinColumn(name = "category_id", referencedColumnName = "id")})
| public Collection<Category> getCategories() {
| return this.categories;
| }
|
| public void setCategories(Collection<Category> categories) {
| this.categories = categories;
| }
| }
|
| //-----------------
|
| @Entity
| ...
| public class Category implements Serializable {
|
| protected long id;
| protected String name;
|
| ...
|
| @ManyToMany(mappedBy = "categories", cascade = {})
| public Collection<JobGroup> getJobGroups() {
| return jobGroups;
| }
|
| public void setJobGroups(Collection<JobGroup> jobGroups) {
| this.jobGroups = jobGroups;
| }
| }
JobGroup is master and Category is slave.
Thanks for advance for any answer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080414#4080414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080414
18 years, 7 months