[Beginners Corner] - Error while running jboss-5.0.0.CR2 "Socket bind failed: In
by cheema
Hi,
I've just started out with jboss. I'm using jboss on Fedora 9, jdk1.6. Apparently the jboss doesn't boot up properly after running "run.sh".
The server.log shows up the following error message:
2008-09-28 20:58:02,415 ERROR [org.apache.coyote.http11.Http11AprProtocol] (main) Error starting endpoint
java.lang.Exception: Socket bind failed: [22] Invalid argument
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:609)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:693)
at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
at org.apache.catalina.connector.Connector.start(Connector.java:1102)
at org.jboss.web.tomcat.service.deployers.TomcatService.startConnectors(TomcatService.java:354)
at org.jboss.web.tomcat.service.deployers.TomcatService.handleNotification(TomcatService.java:391)
Any help would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179233#4179233
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179233
17 years, 6 months
[EJB 3.0] - Steless Session bean as Webservice
by dasariprasad
i wrote one Stateless bean like
( in mustang version and jboss5.0.0 CR2)
SimpleWS.java (interface)
|
| @WebService
| @SOAPBinding(style=Style.RPC)
| public interface SimpleWS extends Remote
| {
| @WebMethod
| public String greet(String person)
| throws RemoteException;
| }
|
| SimpleWSBean.java
|
| @Stateless
| @Remote(SimpleWS.class)
| @WebService(endpointInterface="com.htc.htcws.SimpleWS")
| @SOAPBinding(style=SOAPBinding.Style.RPC)
| public class SimpleWSBean implements SimpleWS
| {
| @WebMethod
| public String greet(String person)
| {
| return "Hi "+person+" all Good Wishes for Tamil New Year's Day";
| }
|
| }
| and deployed success fully
|
| but when i run client like
| SimpleWSClient.java
| public class SimpleWSClient
| {
| static Logger logger;
|
| public static void main(String[] args)
| {
| final String _NAMESPACE = "http://htcws.htc.com/";
| final String _SERVICE = "SimpleWSBeanService";
|
|
| try
| {
| logger = Logger.getRootLogger();
| logger.addAppender(new FileAppender(new HTMLLayout(),
| "mylog1.log",true));
|
|
| URL url =
| new URL("http://127.0.0.1:10080/simpws/SimpleWSBean?WSDL");
|
| QName qName = new QName(_NAMESPACE,_SERVICE);
| if(args.length!=1)
|
| {
| System.out.print("Give the person-name as args[0]");
| System.exit(1);
| }
|
|
|
| ServiceFactory sFactory = ServiceFactory.newInstance();
|
| Service service = sFactory.createService(url,qName);
|
| System.out.println(".."+service);
|
|
|
| SimpleWS invoker =
| (SimpleWS)service.getPort(SimpleWS.class);
| System.out.println("##"+invoker);
|
| String res = invoker.greet(args[0]);
|
| System.out.println("Response is::"+res);
| }
| catch(Exception ex)
| {
| System.err.println("Caught the exception as"+ex);
| }
| }
|
| }
|
| i am getting the error
|
| [java] ..org.jboss.ws.core.jaxrpc.client.ServiceImpl@1a62c31
| [java] ##org.jboss.ws.core.jaxrpc.client.CallImpl@3020ad
| [java] Caught the exception asjava.rmi.RemoteException: Call invocation failed; nested exception is:
| [java] java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
|
|
| same i could able to run with tiger version and jboss422 with no problem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179221#4179221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179221
17 years, 7 months
[JBoss Portal] - Re: Quick Start - Quick Fail
by uymaz
Hi Thomas,
sorry for my temper with the initial post. I was overstressed obviously..
I really do not if it is the portal or the application server that fails. I get localhost:8080 fine but not /portal.
console had many debug and error level messages. Some errors from jboss-portal-2.6.6.GA\server\default\log\server
--------------------------------------
2008-09-28 10:44:54,718 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/
org.jboss.deployment.DeploymentException: TX TYPE was null for: Required; - nested throwable: (java.lang.RuntimeException: TX TYPE was null for: Required)
2008-09-28 10:45:05,843 ERROR [STDERR] org.jboss.mx.util.MBeanProxyCreationException: Object name portal:service=ListenerRegistry not found: javax.management.InstanceNotFoundException: portal:service=ListenerRegistry is not registered.
2008-09-28 10:45:05,843 ERROR [STDERR] at org.jboss.mx.util.JMXInvocationHandler.(JMXInvocationHandler.java:163)
2008-09-28 10:45:05,843 ERROR [STDERR] at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
2008-09-28 10:45:11,265 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/portal-hsqldb-ds.xml
org.jboss.deployment.DeploymentException: create operation failed for package file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/portal-hsqldb-ds.xml; - nested throwable: (javax.management.InstanceNotFoundException: portal:service=Hibernate,type=WSRPConsumer is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2008-09-28 10:45:11,390 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@403058eb { url=file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/jboss-portal.sar/portal-aop.xml }
deployer: org.jboss.aop.deployment.AspectDeployer@694f12
status: Created
state: CREATED
watch: file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/jboss-portal.sar/portal-aop.xml
altDD: null
lastDeployed: 1222587888687
lastModified: 1222587888687
mbeans:
org.jboss.deployment.DeploymentInfo@d818c2dc { url=file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/jboss-portal.sar/portal-admin.sar/lib/portal-faces-loader-lib.jar }
deployer: org.jboss.deployment.JARDeployer@b4e29b
status: Created
state: CREATED
watch: file:/K:/Work/JBoss/jboss-portal-2.6.6.GA/server/default/deploy/jboss-portal.sar/portal-admin.sar/lib/portal-faces-loader-lib.jar
altDD: null
lastDeployed: 1222587888750
lastModified: 1222587888718
mbeans:
.....
2008-09-28 10:49:49,140 ERROR [org.jboss.portal.server.servlet.PortalServlet] Cannot get portal server
org.jboss.mx.util.MBeanProxyCreationException: Object name portal:service=Server not found: javax.management.InstanceNotFoundException: portal:service=Server is not registered.
at org.jboss.mx.util.JMXInvocationHandler.(JMXInvocationHandler.java:163)
at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78)
at
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179220#4179220
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179220
17 years, 7 months