JNDI RMI
I am trying to understand how JNDI works.
1) It´s something like RMI, I mean, I attach an object to a name(url), isnt it?
2) what is the InitialContext, like the registry server in rmi?
Thanks
I have the same question. I can't distinguish between 2 ways of using RMI:
The first way, I usually see is:
1) Create object, interface on Server
2) Create file stub & skeleton
3) Create interface on Client, copy stub file to Client
4) Run rmiregistry.exe
5)...
The second way is:
Using JNDI
1) Create environment
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
env.put(Context.PROVIDER_URL, "rmi://server:1099");
2) Create context and lookup object by name
Context ic = new InitialContext(env);
Object obj = ic.lookup(name)
If possible, pls give me step-by-step example of using JNDI. I run example of the first way already but can't find the example for the second way.
May anybody help me?
Similar Messages
-
InitialContext ctx = new InitialContext ();
ctx.rebind ("wwlhp", remoteObject);Does the JNDI tree and remoteObject reside in the same JVM?
Can i use JNDI without J2EE platform?
Can some one give me a piece of code illustrating rebinding in server side and looking up in client side.import javax.naming.*;
import java.util.*;
public class Server{
public static void main(String[]args){
try{
Hashtable env=new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.rmi.registry.RegistryContextFactory");
env.put(Context.PROVIDER_URL,"rmi://servername");
Context ctx=new InitialContext(env);
//create an instance of remote object
RemoteIF i=new RemoteImpl();
ctx.rebind("common name",ri);
}catch(Exception ex){}
The client needs to create a context as well, as above, the lookup
RemoteIF ri=(RemoteIF)ctx.lookup("common name");
The Stub classes must be available to the client as well
start rmiregistry
start the server
off you go with the client -
RMI : error on JRE 1.6 but not on JRE 1.5 ???
Hello,
I've got a problem with my application since i use JRE 1.6
My application run perfectly with JRE 1.5 !!!
My code is first :
LocateRegistry.createRegistry(port);
NamingManager.setInitialContextFactoryBuilder(new InitialServerContextFactory());
NamingManager.getInitialContext(environment);(with environment is an hastable containing HOST et PORT)
An next, i have a Java Class witch impl�ments Context :
public class InitialServerContext implements Context
public void bind(String name, Object obj) throws NamingException
getRMIContext().bind("rmi://" + mServer + ':' + mPort + '/' + name, obj);
static Context getRMIContext() throws NamingException
return NamingManager.getURLContext("rmi", null);
The error on JRE 1.6 is on the line :
getRMIContext().bind("rmi://" + mServer + ':' + mPort + '/' + name, obj);
_Exception is
:_java.lang.NullPointerException
at com.sun.jndi.rmi.registry.RegistryContext.<init>(Unknown Source)
at com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.bind(Unknown Source)
at com.xxx.aes.naming.InitialServerContext.bind(InitialServerContext.java:231)
at com.xxx.aes.naming.InitialServerContextFactory.getInitialContext(InitialServerContextFactory.java:104)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at com.xxx.aes.server.NamingServer.start(NamingServer.java:65)
What is the difference between JRE 1.5 and 1.6 ?
Why my application in 1.6 is not correct ?
If necessary, i can give you my Java Class InitialServerContextFactory.java
Thanks a lot for your responses.Hello,
I tired this approach you mentioned, and interestingly if i just make ejb calls without any event handling, meaning if i call them separately they all just work fine and i see the results coming back from server. But when i relate them to any click events the whole IE freezes.
One more thing i noted is that, seems like the way JRE 1.6 render my applet is somewhat different than JRE 1.5.* familiy,because initially when my aplet is loaded, i see everything which should be displayed from the first screen, but any further operations i cannot perform, even opening a file chooser from tool bar. I admit my applet is real heavy and it contains a lot of data in it on the first screen, may be its the heap size causing the problem in 1.6 but fine with jre 1.5.
Day by day am coming to conlusion that jre 1.6 is my concern now ..:(
Thanks, -
Urgent Help Required For Starting RMI server from servlet.
I am currently working on rmi project.
I want to send request to remote machine(Web host) where my application is from desktop client .For that we are using RMI.
I am writing servlet and inside it i am binding object to registry for rmi server.
which will be deployed on remote server.
code ....
Registry reg;
reg=LocateRegistry.createRegistry(1099);
Server server=new Server("server");//class whose remote object to be accessed
//extends unicast remote object.Implement ServerInt interface which extends Remote.
reg.bind("server",server);
When i am trying to access this object i am getting following exception.
javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalExcepti
on: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: ServerModule.ServerInt]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at RequstReplication.main(RequstReplication.java:27)
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested excep
tion is:
java.lang.ClassNotFoundException: ServerModule.ServerInt
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
... 4 more
Caused by: java.lang.ClassNotFoundException: ServerModule.ServerInt
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyInterfaces(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)
at java.io.ObjectInputStream.readProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
... 5 more
I can access naming enumeration of registry and object bound to it.
by following program.I shows corect objects.
Context namingContext=new InitialContext();
NamingEnumeration<NameClassPair> e=namingContext.list("rmi:");
while(e.hasMore())
System.out.println(e.next().getName());
While when i start RMI server from simple java program i can access these objects from registry.
I am not getting what is problem problem.Is there any other way to send request?
Plese give quick response.I am currently working on rmi project.
I want to send request to remote machine(Web host) where my application is from desktop client .For that we are using RMI.
I am writing servlet and inside it i am binding object to registry for rmi server.
which will be deployed on remote server.
code ....
Registry reg;
reg=LocateRegistry.createRegistry(1099);
Server server=new Server("server");//class whose remote object to be accessed
//extends unicast remote object.Implement ServerInt interface which extends Remote.
reg.bind("server",server);
When i am trying to access this object i am getting following exception.
javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalExcepti
on: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: ServerModule.ServerInt]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at RequstReplication.main(RequstReplication.java:27)
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested excep
tion is:
java.lang.ClassNotFoundException: ServerModule.ServerInt
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
... 4 more
Caused by: java.lang.ClassNotFoundException: ServerModule.ServerInt
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyInterfaces(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)
at java.io.ObjectInputStream.readProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
... 5 more
I can access naming enumeration of registry and object bound to it.
by following program.I shows corect objects.
Context namingContext=new InitialContext();
NamingEnumeration<NameClassPair> e=namingContext.list("rmi:");
while(e.hasMore())
System.out.println(e.next().getName());
While when i start RMI server from simple java program i can access these objects from registry.
I am not getting what is problem problem.Is there any other way to send request?
Plese give quick response. -
JMXConnectorServer.start() causes java.rmi.AccessException
Hi all,
I've already posted this message to the tomcat mailing list as well as to the jmx forum, but without any result.
I've a web service running inside tomcat which
creates the jmx stuff needed to manage resources:
LocateRegistry.createRegistry(port);
String localhost = InetAddress.getLocalHost().getCanonicalHostName();
MBeanServer mbs = MBeanServerFactory.createMBeanServer();
// it is the same with getPlatformMBean
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + localhost + ":"
+ port + "/qosp");
JMXConnectorServer cs =
JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
cs.start();The problem is that I get a java.rmi.AcessException -- see below -- when the cs.start() call is executed (on linux machines only -- it works fine on Windows)
The problem seems to be the following:
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
However my machine does not have that address, and actually I have no idea what it is.
Any clue?
Michele
Nov 6, 2006 11:55:01 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java
Nov 6, 2006 11:55:01 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 6, 2006 11:55:01 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 666 ms
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 6, 2006 11:55:02 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
2006-11-06 11:55:03,668 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
addressing-1.1
2006-11-06 11:55:03,682 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
managerInterceptor
2006-11-06 11:55:03,690 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
soapmonitor-1.1
2006-11-06 11:55:03,890 INFO ncl.qosp.controller.LifecycleSupport -
Qosp jmx is starting up...
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:124)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy
(DeploymentEngine.java:528)
at org.apache.axis2.deployment.repository.util.WSInfoList.update
(WSInfoList.java:196)
at org.apache.axis2.deployment.RepositoryListener.update
(RepositoryListener.java:227)
at org.apache.axis2.deployment.RepositoryListener.checkServices
(RepositoryListener.java:174)
at org.apache.axis2.deployment.DeploymentEngine.loadServices
(DeploymentEngine.java:88)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices
(WarBasedAxisConfigurator.java:252)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:72)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext
(AxisServlet.java:373)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:
317)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4176)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
693)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules Unable to start the connector; nested
exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:320)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
... 35 more
Caused by: org.apache.axis2.deployment.DeploymentException: Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:349)
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:127)
... 37 more
Caused by: java.lang.RuntimeException: Unable to start the connector
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:192)
at ncl.qosp.controller.LifecycleSupport.startUp
(LifecycleSupport.java:132)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:345)
... 38 more
Caused by: java.io.IOException: Cannot bind to URL [rmi://
sealbook.ncl.ac.uk:10099/qosp]: javax.naming.NoPermissionException
[Root exception is java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at javax.management.remote.rmi.RMIConnectorServer.newIOException
(RMIConnectorServer.java:814)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:431)
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:190)
... 40 more
Caused by: javax.naming.NoPermissionException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:122)
at com.sun.jndi.toolkit.url.GenericURLContext.bind
(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at javax.management.remote.rmi.RMIConnectorServer.bind
(RMIConnectorServer.java:635)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:427)
... 41 more
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:116)
... 45 more
Caused by: java.rmi.AccessException: Registry.Registry.bind
disallowed; origin /128.240.229.70 is non-local host
at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:119)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
2006-11-06 11:55:04,041 ERROR
org.apache.axis2.deployment.DeploymentEngine - Invalid service
RoutingService.aar due to Processing Operations Modules Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:124)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy
(DeploymentEngine.java:528)
at org.apache.axis2.deployment.repository.util.WSInfoList.update
(WSInfoList.java:196)
at org.apache.axis2.deployment.RepositoryListener.update
(RepositoryListener.java:227)
at org.apache.axis2.deployment.RepositoryListener.checkServices
(RepositoryListener.java:174)
at org.apache.axis2.deployment.DeploymentEngine.loadServices
(DeploymentEngine.java:88)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices
(WarBasedAxisConfigurator.java:252)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:72)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext
(AxisServlet.java:373)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:
317)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4176)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
693)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules Unable to start the connector; nested
exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:320)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
... 35 more
Caused by: org.apache.axis2.deployment.DeploymentException: Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:349)
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:127)
... 37 more
Caused by: java.lang.RuntimeException: Unable to start the connector
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:192)
at ncl.qosp.controller.LifecycleSupport.startUp
(LifecycleSupport.java:132)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:345)
... 38 more
Caused by: java.io.IOException: Cannot bind to URL [rmi://
sealbook.ncl.ac.uk:10099/qosp]: javax.naming.NoPermissionException
[Root exception is java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at javax.management.remote.rmi.RMIConnectorServer.newIOException
(RMIConnectorServer.java:814)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:431)
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:190)
... 40 more
Caused by: javax.naming.NoPermissionException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:122)
at com.sun.jndi.toolkit.url.GenericURLContext.bind
(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at javax.management.remote.rmi.RMIConnectorServer.bind
(RMIConnectorServer.java:635)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:427)
... 41 more
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:116)
... 45 more
Caused by: java.rmi.AccessException: Registry.Registry.bind
disallowed; origin /128.240.229.70 is non-local host
at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:119)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
2006-11-06 11:55:04,180 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying Web service
version.aar
Nov 6, 2006 11:55:04 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 6, 2006 11:55:04 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 6, 2006 11:55:04 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/26 config=null
Nov 6, 2006 11:55:04 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 6, 2006 11:55:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2979 msIs it possible that
InetAddress.getLocalHost().getCanonicalHostName() is
returning a bogus name? Could you replace it with
.getHostName()?Yes, I did it, but nothing changed, so I tried to hardcode the 'localhost' when I create the JMXServiceURL instead of using the value returned by InetAddress.getLocalHost().get* and it worked.
Could it be because of network settings (I'm running behind a proxy)?
Thanks,
Michele -
In search of ... Actual JNDI Context
Although I realize that in a default environment, there is no need to supply a HashTable to the InitialContext constructor -
could someone please provide the Hashtable elements that make up the default connection to the default naming service associated with a SJSE6 JNDI lookup -
Any help is appreciated -
John SchmittI found my own answer:
private String _jndiContextFactory = "com.sun.jndi.rmi.registry.RegistryContextFactory";
private String _jndiProviderURL = "rmi://localhost:1099"; -
It is the fouth thread for the jms and rmi. Is there anyone that can answer me?
I can run rmi and jms sample in the oc4j standalone. but if I run in the application server, there are always some errrors. I have searched all the forum and the documents about application. I found nothing helping to me.
Is there a tutoral for run rmi and jms in the application server step by step?
Was there anyone help me, I will lose my job soon.
God save me.I installed the oracle9ias9.02 on linux 7.1. and the installation is ok. I can deploy application.
I deploy the ear file and the jsp and servlet are running ok.
In the application, there is a applet which will call the method through rmi.
and the bean which provide the rmi method will recieve jms messages in the server side.
here is the applet:
package transfer;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.rmi.*;
import java.rmi.server.*;
import java.io.*;
import java.util.*;
import com.longshine.transfer.TransferDataList; //interface file
* Title: CAO5M3H]TV187]O5M3--J5J1<`?XJ}>]4+Jd
* Description: @{SCRMI5wSC7~NqFw6K5DTransferDataList3LPr#,2ISCJMS4SJ}>]7"KM6K;q5C4+JdJ}>]!#
* Copyright: Copyright (c) 2002
* Company: longshine
* @author MuCt
* @version 1.0
public class TransferMonitor extends Applet {
boolean isStandalone = false;
TextArea textArea1 = new TextArea();
Button refresh = new Button();
Button stop = new Button();
Label data_stat=new Label(); //M3<FJ}>]OTJ>
TransferDataList DataList=null; //6(ReR;8vT63L6TOs5D=S?Z!#
/**Get a parameter value from applet param list*/
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
/**Construct the applet*/
public TransferMonitor() {
/**Initialize the applet*/
public void init() {
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
/**Component initialization*/
private void jbInit() throws Exception {
setLayout(new BorderLayout());
textArea1.setText("?*J<=SJUIm7]Is:KJ}>]O{O"...\n");
refresh.setLabel("K"PB");
refresh.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
refresh_mouseClicked(e);
stop.setLabel("T]M#");
stop.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
stop_mouseClicked(e);
//data_stat.setText("M3<F");
this.add(textArea1, BorderLayout.CENTER);
this.add(refresh, BorderLayout.SOUTH);
this.add(stop, BorderLayout.EAST);
/**Start the applet
* ?*J<@{SCRMI:MT67=7~NqFw3LPrTransferDataListServer=(A"A*O5#,5wSC7=7(getPersonList,
* 5C5=ND1>8qJ=5DJ}>]#,?IRTV1=SOTJ>5=FAD;IO!#
public void start() {
String url="rmi://"+getCodeBase().getHost()+"/person_list"; //T63L6TOs5D5XV7<0remote objectC{3F!#
// System.setSecurityManager(new RMISecurityManager());//applet2;PhR*2ISCsecurityManager9\@m
try {
DataList=(TransferDataList)Naming.lookup(url);
textArea1.append(this.get_gb(DataList.getMessageList()));
catch (Exception e) {
System.out.println("Lookup RMI Server Error:"+e);
/**Stop the applet*/
public void stop() {
/**Destroy the applet*/
public void destroy() {
/**Get Applet information*/
public String getAppletInfo() {
return "Audit Data Monitor Applet";
/**Get parameter info*/
public String[][] getParameterInfo() {
return null;
/**Main method*/
public static void main(String[] args) {
TransferMonitor applet = new TransferMonitor();
applet.isStandalone = true;
Frame frame;
frame = new Frame() {
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
public synchronized void setTitle(String title) {
super.setTitle(title);
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
frame.setTitle("Applet Frame");
frame.add(applet, BorderLayout.CENTER);
applet.init();
applet.start();
frame.setSize(400,320);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
frame.setVisible(true);
* Ge?U51G0GxSr5D@zJ7OTJ>J}>]#,VXPB?*J<OTJ>PB5DO{O"!#
void refresh_mouseClicked(MouseEvent e) {
textArea1.setText("?*J<=SJUPB5DIm7]HOV$O{O"#!#!#!\n");
this.start();
System.out.println("clear current text area!!!");
* reserved
void stop_mouseClicked(MouseEvent e) {
System.out.println("click stop button!!!");
public String get_gb(String s_name) {
String s_unicode="" ;
try{
s_name = s_name.trim ();
byte[] bytes = s_name.getBytes("8859-1");
s_unicode = new String(bytes,"GB2312");
}catch(UnsupportedEncodingException e){
System.out.println(e.toString());}
return s_unicode;
public String get_iso8859_1(String s_name) {
String s_unicode="" ;
try{
s_name = s_name.trim ();
byte[] bytes = s_name.getBytes("GB2312");
s_unicode = new String(bytes,"8859-1");
}catch(UnsupportedEncodingException e){
System.out.println(e.toString());}
return s_unicode;
here is the rmi bean:
package com.longshine.transfer;
import java.rmi.*;
import java.rmi.server.*;
import com.longshine.pub_func.*;
* Title: CAO5M3H]TV187]O5M3#-#-RMI Server3LPr#,4&@mRMIT63LGkGs!#
* Description: 2ISCJMS7=J=4SG06KO5M3;q5CO{O"J}>]!#
* Copyright: Copyright (c) 2002
* Company: longshine
* @author MuCt
* @version 1.0
public class TransferDataListServer {
public TransferDataListServer() {
public static void main(String[] args) {
// Read run option:start/stop from command line
if (args.length != 1) {
System.out.println("Usage: java " +"TransferDataListServer <option>");
System.exit(1);
// System.out.println("Queue name is " + queueName);
TransferDataListServer ts1 = new TransferDataListServer();
try {
String host_name=GetSysparam.getParam("web_server");
System.out.println(host_name+"------");
String url="rmi://127.0.0.1:3101/person_list";
System.out.println("Construction server implementations...");
TransferDataListImpl p1=new TransferDataListImpl();
System.out.println("binding server implementation to registry...");
Naming.rebind(url,p1);
System.out.println("Waiting for invocations from clients...");
catch (Exception e) {
System.out.println("Start RMI Server Error:"+e);
here is the impl bean:
package com.longshine.transfer;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.server.*;
import java.rmi.*;
import com.longshine.pub_func.*;
import java.sql.*;
import javax.jms.*;
import javax.naming.*;
* Title: CAO5M3H]TV187]O5M3--J5OV=S?Z5D7~NqFw@`
* Description:
* Copyright: Copyright (c) 2002
* Company: longshine
* @author MuCt
* @version 1.0
public class TransferDataListImpl extends UnicastRemoteObject
implements TransferDataList
int TotalMessage=0; //M3<FO{O"W\LuJ}!#
public TransferDataListImpl() throws RemoteException {
* 2bJTSC@}#:T63L5wSC5D7=7(#,;q5CIm7]Is:KJ}>]5DAP1m
public String getPersonList() throws RemoteException {
String sql_stmt="select * from doc_user";
int limit=0;
String user_id,name,str="";
DbOperate db1=new DbOperate();
db1.setExecQuery(sql_stmt);
ResultSet rs=db1.getExecQuery();
try {
while (rs.next() && limit<30) {
user_id=rs.getString("user_id");
name=rs.getString("name");
System.out.println("user_id:"+user_id+"---name:"+name);
str+="user_id:"+user_id+"; name:"+name+"\n";
limit++;
db1.setCloseQuery();
catch (SQLException e) {
System.out.println(e.getMessage());
return "error!!!";
return str;
* get queue name from config.properties file.
public String getQueueName() {
String queue_name="";
try {
queue_name=GetSysparam.getParam("queueName");
catch (Exception e) {
System.out.println("Get system param error:"+e);
return queue_name;
* @{SCJMS5C5=7"KM5DIs:KJ}>]PEO"!#V.:s9)?M;'6KappletJ9SCrmi7=J=5wSC;q5C!#
public String getMessageList() throws RemoteException {
String queueName = null;
Context jndiContext = null;
QueueConnectionFactory queueConnectionFactory = null;
QueueConnection queueConnection = null;
QueueSession queueSession = null;
Queue queue = null;
QueueReceiver queueReceiver = null;
TextMessage message = null;
String message_str=""; //save all message to a string .
queueName = this.getQueueName();
System.out.println("Queue name is " + queueName);
* Create a JNDI API InitialContext object if none exists
* yet.
try {
// java.util.Hashtable env=new java.util.Hashtable();
// env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.rmi.registry.RegistryContextFactory");
// env.put(Context.PROVIDER_URL,"rmi://172.18.18.128:1099");
jndiContext = new InitialContext();
catch (NamingException e) {
System.out.println("Could not create JNDI API " +
"context: " + e.toString());
System.exit(1);
* Look up connection factory and queue. If either does
* not exist, exit.
try {
queueConnectionFactory = (QueueConnectionFactory)
jndiContext.lookup("QueueConnectionFactory");
queue = (Queue) jndiContext.lookup(queueName);
} catch (NamingException e) {
System.out.println("JNDI API lookup failed: " +
e.toString());
System.exit(1);
* Create connection.
* Create session from connection; false means session is
* not transacted.
* Create receiver, then start message delivery.
* Receive all text messages from queue until
* a non-text message is received indicating end of
* message stream.
* Close connection.
try {
queueConnection =
queueConnectionFactory.createQueueConnection();
queueSession =
queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
queueReceiver = queueSession.createReceiver(queue);
queueConnection.start();
while (true) {
Message m = queueReceiver.receive(1);
if (m != null) {
if (m instanceof TextMessage) {
message = (TextMessage) m;
System.out.println("Reading message: " +
message.getText());
message_str+=message.getText()+"\n";
} else {
break;
} catch (JMSException e) {
System.out.println("Exception occurred: " +
e.toString());
} finally {
if (queueConnection != null) {
try {
queueConnection.close();
} catch (JMSException e) { System.out.println("jms expetion: "+e);}
return message_str;
all these bean will run ok in the sun j2ee envrionment, but can not work in the application server.
in the sun j2ee, I will run rmiregister and the run the rmi server, the applet then can invoke the rmi method.
in the oracle9ias application server, how i can run the rmi server
thanks -
In the JMX example, it starts a Server application.
Basically it initiates the MBeanServer, creates the RMI ConnectorServer
and then starts the connector and that is it as far as the code goes.
Why does the server application not exit but continue to run? Is that because the RMI connector server is listening for incoming connections?
Is another thread created to do this?
// Create an RMI connector server
System.out.println("\nCreate an RMI connector server");
JMXServiceURL url = new JMXServiceURL(
"service:jmx:rmi:///jndi/rmi://localhost:9999/server");
JMXConnectorServer cs =
JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
// Start the RMI connector server
System.out.println("\nStart the RMI connector server");
cs.start();
System.out.println("\nRMI connector server successfully started");
System.out.println("\nWaiting for incoming connections...");Hi DongWoo,
Very nice diagram, thanks for posting this! I envy your drawing skills :-)
Do you mind if I update my blog posts:
JMX: Connecting Through Firewalls Using RMI Over SSL And a Single Port (Part III)
http://blogs.sun.com/jmxetc/entry/jmx_connecting_through_firewalls_using
and
Troubleshooting connection problems in JConsole
http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole
to link to it?
Best regards,
-- daniel
http://blogs.sun.com/jmxetc -
Hi,
I m trying to do the following :
RMI client running versus a RMI-IIOP server
I already have made a RMI-IIOP client running with a RMI server, by using the class "com.sun.jndi.rmi.registry.RegistryContextFactory" as parameter for the Context.INITIAL_CONTEXT_FACTORY field (client side)
But when I try to do the same on the server side, I get a java.io.NotSerializableException by starting it, even if the same works with a IIOP server, by using the class "com.sun.jndi.cosnaming.CNCtxFactory" as parameter for the Context.INITIAL_CONTEXT_FACTORY field
thanks in advance for your helpI'm also curious about this. The not serializable exception is a hint that the infrastructure is trying to send the object itself rather than its stub over the network. I can solve this problem by calling UnicastRemoteObject.exportObject() before trying to register with the naming service. This seems to give the infrastructure access to an appropriate stub, but at the expense of always exporting the object over JRMP even when it's not necessary.
My question is: is it possible to choose JRMP or IIOP just by setting system properties? Sorry, I'm sure I've neglected to read some key piece of documentation because I can find lots of articles that say this is possible but don't say how.
Thanks,
Donal Lynch -
Hello
i read that ,in JDK 1.5 you don't have to generate stubs manually for server but it is generated automatically but when i tried this code , it throws this exception ,why???!!!!
public static void main(String[] args) {
try {
System.out.println("Constructing server implementations...");
LoginImpl Login = new LoginImpl();
System.out.println("Binding server implementations to registry...");
Context namingContext = new InitialContext();
namingContext.bind("rmi:Login", Login);
System.out.println("Waiting for invocations from clients...");
} catch (Exception e) {
e.printStackTrace();
}Exception
javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: dbHandling.Login]
at com.sun.jndi.rmi.registry.RegistryContext.bind(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.bind(Unknown Source)
at javax.naming.InitialContext.bind(Unknown Source)
at dbHandling.Main.main(Main.java:16)
Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: dbHandling.Login
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
... 4 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: dbHandling.Login
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: dbHandling.Login
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:711)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:655)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:592)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
... 12 more
thanks in advancedPresumably dbHandling.Login is your remote
interface?
The Registry and the client both need access to that
via their CLASSPATHs or the codebase mechanism.yes dbHandling.Login is my interface and client can access it but i don't know how to make registry can access it
thanks -
Error when starting Java(TM) ME Platform SDK 3.0
hey guys, I get this error when starting Java(TM) ME Platform SDK 3.0. When I installed it it installed 'successfully' and then I double clicked the file on the desktop (I'm using Windows Vista 32bit Home premium) and it gave me the following error when saying 'Starting Modules':-------------------------------------------------------------------------------
Log Session: Sunday, February 13, 2011 1:52:25 PM GMT
System Info: Product Version = Java(TM) ME Platform SDK 3.0
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_23-b05
Java Home = C:\Program Files\Java\jdk1.6.0_23\jre
System Locale; Encoding = en_GB (cdctoolbar); Cp1252
Home Directory = C:\Users\Molten Ice
Current Directory = C:\Program Files\Java\Java_ME_platform_SDK_3.0\bin
User Directory = C:\Users\Molten Ice\javame-sdk\toolbar\3.0
Installation = C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\javamesdk1
C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\ide10
C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\java2
C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\mobility8
C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\profiler2
C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9
Boot & Ext. Classpath = C:\Program Files\Java\jdk1.6.0_23\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar;C:\Program Files\Java\jdk1.6.0_23\jre\classes;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_23\jre\lib\ext\sunpkcs11.jar
Application Classpath = C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\boot.jar;C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-modules.jar;C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.6.0_23\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_23\lib\tools.jar
Startup Classpath = C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9\core\core.jar;C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\platform9\core\org-openide-filesystems.jar;C:\Program Files\Java\Java_ME_platform_SDK_3.0\toolbar\javamesdk1\core\locale\core_cdctoolbar.jar
WARNING [org.netbeans.core.projects.cache]: Inefficient to include an empty layer in a module: jar:file:/C:/Program%20Files/Java/Java_ME_platform_SDK_3.0/toolbar/javamesdk1/modules/org-netbeans-modules-javame-common.jar!/org/netbeans/modules/javame/common/resources/layer.xml
WARNING [org.netbeans.core.projects.cache]: Inefficient to include an empty layer in a module: jar:file:/C:/Program%20Files/Java/Java_ME_platform_SDK_3.0/toolbar/javamesdk1/modules/org-netbeans-modules-e2e.jar!/org/netbeans/modules/e2e/layer.xml
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [org-netbeans-modules-javame-netmon-data-NetMonDataResolver.xml], but some are: [org-netbeans-modules-java-mime-resolver.xml, org-apache-tools-ant-module-mime-resolver.xml, org-netbeans-modules-editor-settings-storage-mime-resolver.xml, org-netbeans-modules-url-mime-resolver.xml, org-netbeans-modules-pdf-mime-resolver.xml, org-netbeans-modules-jar-mime-resolver.xml, org-netbeans-modules-editor-codetemplates-mime-resolver.xml]
WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [org-netbeans-modules-javame-netmon-data-NetMonDataResolver.xml], but some are: [org-netbeans-modules-java-mime-resolver.xml, org-apache-tools-ant-module-mime-resolver.xml, org-netbeans-modules-editor-settings-storage-mime-resolver.xml, org-netbeans-modules-url-mime-resolver.xml, org-netbeans-modules-pdf-mime-resolver.xml, org-netbeans-modules-jar-mime-resolver.xml, org-netbeans-modules-editor-codetemplates-mime-resolver.xml]
[ 0] INFO - ootstrap.PropertyEditorManager - Registering custom property editors
[ 117] INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
[ 217] INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
[ 317] INFO - bootstrap.ObjectGraphProcessor - Calculating order...
[ 417] INFO - bootstrap.ObjectGraphProcessor - Calculated order
[ 523] INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
[ 627] INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
[ 732] INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
[ 832] INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
[ 932] INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
[ 1032] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 2166] WARN - mpl.ObjectServerConnectionImpl - Remote object server is not running at service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 2268] INFO - l.process.GenericProcessRunner - Starting process: C:\Program Files\Java\Java_ME_platform_SDK_3.0/bin/device-manager.exe
[ 3384] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 5476] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 7576] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 9677] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 11777] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 13877] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 15977] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 18077] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 20177] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 22277] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 23379] ERROR - un.jme.toolkit.bootstrap.Batch - Problem calling start() on DeviceManagerConnection
java.lang.reflect.InvocationTargetException
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:597)
at com.sun.jme.toolkit.bootstrap.Batch.invoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.tryInvoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.startObjects(Unknown Source)
at org.netbeans.modules.javame.common.container.Module.start(Module.java:21)
at org.netbeans.modules.javame.common.container.ContainerSupport.startModule(ContainerSupport.java:67)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManagerConnection(DevicemanagerHelper.java:41)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.ensureConnected(DevicemanagerHelper.java:48)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:84)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
at org.netbeans.core.startup.Main.start(Main.java:312)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
... 24 more
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
... 27 more
Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
... 32 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:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 37 more
SEVERE [org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper]: Cannot connect to device manager
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:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
Caused: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
Caused: java.io.IOException: Failed to retrieve RMIServer stub
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
Caused: java.lang.reflect.InvocationTargetException
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:597)
at com.sun.jme.toolkit.bootstrap.Batch.invoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.tryInvoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.startObjects(Unknown Source)
at org.netbeans.modules.javame.common.container.Module.start(Module.java:21)
at org.netbeans.modules.javame.common.container.ContainerSupport.startModule(ContainerSupport.java:67)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManagerConnection(DevicemanagerHelper.java:41)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.ensureConnected(DevicemanagerHelper.java:48)
[catch] at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:84)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
at org.netbeans.core.startup.Main.start(Main.java:312)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
at java.lang.Thread.run(Thread.java:662)
[ 23598] INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
[ 23698] INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
[ 23798] INFO - bootstrap.ObjectGraphProcessor - Calculating order...
[ 23898] INFO - bootstrap.ObjectGraphProcessor - Calculated order
[ 23998] INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
[ 24098] INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
[ 24198] INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
[ 24298] INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
[ 24398] INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
[ 24498] INFO - un.jme.toolkit.bootstrap.Batch - Objects started
[ 24600] INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
[ 24700] INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
[ 24800] INFO - bootstrap.ObjectGraphProcessor - Calculating order...
[ 24900] INFO - bootstrap.ObjectGraphProcessor - Calculated order
[ 25000] INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
[ 25100] INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
[ 25202] INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
[ 25302] INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
[ 25402] INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
[ 25502] INFO - un.jme.toolkit.bootstrap.Batch - Objects started
[ 25602] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 26699] WARN - mpl.ObjectServerConnectionImpl - Remote object server is not running at service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 26799] INFO - l.process.GenericProcessRunner - Starting process: C:\Program Files\Java\Java_ME_platform_SDK_3.0/bin/device-manager.exe
[ 27914] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 30005] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 32106] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 34206] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 36306] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 38406] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 40506] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 42607] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 44706] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
[ 46806] INFO - mpl.ObjectServerConnectionImpl - Connecting to service:jmx:rmi:///jndi/rmi://127.0.0.1:1999/device-manager
SEVERE [org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper]: Cannot connect to device manager
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:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
Caused: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
Caused: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
Caused: java.io.IOException: Failed to retrieve RMIServer stub
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.connect(Unknown Source)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.start(Unknown Source)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.lookupMBean(Unknown Source)
at com.sun.jme.toolkit.remoting.client.rmiimpl.ObjectServerConnectionImpl.findObject(Unknown Source)
[catch] at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.openConnection(DevicemanagerHelper.java:53)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManager(DevicemanagerHelper.java:86)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.ensureDMStarted(AutoInstaller.java:292)
at org.netbeans.modules.javame.platform.jme_sdk.autoinstaller.AutoInstaller.restored(AutoInstaller.java:63)
at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:421)
at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:342)
at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165)
at org.netbeans.core.startup.Main.start(Main.java:312)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
at java.lang.Thread.run(Thread.java:662)
[ 48018] INFO - bootstrap.ObjectGraphProcessor - Consolidating dependencies...
[ 48118] INFO - bootstrap.ObjectGraphProcessor - Consolidated dependencies...
[ 48218] INFO - bootstrap.ObjectGraphProcessor - Calculating order...
[ 48318] INFO - bootstrap.ObjectGraphProcessor - Calculated order
[ 48418] INFO - un.jme.toolkit.bootstrap.Batch - Initializing objects...
[ 48518] INFO - un.jme.toolkit.bootstrap.Batch - Applying I18N
[ 48618] INFO - un.jme.toolkit.bootstrap.Batch - Initialized objects
[ 48718] INFO - un.jme.toolkit.bootstrap.Batch - Calling create() methods...
[ 48818] INFO - un.jme.toolkit.bootstrap.Batch - Calling start() methods...
[ 48918] INFO - un.jme.toolkit.bootstrap.Batch - Objects started
[ 49018] INFO - bootstrap.ObjectGraphPI did install Nokia's SDK with NetBeans and this works perfectly.
I went through with everything recommended here: http://blogs.sun.com/javamesdk/entry/first_aid_when_emulator_doesn
But nothing worked.
Any help appreciated!
Thanks.Note: This thread was originally posted in the [Sun Java Wireless Toolkit|http://forums.sun.com/forum.jspa?forumID=82] forum, but moved to this forum for closer topic alignment.
-
Help me find out the error in my first hello application
Hello every body !!!!
I am new to JEE.I am competent on JDK and also have worked on Tomcat JSP,servlet.
But i am having problem running my first JEE programme.
I have Sun Java System Application Server 9.1 with NetBeans 6 on WinXP.
I have used NetBeans 6 hence those comments are there.
Below are the code i have used:
In the hello-ejb module i have following Bean and remote interfaces==>>>
package hello;
import javax.ejb.Stateless;
@Stateless
public class HelloBean implements HelloRemote {
private String name="Yoodleyee";
public String sayHello() {
//return null;
return "My Name is "+name;
// Add business logic below. (Right-click in editor and choose
// "EJB Methods > Add Business Method" or "Web Service > Add Operation")
package hello;
import javax.ejb.Remote;
@Remote
public interface HelloRemote {
public String sayHello();
In the Hello-app-client module i have main()==>>
package hello;
import javax.ejb.EJB;
public class Main {
@EJB
private static HelloRemote helloBean;
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Hi "+helloBean.sayHello());
since this program does not require deployment descriptor and also NetBean creates its own deployment discriptor hence i have not written any.
While the BUILD is successfull.But when Run this application I get deployment error.I am pasting the error stack below:
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
init:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
pre-pre-compile:
pre-compile:
do-compile:
post-compile:
compile:
pre-dist:
do-dist-without-manifest:
do-dist-with-manifest:
post-dist:
dist:
pre-run-deploy:
Initial deploying Hello to C:\nikhil workstation\EJB work\NetBeansProjects\Hello\dist\gfdeploy
Completed initial distribution of Hello
Start registering the project's server resources
Finished registering server resources
moduleID=Hello
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
Deployment error:
The module has not been deployed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
... 16 more
BUILD FAILED (total time: 1 second)
Where as the server log has the following stack
----Log File Rotated---
Apr 18, 2008 5:06:42 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/Sun/SDK/jdk\bin\java
-Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/SDK/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2/config
-Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2/updatecenter
-Ddomain.name=domain1
-Dhttp.nonProxyHosts=1*|prdits.tatasteel.co.in*|prd.tatasteel.co.in*|myportal.tatasteel.co.in*|<local>*|localhost|127.0.0.1|WAGONTRACKER
-Dhttp.proxyHost=151.0.1.128
-Dhttp.proxyPort=3128
-Dhttps.proxyHost=151.0.1.128
-Dhttps.proxyPort=3128
-Djava.endorsed.dirs=C:/Program Files/glassfish-v2/lib/endorsed
-Djava.ext.dirs=C:/Sun/SDK/jdk/lib/ext;C:/Sun/SDK/jdk/jre/lib/ext;C:/Program Files/glassfish-v2/domains/domain1/lib/ext;C:/Program Files/glassfish-v2/javadb/lib
-Djava.library.path=C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\bin;C:\Program Files\glassfish-v2\lib
-Djava.security.auth.login.config=C:/Program Files/glassfish-v2/domains/domain1/config/login.conf
-Djava.security.policy=C:/Program Files/glassfish-v2/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=C:/Program Files/glassfish-v2/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/jvm.log
-cp
C:/Program Files/glassfish-v2/lib/jhall.jar;C:\Program Files\glassfish-v2\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_03] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
C:/Program Files/glassfish-v2/domains/domain1/config/.__com_sun_appserv_pid
ADM0001:SunoneInterceptor is now enabled
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
ADM1079: Initialization of AMX MBeans started
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://WAGONTRACKER:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
autoDeployment status dir missing, creating a new one
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear for autodeployment.
deployed with moduleid = MEjbApp
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear.
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear for autodeployment.
deployed with moduleid = __ejb_container_timer_app
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear.
[AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear for autodeployment.
deployed with moduleid = __JWSappclients
[AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear.
WEB0302: Starting Sun-Java-System/Application-Server.
JBIFW0010: JBI framework ready to accept requests.
No Principals mapped to Role [noaccess].
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [MyHello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:338)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 14 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 21 more
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 17 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 24 more
javax.ejb.EJB.description()Ljava/lang/String;
Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
... 10 more
Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
... 17 more
Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
... 24 more
Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context ''
JBIFW0012: JBI framework startup complete.
Please help me find the error and eliminate it.
I am disgusted with it as i am stuck at this position for last 15 days.I have failed to find solution in google etc.
Even the demo sample projects given in NetBeans are generating error messages.
Please help...
Yoodleyee>
Please help me find the error and eliminate it.
I am disgusted with it as i am stuck at this position for last 15 days.15 days on "Hello Anything" should never happen.
Even the demo sample projects given in NetBeans are generating error messages.Somebody explain to me how JSF is making life "easy".
There's a lot here.
% -
Systemd unit for Glassfish v4 server
Hi all!
Im trying to set up sytemd unit for glassfish4 web server but I am ending up in failed satate..
Here's what I got:
cat /usr/lib/systemd/system/glassfish.service
[Unit]
Description=GlassFish Server
[Service]
ExecStart=/home/pian/glassfish4/bin/asadmin start-domain
ExecStop=/home/pian/glassfish4/bin/asadmin stop-domain
ExecReload=/home/pian/glassfish4/bin/asadmin restart-domain
Type=forking
TimeoutSec=15min
[Install]
WantedBy=multi-user.target
#systemctl status glassfish.service
* glassfish.service - GlassFish Server
Loaded: loaded (/usr/lib/systemd/system/glassfish.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2015-03-22 14:54:34 UTC; 10min ago
Process: 142 ExecStart=/home/pian/glassfish4/bin/asadmin start-domain (code=exited, status=1/FAILURE)
Mar 22 14:43:32 alarmpi systemd[1]: Starting GlassFish Server...
Mar 22 14:54:34 alarmpi asadmin[142]: Waiting for domain1 to start ................................................................................................................................................
Mar 22 14:54:34 alarmpi asadmin[142]: serverNoStart
Mar 22 14:54:34 alarmpi asadmin[142]: Command start-domain failed.
Mar 22 14:54:34 alarmpi systemd[1]: glassfish.service: control process exited, code=exited status=1
Mar 22 14:54:34 alarmpi systemd[1]: Failed to start GlassFish Server.
Mar 22 14:54:34 alarmpi systemd[1]: Unit glassfish.service entered failed state.
Mar 22 14:54:34 alarmpi systemd[1]: glassfish.service failed.
glassfish's log file
[2015-03-22T15:08:25.078+0000] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427036905078] [levelValue: 800] [[
JVM invocation command line:
/usr/lib/jvm/java-8-openjdk/bin/java
-cp
/home/pian/glassfish4/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/home/pian/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/home/pian/glassfish4/glassfish/domains/domain1/config/cacerts.jks
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/home/pian/glassfish4/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/home/pian/glassfish4/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/home/pian/glassfish4/glassfish/modules/endorsed:/home/pian/glassfish4/glassfish/lib/endorsed
-Djava.security.policy=/home/pian/glassfish4/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/home/pian/glassfish4/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/home/pian/glassfish4/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/home/pian/glassfish4/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
-Dgosh.args=--nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk/lib/ext:/usr/lib/jvm/java-8-openjdk/jre/lib/ext:/home/pian/glassfish4/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/home/pian/glassfish4/glassfish/lib:/usr/java/packages/lib/arm:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/home/pian/glassfish4/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,/home/pian/glassfish4/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
/home/pian/glassfish4/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2015-03-22T15:10:49.758+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037049758] [levelValue: 800] [[
Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]
[2015-03-22T15:10:49.826+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037049826] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2015-03-22T15:10:58.384+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037058384] [levelValue: 800] [[
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:10:58.495+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037058495] [levelValue: 800] [[
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:10:59.986+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037059986] [levelValue: 800] [[
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]
[2015-03-22T15:11:19.304+0000] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427037041041] [timeMillis: 1427037079304] [levelValue: 800] [[
Authorization Service has successfully initialized.]]
[2015-03-22T15:11:34.956+0000] [glassfish 4.1] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427037041041] [timeMillis: 1427037094956] [levelValue: 800] [[
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]
[2015-03-22T15:11:35.020+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037095020] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 1,051ms - bound to [/0.0.0.0:8080]]]
[2015-03-22T15:11:42.794+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037102794] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 60ms - bound to [/0.0.0.0:8181]]]
[2015-03-22T15:11:49.478+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037109478] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 50ms - bound to [/0.0.0.0:4848]]]
[2015-03-22T15:11:53.456+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037113456] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 12ms - bound to [/0.0.0.0:3700]]]
[2015-03-22T15:14:14.999+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037254999] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:15:00.827+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01002] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037300827] [levelValue: 800] [[
Java security manager is disabled.]]
[2015-03-22T15:15:00.842+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01010] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037300842] [levelValue: 800] [[
Entering Security Startup Service.]]
[2015-03-22T15:15:01.135+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01143] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037301135] [levelValue: 800] [[
Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.]]
[2015-03-22T15:15:07.477+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01011] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037307477] [levelValue: 800] [[
Security Service(s) started successfully.]]
[2015-03-22T15:15:35.705+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037335705] [levelValue: 800] [[
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]
[2015-03-22T15:15:36.235+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037336235] [levelValue: 800] [[
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]
[2015-03-22T15:15:36.542+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037336542] [levelValue: 800] [[
Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]
[2015-03-22T15:15:37.531+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037337531] [levelValue: 800] [[
Created virtual server server]]
[2015-03-22T15:15:37.794+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037337794] [levelValue: 800] [[
Created virtual server __asadmin]]
[2015-03-22T15:15:47.942+0000] [glassfish 4.1] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037347942] [levelValue: 800] [[
Setting JAAS app name glassfish-web]]
[2015-03-22T15:15:47.965+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037347965] [levelValue: 800] [[
Virtual server server loaded default web module ]]
[2015-03-22T15:16:31.619+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037391619] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.504+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392504] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.624+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392624] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.740+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392740] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.856+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392856] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.975+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392975] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:33.092+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037393092] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:33.212+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037393212] [levelValue: 800] [[
visiting unvisited references]]
when starting Glassfish from terminal with asadmin start-domain I get this:
$ ./asadmin start-domain
Waiting for domain1 to start ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
serverNoStart
Command start-domain failed.
and this gets logged:
[2015-03-22T15:39:24.132+0000] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427038764132] [levelValue: 800] [[
JVM invocation command line:
/usr/lib/jvm/java-8-openjdk/bin/java
-cp
/home/pian/glassfish4/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/home/pian/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/home/pian/glassfish4/glassfish/domains/domain1/config/cacerts.jks
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/home/pian/glassfish4/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/home/pian/glassfish4/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/home/pian/glassfish4/glassfish/modules/endorsed:/home/pian/glassfish4/glassfish/lib/endorsed
-Djava.security.policy=/home/pian/glassfish4/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/home/pian/glassfish4/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/home/pian/glassfish4/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/home/pian/glassfish4/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
-Dgosh.args=--nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk/lib/ext:/usr/lib/jvm/java-8-openjdk/jre/lib/ext:/home/pian/glassfish4/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/home/pian/glassfish4/glassfish/lib:/usr/java/packages/lib/arm:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/home/pian/glassfish4/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,/home/pian/glassfish4/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
/home/pian/glassfish4/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2015-03-22T15:41:45.525+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427038905525] [levelValue: 800] [[
Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]
[2015-03-22T15:41:45.598+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427038905598] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2015-03-22T15:41:54.578+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038914578] [levelValue: 800] [[
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:41:54.690+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038914690] [levelValue: 800] [[
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:41:56.229+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038916229] [levelValue: 800] [[
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]
[2015-03-22T15:42:16.455+0000] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427038896420] [timeMillis: 1427038936455] [levelValue: 800] [[
Authorization Service has successfully initialized.]]
[2015-03-22T15:42:25.582+0000] [glassfish 4.1] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427038896420] [timeMillis: 1427038945582] [levelValue: 800] [[
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]
[2015-03-22T15:42:43.272+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038963272] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 1,079ms - bound to [/0.0.0.0:8080]]]
[2015-03-22T15:42:49.658+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038969658] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 62ms - bound to [/0.0.0.0:8181]]]
[2015-03-22T15:42:54.264+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038974264] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 41ms - bound to [/0.0.0.0:4848]]]
[2015-03-22T15:42:58.446+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038978446] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 12ms - bound to [/0.0.0.0:3700]]]
[2015-03-22T15:45:23.078+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039123078] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:46:06.032+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01002] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166032] [levelValue: 800] [[
Java security manager is disabled.]]
[2015-03-22T15:46:06.048+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01010] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166048] [levelValue: 800] [[
Entering Security Startup Service.]]
[2015-03-22T15:46:06.359+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01143] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166359] [levelValue: 800] [[
Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.]]
[2015-03-22T15:46:12.625+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01011] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039172625] [levelValue: 800] [[
Security Service(s) started successfully.]]
[2015-03-22T15:46:40.575+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039200575] [levelValue: 800] [[
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]
[2015-03-22T15:46:41.137+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039201137] [levelValue: 800] [[
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]
[2015-03-22T15:46:41.462+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039201462] [levelValue: 800] [[
Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]
[2015-03-22T15:46:42.503+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039202503] [levelValue: 800] [[
Created virtual server server]]
[2015-03-22T15:46:42.788+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039202788] [levelValue: 800] [[
Created virtual server __asadmin]]
[2015-03-22T15:46:52.796+0000] [glassfish 4.1] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039212796] [levelValue: 800] [[
Setting JAAS app name glassfish-web]]
[2015-03-22T15:46:52.815+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039212815] [levelValue: 800] [[
Virtual server server loaded default web module ]]
[2015-03-22T15:47:35.172+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039255172] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.122+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256122] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.245+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256245] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.369+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256369] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.493+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256493] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.619+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256619] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.741+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256741] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.871+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256871] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:49:33.162+0000] [glassfish 4.1] [INFO] [] [org.glassfish.jersey.server.ApplicationHandler] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039373162] [levelValue: 800] [[
Initiating Jersey application, version Jersey: 2.10.4 2014-08-08 15:09:00...]]
[2015-03-22T15:50:26.435+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039426435] [levelValue: 800] [[
Loading application [service] at [/service]]]
[2015-03-22T15:50:26.502+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00022] [javax.enterprise.system.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039426502] [levelValue: 800] [[
Loading application service done in 486,416 ms]]
[2015-03-22T15:50:26.554+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00017] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427039426554] [levelValue: 800] [[
GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (127,555ms), startup services(530,277ms), total(657,832ms)]]
[2015-03-22T15:50:51.956+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00024] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039451956] [levelValue: 800] [[
Creating a SecureRMIServerSocketFactory @ 0.0.0.0 with ssl config = GlassFishConfigBean.org.glassfish.grizzly.config.dom.Ssl]]
[2015-03-22T15:50:52.232+0000] [glassfish 4.1] [WARNING] [NCLS-JMX-00020] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039452232] [levelValue: 900] [[
All SSL cipher suites disabled for network-listener(s). Using SSL implementation specific defaults]]
[2015-03-22T15:50:52.223+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=59 _ThreadName=Thread-8] [timeMillis: 1427039452223] [levelValue: 800] [[
SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@1a7d45]]
[2015-03-22T15:50:53.861+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=59 _ThreadName=Thread-8] [timeMillis: 1427039453861] [levelValue: 800] [[
SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@1a7d45]]
[2015-03-22T15:50:53.870+0000] [glassfish 4.1] [WARNING] [NCLS-JMX-00020] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039453870] [levelValue: 900] [[
All SSL cipher suites disabled for network-listener(s). Using SSL implementation specific defaults]]
right now, glassfish is started, but when accessing deployed application's URL (it's REST web service) I get resource not available.
after a while sevice get's available and this is appended into the log:
[2015-03-22T15:51:01.140+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00025] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039461140] [levelValue: 800] [[
SSLServerSocket /0.0.0.0:8686 and [SSL: ServerSocket[addr=/0.0.0.0,localport=8686]] created]]
[2015-03-22T15:51:08.236+0000] [glassfish 4.1] [INFO] [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427039468236] [levelValue: 800] [[
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@5a060f as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@ec523c.]]
[2015-03-22T15:52:03.697+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00005] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039523697] [levelValue: 800] [[
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://alarmpi:8686/jndi/rmi://alarmpi:8686/jmxrmi]]
[2015-03-22T15:53:19.225+0000] [glassfish 4.1] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=25 _ThreadName=http-listener-1(4)] [timeMillis: 1427039599225] [levelValue: 800] [[
HV000001: Hibernate Validator 5.0.0.Final]]
[2015-03-22T15:53:30.219+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=25 _ThreadName=Thread-8] [timeMillis: 1427039610219] [levelValue: 800] [[
[EL Info]: 2015-03-22 15:53:30.062--ServerSession(32742320)--EclipseLink, version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd]]
[2015-03-22T15:53:34.081+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=25 _ThreadName=Thread-8] [timeMillis: 1427039614081] [levelValue: 800] [[
[EL Info]: connection: 2015-03-22 15:53:34.067--ServerSession(32742320)--file:/home/pian/glassfish4/glassfish/domains/domain1/applications/service/WEB-INF/classes/_serviceUnit login successful]]
So can you, please, help me understand what is happening and what I need to do to correctly start glassfish's domain with deployed application in it via systemd?
Thank you!
Last edited by greengold (2015-03-22 16:10:33)I suggest you create a dedicated user for your calibre service and not run it as root (User=, Group=). I'm not so sure running that code mess as root.
Edit: Or if you want the server to run only when your user is logged in, then create it in the systemd user session.
Last edited by progandy (2015-01-18 23:56:03) -
Problem to send a message with JMS
Hi
I'm doing some tests with the api JMS to know how works. I have got some problems. I have been looking for some information but i don't find so much. I have got too doubts.
I am usinng Netbeans 5.5 with Sun Java System Application Server Platform Edition 9.0_01 (build b14).
I am trying to do it with ejb. Because in the future the application can have got so many connection in the same time.
The server shows me the next errors.
Starting Sun Java System Application Server Platform Edition 9.0_01 (build b14) ...
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_03] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
ADM0001:MBeanServer initialized successfully
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
sgmt.service_initialized
DPL5400:Exception occurred : error in opening zip file.
ADM1079: Initialization of AMX MBeans successful
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://t1:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
JTS5014: Recoverable JTS instance, serverId = [3700]
About to load the system app: MEjbApp
LDR5010: All ejb(s) of [MEjbApp] loaded successfully!
About to load the system app: __ejb_container_timer_app
EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]
LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!
NAM0008 : Invalid Destination: jndi/Topic for java:comp/env/jms/Topic
EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]]
appId=Chat-ejb moduleName=Chat-ejb ejbName=publicarBean
LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:485)
at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:2628)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:629)
at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:163)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:515)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:490)
at com.sun.enterprise.server.EJBModuleLoader.load(EJBModuleLoader.java:158)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:198)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
Caused by: javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:469)
... 17 more
CORE5021: Application NOT loaded: [Chat-ejb]
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at [/]
WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [/web1]
WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [/asadmin]
WEB0100: Loading web module [amserver] in virtual server [server] at [/amserver]
Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context ''
Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context ''
Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/asadmin'
Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/asadmin'
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
About to load the system app: __JWSappclients
WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [/__JWSappclients]
Using MQ RA for Broker lifecycle control
JMS Service Connection URL is :mq://t1:7676/
MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...
EB-start:brokerProps={imq.instancename=imqbroker, imq.jmx.rmiregistry.port=8686, BrokerArgs=-port 7676 -name imqbroker -imqhome D:\Sun\AppServer\imq\bin\.. -varhome D:/sun/AppServer/domains/domain1\imq -useRmiRegistry -rmiRegistryPort 8686, imq.jmx.rmiregistry.use=true, imq.portmapper.port=7676}
[07/nov/2007:18:35:03 CET]
================================================================================
Sun Java(tm) System Message Queue 4.0
Sun Microsystems, Inc.
Version: 4.0 (Build 27-a)
Compile: Thu 03/02/2006
Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
This product includes code licensed from RSA Data Security.
================================================================================
Java Runtime: 1.6.0_03 Sun Microsystems Inc. D:\sun\Java\jdk1.6.0_03\jre
[07/nov/2007:18:35:03 CET] IMQ_HOME=D:\sun\AppServer\imq
[07/nov/2007:18:35:03 CET] IMQ_VARHOME=D:\sun\AppServer\domains\domain1\imq
[07/nov/2007:18:35:03 CET] Windows XP 5.1 x86 t1 (1 cpu) pepepc
[07/nov/2007:18:35:03 CET] Java Heap Size: max=506816k, current=46944k
[07/nov/2007:18:35:03 CET] Arguments: -port 7676 -name imqbroker -imqhome D:\Sun\AppServer\imq\bin\.. -varhome D:/sun/AppServer/domains/domain1\imq -useRmiRegistry -rmiRegistryPort 8686
[07/nov/2007:18:35:04 CET] [B1060]: Loading persistent data...
[07/nov/2007:18:35:04 CET] Using built-in file-based persistent store: D:\sun\AppServer\domains\domain1\imq\instances\imqbroker\
[07/nov/2007:18:35:04 CET] [B1189]: Cluster Service feature is not available
[07/nov/2007:18:35:04 CET] [B1039]: Broker "imqbroker@t1:7676" ready.
MQJMSRA_EB1101: run:EMBEDDED broker started with code =0
MQJMSRA_RA1101: SJSMQ JMS ResourceAdaapter configuration=
raUID =null
brokerType =EMBEDDED
brokerInstanceName =imqbroker
brokerBindAddress =null
brokerPort =7676
brokerHomeDir =D:\Sun\AppServer\imq\bin\..
brokerVarDir =D:/sun/AppServer/domains/domain1\imq
brokerJavaDir =D:/sun/Java/jdk1.6.0_03
brokerArgs =null
brokerStartTimeout =60000
adminUsername =admin
adminPassFile =E:\tempWin\asmq21980.tmp
useJNDIRmiServiceURL =true
rmiRegistryPort =8686
startRmiRegistry =false
useSSLJMXConnector =true
brokerEnableHA =false
clusterId =null
brokerId =null
jmxServiceURL =null
dbType =null
dbProps ={}
dsProps ={}
ConnectionURL =
UserName =guest
ReconnectEnabled =true
ReconnectInterval =5000
ReconnectAttempts =3
AddressListBehavior =RANDOM
AddressListIterations =3
InAppClientContainer =false
InClusteredContainer =false
GroupName =null
MQJMSRA_RA1101: start:SJSMQ JMSRA Connection Factory Config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=guest, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=guest, imqReconnectEnabled=false, imqConnectionFlowCount=100, imqAddressListBehavior=PRIORITY, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, imqSSLIsHostTrusted=false, imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}
MQJMSRA_RA1101: SJSMQ JMSRA Started
endpoint.determine.destinationtype
NAM0008 : Invalid Destination: jndi/Topic for java:comp/env/jms/Topic
EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]]
appId=Chat moduleName=Chat-ejb_jar ejbName=publicarBean
LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:485)
at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:2628)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:629)
at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:163)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:515)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:490)
at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:184)
at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:113)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:204)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
Caused by: javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:469)
... 18 more
Registering ad hoc servlet: WebPathPath: context root = "/Chat", path = "/Chat-app-client'
Java Web Start services started for application com.sun.enterprise.appclient.jws.ApplicationContentOrigin@aabc2d registration name=Chat
[email protected]56b4 registration name=Chat, context root=/Chat/Chat-app-client, module name=
, parent=Chat
CORE5021: Application NOT loaded: [Chat]
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
JBISE6013: JavaEEServiceEngine : Java EE Service Engine started successfully.
CORE5024: EJB module [Chat-ejb] unloaded successfully!
DeployedItemRef postDeregistration failed. Load Balancer Monitoring MBeans might be lying around if this application is being load balanced
BPEL service engine started
ADM1064:The upload file at [E:\tempWin\s1astempdomain1server-162970426\Chat-ejb.jar] exists and will be overwritten.
ADM1006:Uploading the file to:[E:\tempWin\s1astempdomain1server-162970426\Chat-ejb.jar]
deployed with moduleid = Chat-ejb
ADM1041:Sent the event to instance:[ModuleDeployEvent -- enable ejb/Chat-ejb]
endpoint.determine.destinationtype
NAM0008 : Invalid Destination: jndi/Topic for java:comp/env/jms/Topic
EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]]
appId=Chat-ejb moduleName=D__sun_AppServer_domains_domain1_applications_j2ee-modules_Chat-ejb ejbName=publicarBean
LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:485)
at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:2628)
at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:629)
at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:163)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:515)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:490)
at com.sun.enterprise.server.EJBModuleLoader.load(EJBModuleLoader.java:158)
at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:219)
at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:174)
at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:406)
at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleEnabled(StandAloneEJBModulesManager.java:500)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:960)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:469)
... 54 more
CORE5020: Error while loading ejb module
{code}
I know it is very large. I think the error it is in this line.
{code}
NAM0008 : Invalid Destination: jndi/Topic for java:comp/env/jms/Topic
EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException]]
{code}
also I am going to put the code.
file PublicarBean.java
{code}
package org.pepes;
import com.sun.tools.ws.processor.model.java.JavaArrayType;
import javax.annotation.Resource;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
import javax.jms.ConnectionFactory;
import javax.jms.QueueConnectionFactory;
import javax.jms.Topic;
import javax.naming.NamingException;
* @author pepes
@Stateless(mappedName="ejb/publicar")
public class publicarBean implements org.pepes.publicarRemote {
/** Creates a new instance of publicarBean */
@Resource(name="jms/QueueConnectionFactory")
private QueueConnectionFactory connectionFactory;
@Resource(name="jms/Topic", mappedName="jndi/Topic")
private Topic topic;
private javax.naming.InitialContext ctx;
public publicarBean() {
public void creaMensaje() throws javax.naming.NamingException , javax.jms.JMSException {
try {
javax.naming.InitialContext ctx = new javax.naming.InitialContext();
this.connectionFactory = (javax.jms.QueueConnectionFactory)ctx.lookup("jms/QueueConnectionFactory");
this.topic = (javax.jms.Topic)ctx.lookup("jms/Topic");
javax.jms.Connection connection = this.connectionFactory.createConnection();
javax.jms.TopicSession ts = (javax.jms.TopicSession)connection.createSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
javax.jms.TopicPublisher tp = ts.createPublisher(this.topic);
javax.jms.TextMessage msg = ts.createTextMessage();
for (int i = 0; i<3;i++) {
msg.setText("Prueba: " + i);
tp.publish(msg);
catch (javax.jms.JMSException jmex) {
throw jmex;
{code}
the file publicarRemote.java
{code}
package org.pepes;
import javax.ejb.Remote;
* This is the business interface for publicar enterprise bean.
@Remote
public interface publicarRemote {
public void creaMensaje() throws javax.naming.NamingException , javax.jms.JMSException;
{code}
file mensaje.java
{code}
package org.pepes;
import javax.annotation.Resource;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.MessageDrivenContext;
import javax.jms.Message;
import javax.jms.MessageListener;
* Entity class Mensaje
* @author pepes
@MessageDriven(mappedName = "jms/Mensaje", activationConfig = {
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
public class Mensaje implements MessageListener {
/** Creates a new instance of Mensaje */
@Resource
private MessageDrivenContext mdc;
public Mensaje() {
public void onMessage(Message message) {
javax.jms.TextMessage msg = null;
try {
if (message instanceof javax.jms.TextMessage) {
msg = (javax.jms.TextMessage) message;
System.out.println(msg.getText());
} else {
System.out.println("Message of wrong type: "
+ message.getClass().getName());
} catch (javax.jms.JMSException e) {
e.printStackTrace();
mdc.setRollbackOnly();
} catch (Throwable te) {
te.printStackTrace();
{code}
the file prueba.jsp
{code}
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
<%
try {
javax.naming.InitialContext ctx = new javax.naming.InitialContext();
org.pepes.publicarRemote publisher = (org.pepes.publicarRemote)ctx.lookup("ejb/publicar");
if (publisher==null) {
System.out.println("INFO: Es null");
else {
System.out.println("INFO: No es null");
publisher.creaMensaje();
} catch (javax.naming.NamingException ex) {
System.out.println("ERROR naming: " + ex.getMessage());
catch (javax.jms.JMSException jmex) {
System.out.println("ERROR jms: " + jmex.getMessage());
catch (java.lang.NullPointerException nullex) {
System.out.println("ERROR null: " + nullex.getMessage());
%>
</body>
</html>
{code}
I think the problem is because i don't put destination address. if it is so, the true where do I put this address?. if not where is the problem?
I hope your help.
Thanks you in advanced.Hi,
Did you create your destinations in your application server? It seems that the destinations such as topics and queues are not created. First you should create them and then start using them.
For example, in here, it says that jndi/Topic is not valid. To check if the destinations are valid or not; you can do it either through the graphical user interface or the command line console. -
Unable to open web service tester page
Hi
I'm three days trying to resolve this problem. I 'dont find a solution. I'm using ejb3.0 and web service. When I test the the application show me the messages Unable to open web service tester page. The application server is start up.
I'm trying this example. http://www.netbeans.org/download/flash/platform_55/platform_ws/
When I try to deploy the application show me this error.
C:/Sun/AppServer/jdk\bin\java
-client
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
-Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/javadb/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.configName=server-config
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/AppServer/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/imq/lib/imqxm.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
-Dcom.sun.aas.classloader.serverClassPath=C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;C:\Archivos de programa\subversion-1.3.2\;C:\Archivos de programa\Subversion\bin;C:\Archivos de programa\QuickTime\QTSystem\;;;
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.installRoot=C:/Sun/AppServer
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-cp
;C:/Sun/AppServer/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start|#]
Starting Sun Java System Application Server Platform Edition 9.0 (build b48) ...
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_06] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
ADM0001:MBeanServer initialized successfully
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
sgmt.service_initialized
ADM1079: Initialization of AMX MBeans successful
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://dani:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
autoDeployment status dir missing, creating a new one
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications\MEjbApp.ear for autodeployment.
deployed with moduleid = MEjbApp
[AutoDeploy] Successfully autodeployed : C:\Sun\AppServer\lib\install\applications\MEjbApp.ear.
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications\__ejb_container_timer_app.ear for autodeployment.
deployed with moduleid = __ejb_container_timer_app
[AutoDeploy] Successfully autodeployed : C:\Sun\AppServer\lib\install\applications\__ejb_container_timer_app.ear.
[AutoDeploy] Selecting file C:\Sun\AppServer\lib\install\applications\__JWSappclients.ear for autodeployment.
deployed with moduleid = __JWSappclients
[AutoDeploy] Successfully autodeployed : C:\Sun\AppServer\lib\install\applications\__JWSappclients.ear.
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at [/]
WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [/web1]
WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [/asadmin]
Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/asadmin'
Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/asadmin'
Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context ''
Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context ''
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
About to load the system app: __JWSappclients
WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [/__JWSappclients]
sending notification to server...server
CORE5051: Shutting down all J2EE applications ...
CORE 5060 : Stopping all J2EE Connector 1.5 Compliant resource adapters ...
CORE 5061 : Resource adapters Stop() Complete
CORE5052: Application shutdown complete.
[AutoDeploy] Disabling AutoDeployment service.
WEB0303: Stopping Sun-Java-System/Application-Server.
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0713: Stopping Sun-Java-System/Application-Server HTTP/1.1 on 4848
Waiting for 1 instance(s) to be deallocated
Waiting for 1 instance(s) to be deallocated
Waiting for 1 instance(s) to be deallocated
C:/Sun/AppServer/jdk\bin\java
-client
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
-Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/javadb/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.configName=server-config
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/AppServer/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/imq/lib/imqxm.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
-Dcom.sun.aas.classloader.serverClassPath=C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;C:\Archivos de programa\subversion-1.3.2\;C:\Archivos de programa\Subversion\bin;C:\Archivos de programa\QuickTime\QTSystem\;;;
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.installRoot=C:/Sun/AppServer
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=C:\Sun\AppServer\domains\domain1\lib\mysql-connector-java-3.1.12-bin.jar
-Dcom.sun.aas.ServerClassPath=
-cp
;C:/Sun/AppServer/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start|#]
Starting Sun Java System Application Server Platform Edition 9.0 (build b48) ...
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_06] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
ADM0001:MBeanServer initialized successfully
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
sgmt.service_initialized
ADM1079: Initialization of AMX MBeans successful
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://dani:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
SMGT0007: Self Management Rules service is enabled
Application server startup complete.
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at [/]
WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [/web1]
WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [/asadmin]
Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/asadmin'
Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/asadmin'
Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context ''
Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context ''
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
About to load the system app: __JWSappclients
WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [/__JWSappclients]
ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-added jdbc/aae]
CORE5004: Resource Deployed: [jdbc:aae].
wsgen successful
DPL5306:Servlet Web Service Endpoint [AAEWebService] listening at address [http://dani:8080/WebAAEstates/AAEWebServiceService]
deployed with moduleid = WebAAEstates
WEB0100: Loading web module [WebAAEstates] in virtual server [server] at [/WebAAEstates]
naming.bind
topLink_version
application_server_name_and_version
login_successful
Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/WebAAEstates'
Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/WebAAEstates'
exception caught
javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:291)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:265)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:108)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]
Servlet web service endpoint 'AAEWebService' failure
java.lang.RuntimeException: javax.naming.NameNotFoundException
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:291)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:265)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:108)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:43)
... 34 more
|#]
StandardWrapperValve[AAEWebService]: Allocate exception for servlet AAEWebService
javax.servlet.ServletException
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:273)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:108)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.lang.RuntimeException: javax.naming.NameNotFoundException
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:291)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:265)
... 26 more
Caused by: javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:43)
... 34 more
|#]
exception caught
javax.naming.NameNotFoundException
at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:255)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:178)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:61)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:98)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:309)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:291)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:265)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:108)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]
Servlet web service endpoint 'AAEWebService' failure
java.lang.RuntimeException: javax.naming.NameNotFoundException
at org.aae.jose.bd.AAEWebService.<init>(AAEWebService.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newIn  Hello,
you can check it at GlassFish Admin console (usually running on port 4848).
You need to log on to Admin console with the (default) or changed password (depends if you changed it during installation).
There you could see your web service deployed (usually in the "folder" Web services).
If you can see it you should see also wsdl - for your web service.
link:
http://developers.sun.com/appserver/reference/techart/ws_mgmt.html
Regards,
Miro
Maybe you are looking for
-
I think this is some glitch, perhaps OS related or something in AE. I have been slowly color correcting this project for the last several hours and everything has been working just fine. I change a value and a keyframe is make and the image on the sc
-
Hello folks We are planning to implement MDM for rich product catalogue for a customer; the latter already has SAP DMS (Document Management System from SAP ERP) where the product image files are stored on a SAP Content Server. Can we leave the images
-
Hi Guru's we are planning to move our essbase cube from windows 2003 to aix machine. i have few questions in my mind. If anybody can help then that will be great what challenge do we face performance wise . is performance of hyperion better in AIX th
-
Please answer it
-
I recently bought an i phone 4 but I can't set up a talktalk email Account, am I doing something wrong or is it not possible, has any actually set one up