Forum LAMS for Tech-Heads - General Forum: LAMS 2 problem


 
You may request notification for LAMS 2 problem.
Search: 

1: LAMS 2 problem
11/22/06 08:44 PM
[ Reply | Forward ]
Hi,

I faced a strange problem on LAMS 2. When I start LAMS, I cannot access the login page, it shows Page Cannot Be Found error. I checked the service, it shows lams2 running. I checked lams's log file, I found the error message as fowllowing:

INFO  | jvm 1    | 2006/11/23 10:33:10 | 10:33:10,697 ERROR [NamingService] Starting failed jboss:service=Naming
INFO  | jvm 1    | 2006/11/23 10:33:10 | java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
INFO  | jvm 1    | 2006/11/23 10:33:10 |     java.net.BindException: Address already in use: JVM_Bind
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:249)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:184)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:293)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:256)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jnp.server.Main.initJnpInvoker(Main.java:299)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jnp.server.Main.start(Main.java:262)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.naming.NamingService.startService(NamingService.java:221)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.lang.reflect.Method.invoke(Method.java:585)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at $Proxy0.start(Unknown Source)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.ServiceController.start(ServiceController.java:418)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.ServiceController.start(ServiceController.java:440)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.lang.reflect.Method.invoke(Method.java:585)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at $Proxy4.start(Unknown Source)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.lang.reflect.Method.invoke(Method.java:585)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at $Proxy5.deploy(Unknown Source)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.Main.boot(Main.java:195)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.Main$1.run(Main.java:463)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.lang.Thread.run(Thread.java:595)
INFO  | jvm 1    | 2006/11/23 10:33:10 | Caused by: java.net.BindException: Address already in use: JVM_Bind
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.net.PlainSocketImpl.socketBind(Native Method)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.net.ServerSocket.bind(ServerSocket.java:319)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at java.net.ServerSocket.<init>(ServerSocket.java:185)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at org.jboss.net.sockets.DefaultSocketFactory.createServerSocket(DefaultSocketFactory.java:86)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:622)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:237)
INFO  | jvm 1    | 2006/11/23 10:33:10 |     ... 61 more

What is the port 1098 used for? What should I do? I tried to reinstall lams2, same error.

Thanks for help!

Chen

Posted by Rui Chen

2: Re: LAMS 2 problem
In response to 1 11/22/06 08:49 PM
[ Reply | Forward ]
Another app must be using port 1098. Is it possible you have an instance of LAMS still running?

Posted by Jun-Dir Liew

3: Re: Re: LAMS 2 problem
In response to 2 11/22/06 09:05 PM
[ Reply | Forward ]
I uninstall it first. any way to find out which application use this port?

Posted by Rui Chen

4: Re: Re: Re: LAMS 2 problem
In response to 3 11/22/06 09:33 PM
[ Reply | Forward ]
There's freeware called Active Ports for Windows that does this -

http://www.download.com/3000-2085-10062969.html

Posted by Jun-Dir Liew

5: Re: Re: Re: Re: LAMS 2 problem
In response to 4 11/22/06 10:14 PM
[ Reply | Forward ]
Hi Jun-Dir,

I used Active Ports, I cannot find any application uses port 1098. Then I reboot my PC and restart LAMS 2, it works now. Do you know why?

Anyway thanks for your help.

I have a problem on lams web service here. Do you mind give me some suggestions? Thanks in advance.

I use j2ee to create the client for LearnignDesignRepositoryService. everything is fine, I can invoke the service and get the string. But when I move the code into my building blocks it doesn't work. I got this error:

org.apache.axis.Message

java.lang.ClassCastException: org.apache.axis.Message
    at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:248)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:341)
    at lams2ws.LearningDesignRepository_Stub.getLearningDesigns(LearningDesignRepository_Stub.java:77)
    at org.lamsfoundation.ld.integration.blackboard.LamsServiceUtil.getLDs(LamsServiceUtil.java:72)
    at org.apache.jsp.modules.create_jsp._jspService(create_jsp.java:129)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
    at blackboard.platform.servlet.ContentTypeFilter.doFilter(ContentTypeFilter.java:56)
    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.security.SecurityUtil$1.run(SecurityUtil.java:239)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
    at blackboard.platform.servlet.RequestSessionFilter.handleRequest(RequestSessionFilter.java:266)
    at blackboard.platform.servlet.RequestSessionFilter.doFilter(RequestSessionFilter.java:115)
    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.security.SecurityUtil$1.run(SecurityUtil.java:239)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:183)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)

Do you know what's wrong?

Regards,

Chen

Posted by Rui Chen

6: Re: Re: Re: Re: Re: LAMS 2 problem
In response to 5 11/23/06 05:18 PM
[ Reply | Forward ]
I've found that Skype sometimes occupies port 80, when that happens I can't start Apache running on port 80. Perhaps something similar happened to you?

I'm not sure I can help much with your integration code as I'm not familiar with that part of the code. Sorry, can't offer anything off the top of my head. Have you checked if the request was received on the LAMS side? Or what was returned if it was?

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: Re: Re: LAMS 2 problem
In response to 6 11/23/06 07:18 PM
[ Reply | Forward ]
This morning I found Skype uses port 1098 & 1099. I'll start skype after launching LAMS2. Thanks.

It's OK. I'll try to find out the reason. I appreciate all the helps you give to me.


Cheers,

Chen

Posted by Rui Chen

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum