[JBossWS] - Re: Writing a client - no examples for BindingProvider based
by alessio.soldano@jboss.com
"mjhammel" wrote :
| Then I discovered that the source was actually JBOSS-WS from http://labs.jboss.com/jbossws/downloads/. My first questions, then, are this: isn't WS included in the application server? Do I need to download the WS binary and add it to the JBOSS application server (for V4.2.2GA of the app server)?
|
The application server includes a webservice stack (JBossWS) you can of course use without any further installation. However you would probably want to upgrade the ws stack since JBossWS is released more often than the application server.
anonymous wrote :
| Looking through the examples in the WS source code I cannot find an example that seems to implement the simplistic code shown in the client example here:
| http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools#Cli...
|
Most of the examples use an equivalent generic way of getting the endpoint that is
| Service service = Service.create(wsdlURL, qname);
| MyEndpoint port = (MyEndpoint)service.getPort(MyEndpoint.class);
|
however you can take a look at the org.jboss.test.ws.jaxws.samples.retail sample which also has a @WebServiceClient annotated service class generated through the tools.
anonymous wrote :
| I was hoping it would be as easy as this shows, with the added properties to the BindingProvider for username and password.
|
And it should be that easy. Take a look at the org.jboss.test.ws.jaxws.samples.context sample, it is a real simple test case and uses basic auth.
anonymous wrote :
| I've written this client, but it fails to compile with an error I've not seen in any discussions or in any googled pages:
|
| package wsTestJAXWS;
| |
| | import java.net.URL;
| | import javax.xml.ws.*;
| | import javax.jws.*;
| |
| | /* Web Services interfaces */
| | import com.cei.crunch.server.subscriberservices.*;
| |
| | /* Crunch DB tables. */
| | import com.cei.crunch.ejb.Subscriber;
| |
| | public class wsTestJAXWS {
| |
| | private static URL targetURL = null;
| | private String subscriberID = null;
| | private String pw = null;
| | private String host = null;
| | private String crunchServer = null;
| | private Subscriber profile = null;
| | SubscriberServicesEndpoint ss = null;
| |
| | private boolean serviceBind()
| | {
| | try {
| |
| | SubscriberServicesService service = new SubscriberServicesService();
| | ss = service.getSubscriberServicesPort();
| |
| | /* Set NEW Endpoint Location */
| | BindingProvider bp = (BindingProvider)ss;
| | bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, crunchServer);
| |
| | /* Setup to authenticate with the server. */
| | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, subscriberID);
| | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, pw);
| |
| | return true;
| | }
| | catch (Exception e) {
| | System.out.println("Failed to login to server.");
| | System.exit(1);
| | }
| | return false;
| | }
| |
| | public void run(String[] args) {
| |
| | /* Save the subscriber login information. */
| | if ( args.length != 3 )
| | {
| | System.out.println("Missing command line args (userid, password, server).");
| | System.exit(1);
| | }
| | this.subscriberID = args[0];
| | this.pw = args[1];
| | this.host = args[2];
| |
| | // crunchServer = "https://" + this.host + ":8443/Crunch/services/SubscriberServices";
| | crunchServer = "http://" + this.host + ":8080/Crunch/services/SubscriberServices";
| | System.out.println("Trying to connect to " + crunchServer + " as User: " + subscriberID + ", password: " + pw);
| |
| | /* Get the WSDL interfaces to the server. */
| | if ( serviceBind() == false )
| | {
| | System.out.println("Login failed.");
| | System.exit(1);
| | }
| |
| | /* Retrieve subscriber profile information. */
| | try {
| | profile = ss.findSubscriber("CRUNCH-DEFAULT-SUPERUSER");
| | }
| | catch (Exception e) {
| | System.out.println("Failed findSubscriber(): " + e.getMessage());
| | e.printStackTrace();
| | System.exit(1);
| | }
| | if ( profile == null )
| | {
| | System.out.println("findSubscriber() failed.");
| | System.exit(1);
| | }
| |
| | System.out.println("Subscriber name : " + profile.getFirstname());
| | System.out.println("Subscriber email: " + profile.getEmailAddress());
| | }
| |
| | public static void main(String[] args) {
| | new wsTestJAXWS().run(args);
| | }
| |
| | }
|
| The compile time error is this:
|
| -client.test:
| | [javac] Compiling 1 source file to /home/mjhammel/src/cei/crunch/build/classes/client
| | [javac] /home/mjhammel/src/cei/crunch/src/com/cei/crunch/clients/tests/wsTestJAXWS.java:74: cannot access javax.xml.bind.annotation.XmlAccessorType
| | [javac] file javax/xml/bind/annotation/XmlAccessorType.class not found
| | [javac] profile = ss.findSubscriber("CRUNCH-DEFAULT-SUPERUSER");
| | [javac] ^
| | [javac] /home/mjhammel/src/cei/crunch/src/com/cei/crunch/clients/tests/wsTestJAXWS.java:76: cannot access javax.xml.bind.annotation.XmlElement
| | [javac] file javax/xml/bind/annotation/XmlElement.class not found
| | [javac] catch (Exception e) {
| | [javac] ^
| | [javac] 2 errors
|
| I can't find any discussion on what the XmlAccessorType or XmlElement classes are or why they're being referenced at the specified points in my code.
|
| FYI: The SubscriberServicesService class is being generated using wsconsume (http://jbws.dyndns.org/mediawiki/index.php?title=Wsconsume).
|
This seems to me an issue with the libraries in your classpath. Check for example that jaxb-api.jar is in your classpath.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116938#4116938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116938
18 years, 3 months
[JBoss Seam] - Server push
by Cloud
Hello,
Well, i feel to be in the wrong place but JBoss remoting responsible told that it's a Seam subject so here it is : i'm not asking for help here but to make a suggestion / ask for information i have already searched in this forum without success :
Is server push capability planned into the Seam remoting roadmap ?
I just make my first approach of Seam and i read that, for the moment and like the Echo2 framework and also ZK if i remember well, we have a "cyclic server pulling interval" to emulate a push.
But what about a real push capability we are used to name http streaming / comet / bayeux / reverse ajax ?
Some don't manage to, some tried but have strong drawbacks (like people from lazlo), and some others did it beautifully (dwr with tibco, smartclient...)
If it's planned, perfect.
If it's too hard, would it be easier to use DWR directly into Seam ? It's licence is compliant as i know.
By the way, DWR integrates with many external libraries like Struts, JSF, Webwork, Rife and so on. See the section on integration http://getahead.org/dwr/integration
And about reverse Ajax:
Comet, a.k.a. Reverse Ajax (http://getahead.org/dwr/reverse-ajax) in DWR 2.0 needs careful configuration (http://getahead.org/dwr/reverse-ajax/configuration) to work around the various network problems that can arise.
We have enough ressources to have reverse ajax into Seam to my mind.
Except DWR and still with a compliant licence, we have pushlets http://www.pushlets.com/.
Another example is LightStreamer http://www.lightstreamer.com. This one is free but don't have a compliant licence with the one of Seam.
That would be particulary useful into Seam as there are cool things and real needs that you simply can't answer with a push "simulation" which is more a "trick", a "plan B" than a real solution to the concept.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116930#4116930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116930
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: Exception creating identity
by tmerrill
Full stack trace
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /server/jboss
|
| JAVA: java
|
| JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:MaxPermSize=256m -server -Djava.net.preferIPv4Stack=true
|
| CLASSPATH: /server/jboss/bin/run.jar
|
| =========================================================================
|
| 20:58:08,528 INFO [Server] Starting JBoss (MX MicroKernel)...
| 20:58:08,529 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
| 20:58:08,530 INFO [Server] Home Dir: /server/jboss
| 20:58:08,531 INFO [Server] Home URL: file:/server/jboss/
| 20:58:08,531 INFO [Server] Patch URL: null
| 20:58:08,531 INFO [Server] Server Name: vencomm
| 20:58:08,532 INFO [Server] Server Home Dir: /server/jboss/server/vencomm
| 20:58:08,532 INFO [Server] Server Home URL: file:/server/jboss/server/vencomm/
| 20:58:08,532 INFO [Server] Server Log Dir: /server/jboss/server/vencomm/log
| 20:58:08,532 INFO [Server] Server Temp Dir: /server/jboss/server/vencomm/tmp
| 20:58:08,532 INFO [Server] Root Deployment Filename: jboss-service.xml
| 20:58:08,884 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
| 20:58:08,884 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.6.0_03-b05,Sun Microsystems Inc.
| 20:58:08,884 INFO [ServerInfo] OS-System: Linux 2.6.22-14-server,amd64
| 20:58:09,252 INFO [Server] Core system initialized
| 20:58:10,824 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
| 20:58:10,842 ERROR [MainDeployer] Could not create deployment: file:/server/jboss/server/vencomm/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| 20:58:10,848 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 20:58:10,849 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 20:58:10,854 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
|
/etc/hosts/
| 127.0.0.1 localhost fattony
| 65.74.*.* fattony
|
stack trace with Java 1.5 enabled
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /server/jboss
|
| JAVA: java
|
| JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:MaxPermSize=256m -server -Djava.net.preferIPv4Stack=true
|
| CLASSPATH: /server/jboss/bin/run.jar
|
| =========================================================================
|
| 21:23:00,626 INFO [Server] Starting JBoss (MX MicroKernel)...
| 21:23:00,627 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
| 21:23:00,628 INFO [Server] Home Dir: /server/jboss
| 21:23:00,628 INFO [Server] Home URL: file:/server/jboss/
| 21:23:00,629 INFO [Server] Patch URL: null
| 21:23:00,629 INFO [Server] Server Name: vencomm
| 21:23:00,629 INFO [Server] Server Home Dir: /server/jboss/server/vencomm
| 21:23:00,629 INFO [Server] Server Home URL: file:/server/jboss/server/vencomm/
| 21:23:00,629 INFO [Server] Server Log Dir: /server/jboss/server/vencomm/log
| 21:23:00,630 INFO [Server] Server Temp Dir: /server/jboss/server/vencomm/tmp
| 21:23:00,630 INFO [Server] Root Deployment Filename: jboss-service.xml
| 21:23:00,901 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
| 21:23:00,902 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_13-b05,Sun Microsystems Inc.
| 21:23:00,902 INFO [ServerInfo] OS-System: Linux 2.6.22-14-server,amd64
| 21:23:01,196 INFO [Server] Core system initialized
| 21:23:02,665 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
| 21:23:02,685 ERROR [MainDeployer] Could not create deployment: file:/server/jboss/server/vencomm/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.InvocationTargetException
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| ... 36 more
| Caused by: javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| ... 41 more
| Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
| at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| ... 51 more
| Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
| at org.jboss.remoting.ident.Identity.get(Identity.java:211)
| at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
| at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
| at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
| at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
| ... 56 more
| 21:23:02,705 INFO [Server] Runtime shutdown hook called, forceHalt: true
| 21:23:02,705 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
| 21:23:02,710 INFO [Server] Shutdown complete
| Shutdown complete
| Halting VM
|
I am not familiar with setting command line options for jvm. How do I go about doing that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116927#4116927
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116927
18 years, 3 months