[Installation, Configuration & DEPLOYMENT] - Problem with Upgrading from jboss-4.0.2 to jboss-4.2.2.GA
by venummca
We are Upgrading our application from jboss-4.0.2 to jboss-4.2.2.GA
Environment we are using is:
OS: Windows 2000 pro sp4
Server : jboss-4.2.2.GA
JDK:
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
EJB project was deployed successfully
(Its giving one warning like
<wsdl-port> element in webservices.xml not namespace qualified )
But I am facing problems when I am deploying the web projectâ¦.
The error message which server is showing is..
16:44:48,984 ERROR [STDERR] java.lang.ClassCastException: org.jboss.invocation.unified.interfaces.UnifiedInvokerPro
cannot be cast to org.jboss.invocation.Invoker
16:44:49,171 ERROR [STDERR] at org.jboss.invocation.InvocationContext.getInvoker(InvocationContext.java:103)
16:44:49,171 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:22
16:44:49,187 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
16:44:49,187 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
16:44:49,187 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
16:44:49,187 ERROR [STDERR] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
16:44:49,187 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
16:44:49,187 ERROR [STDERR] at $Proxy1345.create(Unknown Source)
Plz , can anybody..help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150094#4150094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150094
18 years, 4 months
[Tomcat, HTTPD, Servlets & JSP] - Re: Problem by using Tomcat (web) to access JBoss (app)
by thomas2008ch
The JSP looks as follow:
| ...
| <%@ page
| import="javax.naming.*,java.text.*,java.util.*,com.wei.chen.ejbs.stateless.*,com.wei.chen.ejbs.entity.*"%>
|
| <%!private Calculator cal = null;
| private NumberFormat nf = null;
|
| public void jspInit() {
| try {
| InitialContext ctx = new InitialContext();
| cal = (Calculator) ctx.lookup("EntityCalculator/remote");
| } catch (Exception e) {
| e.printStackTrace();
| }
|
| nf = NumberFormat.getInstance();
| nf.setMaximumFractionDigits(2);
| }%>
|
| <%
| if ("AddFund".equals(request.getParameter("action"))) {
| cal.addFund(request.getParameter("fundname"), Double
| .parseDouble(request.getParameter("fundrate")));
| }
| %>
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| <title>Insert title here</title>
| </head>
| <body>
| <p>Add a new Fund:<br />
| <form action="addfund.jsp" method="POST">Fund Name : <input
| type="text" name="fundname" value=""> Growth rate : <input
| type="text" name="fundrate" value="0.05"><input type="hidden"
| name="action" value="AddFund"><br />
| <input type="submit" value="Add fund"><INPUT type="button"
| value="Close Window" onClick="window.close()"></form>
| <br />
|
| <%
| Collection <Fund> funds = cal.getFunds();
|
| %>
| ...
|
I get more info for the exception from the CMD-Console as follow:
| javax.naming.NameNotFoundException: Name EntityCalculator is not bound in this C
| ontext
| at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
| at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
| at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.apache.jsp.calculator_jsp.jspInit(calculator_jsp.java:21)
| at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51)
| at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrap
| per.java:159)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
| .java:329)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
| 20)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
| alve.java:233)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
| alve.java:175)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
| ava:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
| ava:102)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
| ve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
| a:263)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
| :844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
| ss(Http11Protocol.java:584)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
| 7)
| at java.lang.Thread.run(Thread.java:595)
| ...
|
That means the stateless session bean "EntityCalculator.java" is not bound successfully from Tomcat to JBoss.
Somebody has experience?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150086#4150086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150086
18 years, 4 months
[EJB/JBoss] - Failed to communicate. Problem during marshalling/unmarshal
by Sarfaraz
Server log:
2008-05-12 12:53:39,760 ERROR [org.jboss.remoting.transport.socket.ServerThread] Worker thread initialization failure
java.io.EOFException
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:530)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Application log:
Caused by: com.pcm.rules.service.RuleServiceException: Error occurred in obtaining the Remote Reference of the Blaze EJB
at com.pcm.rules.service.blaze.BlazeEJBExecutor.getEJBHandle(BlazeEJBExecutor.java:84)
at com.pcm.rules.service.blaze.BlazeEJBExecutor.invokeRuleService(BlazeEJBExecutor.java:53)
... 4 more
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.OptionalDataException
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:175)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy0.create(Unknown Source)
at com.pcm.rules.service.blaze.BlazeEJBExecutor.getEJBHandle(BlazeEJBExecutor.java:82)
... 5 more
Caused by: java.io.OptionalDataException
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:48)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
... 17 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150083#4150083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150083
18 years, 4 months
[Tomcat, HTTPD, Servlets & JSP] - Problem by using Tomcat (web) to access JBoss (app)
by thomas2008ch
Hi all,
I build an application based on "http://trailblazer.demo.jboss.com/EJB3Trail/persistence/index.html", which contains an EJB-project (JAR) and a Web-project (WAR).
If I deploy both on the JBoss server, it runs wonderful.
Now I deploy the web-project, i.e. the WAR to Tomcat Server 6.0. As I run it, I got error/Exception as follow:
| Exception
|
| org.apache.jasper.JasperException: An exception occurred processing JSP page /addfund.jsp at line 46
|
| 43: <br />
| 44:
| 45: <%
| 46: Collection <Fund> funds = cal.getFunds();
| 47:
| 48: %>
| 49:
|
|
| Stacktrace:
| org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
| root cause
|
| java.lang.NullPointerException
| org.apache.jsp.addfund_jsp._jspService(addfund_jsp.java:103)
| org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
The Fund is an Entity Bean.
I am not sure if I have to include more libraries (JARs) in the web-project or should I copy them in the /lib of Tomcat?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150081#4150081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150081
18 years, 4 months