Deployment on websphere
Hi, all,
I have a standard war file, which is fully tested on Tomcat and webLogic. After deployed it on webSphere. I only can read the .html files, .jsp files couldn't be displayed.
The error message in default_server_stdout.log is
... Failed to load servlet: java.lang.ClassCastException: Test
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:148) ...
Anyone has similar problem?
Thanks a lot!
Maggie
PS:
1. WebSphere 4.0.1 Advanced Edition
2. petstore example works fine.
I have exactly the same problem! But unfortunately I have no solution yet. :-( Were you able to solve the issue in the meantime? If so ... I would very much appreciate some help, I am desperate. I de-compiled the class in which the exception occurs, I found that that class tries to cast an instance of my servlet class to the javax.servlet.Servlet interface. This should normally not cause any problems (of course my servlet implements this interface), but nevertheless it generates the exception. My application also works fine in Tomcat, using standard SUN SDK. I also tried to re-compile my application using the IBM SDK shipped with Websphere (including j2ee.jar in lib folder of WebSpere) ... everything still compiled fine, but still it does not work.
HELP!
Similar Messages
-
CMC does not work after deploying to Websphere
Description of Problem or Question:
We have an installation of BO XI R2 SP2 on Tomcat (default installation).
Now we installed Websphere Application Server 6.0 on the same server and deployed BO war files on it.
The existing installation of Infoview & CMC on Tomcat works as it did before.
But, CMC that runs on Websphere does not work.
Product\Version\Service Pack\Fixpack (if applicable):
Business Objects XI R2 - Service Pack 2
Tomcat 5.0.27 (installed by default)
Websphere Application Server 6.0.0.2
Relevant Environment Information (OS & version, java or .net & version, DB & version):
Windows 2003 Server R2, Enterprise Edition, SP2
Sporadic or Consistent (if applicable):
Consistent
Steps to Reproduce (if applicable):
Followed all the steps mentioned in "Deploying on WebSphere" section of "xir2_bip_install_en.pdf"
Deployed the following war files from the following location in the order mentioned with context roots as listed.
C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\java\applications\sp2updates
webcompadapterSP2.war /businessobjects
jsfadminSp2.war /jsfadmin
jsfplatform.war /jsfplatform
adminSP2.war /businessobjects/enterprise115/adminlaunch
desktopSP2.war /businessobjects/enterprise115/desktoplaunch
stylesSP2.war /styles
http://localhost:9080/businessobjects/enterprise115/desktoplaunch
Infoview works as expected.
http://localhost:9080/businessobjects/enterprise115/admin
CMC doesnot work. IE Says "HTTP 500 Internal Server Error".
What has already been tried (where have you searched for a solution to your question/problem):
On searching the web-forums, I found this:
http://www.forumtopics.com/busobj/viewtopic.php?t=112151
So, I tried to install WCA for Websphere. The scenario mentioned in that article deals with new installation of BO.
But, since ours is an existing installation, I cannot install WCA for websphere.
I do not want to re-install BO.
Please advise.
Thanks,
ChrisHi,
The following is the log created when I try to open CMC.
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[wccontroller]: java.lang.NoClassDefFoundError: javax.servlet.http.HttpServletRequestWrapper
at com.ibm.oti.vm.VM.findClassOrNull(Native Method)
at com.ibm.oti.vm.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:633)
at java.lang.ClassLoader.loadClass(ClassLoader.java:635)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:300)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:363)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:635)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:466)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:466)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.businessobjects.enterprise.wca.servlets.WCAControllerServlet.init(Unknown Source)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:165)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:628)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527) -
How to call EJB deployed on websphere from JSP running on Tomcat?
I am trying to establish communication between two app servers. I have a sample EJB deployed on Websphere and wish to call its business methods from a JSP page which is running on Apache Tomcat server. (ie) Tomcat is client to websphere. Is it possible to do? If so, what are the client Jar files of websphere that I should make available to JSP page on Tomcat? Do I need to set any Jars in Tomcat environment variables? Lood forward for your immediate help. Thanks in advance
Please see the thread
http://forum.java.sun.com/thread.jspa?threadID=514536.
Hope that helps.. -
Workspace manual deployment on Websphere 6.1
We installed Hyperion Reporting and Analysis S9. We selected to make Deployment to Application Server MANUAL when we tried to make Workspace deployment on Websphere 6.1
We get the following error:
EJPPC0006E: Portlet and Servlet names must be different within portlet.xml and web.xml.
Any ideas about why we are getting this error and how to fix it?This is a Websphere issue. You might have to install the websphere fix packs for this. Check this out :
http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PK31467 -
Problem Web Services for Identity Manager deployed on WebSphere
Hi, I've a problem with the Web Services. I'm tryng to lunch a JAVA class that execute this called: "http://localhost:9080/idm/servlet/rpcrouter2". This error return me: "No registered SPML handler".
Identity Manager 5.0 sp4 is deployed on WebSphere 5..1
I've just configured the SPML importing the spml.xml file and I've added tha jar package "openspml.jar" to WEB-INF/lib directory. I've also added to the CLASSPATH the link to this jar and the link to WEB-INF\lib.
How can I do??You will have to include the servlet(SPML Handler) in your web.xml.
-
"Closed Connection" occurs too much After deployment on WebSphere
"oracle.adf.controller.faces.lifecycle.Utils buildFacesMessage ADF: Adding the following JSF error message: Closed Connection
java.sql.SQLRecoverableException: Closed Connection"
"Closed Connection" message appears to the user too much after deploying on Websphere. How to disable this message.FYI, I followed the steps listed in Administrator's Guide for Oracle Application Development Framework
at http://docs.oracle.com/cd/E35521_01/admin.111230/e16179/monitor.htm#CHDEGIAH
and that resolved my Closed Connection issue.
3.8.1 How to Configure WebSphere to Allow Reuse of Query Result Sets
WebSphere Application Server closes shared database connections between application generated requests. You need to set two properties in WebSphere to allow reuse of result sets.
Use the WebSphere Application Server administrative console to set the non-transactional datasource and DisableMultiThreadedServletConnectionMgmt properties.
To set properties in WebSphere to reuse results sets:
Start WebSphere Application Server administrative console.
Navigate to Data sources > DB2 Universal JDBC Driver XA DataSource > WebSphere Application Server data source properties and set Non-transactional data source to enabled.
Save the configuration.
Navigate to Application servers > server_name > Web Container > Custom Properties and set DisableMultiThreadedServletConnectionMgmt to true.
Save the configuration.
Restart WebSphere Application Server.
Setting these two properties will enable your deployed application to reuse result sets across requests. -
ServiceUnavailableException from client of an EBJ deployed with WebSphere
Good evening,
I have a very simple stateless EJB deployed under WebSphere and a simple Java program to use it and call a method in it.
I use the following code to get the context :
Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
Context ctx = new InitialContext(parms);
and I get a javax.naming.ServiceUnavailableException ....
Seems that I can't open an initial context with JNDI. the problem is that a servlet using a pool works with the same code as shown here .....
Does anybody can help ??????? It would be great !!!!
Thanks a lot. Pierre-Yves ([email protected])
PS : Stack trace :
javax.naming.ServiceUnavailableException. Root exception is java.lang.ClassCastException: com.sun.corba.se.internal.io.FVDCodeBaseImpl
at com.ibm.rmi.corba.ClientDelegate.getServantIOR(ClientDelegate.java:653)
at com.ibm.rmi.corba.ClientDelegate.getServiceContexts(ClientDelegate.java:305)
at com.ibm.CORBA.iiop.GIOPImpl.createRequest(Unknown Source)
at com.ibm.CORBA.iiop.GIOPImpl.createRequest(Unknown Source)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(Unknown Source)
at com.ibm.CORBA.iiop.InitialNamingClient.resolve(Unknown Source)
at com.ibm.CORBA.iiop.InitialNamingClient.cachedInitialReferences(Unknown Source)
at com.ibm.CORBA.iiop.InitialNamingClient.resolve_initial_references(Unknown Source)
at com.ibm.CORBA.iiop.ORB.resolve_initial_references(Unknown Source)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.initRootContext(CNInitialContextFactory.java:428)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:212)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at ejb.demo.DemoClient.main(ejb/demo/DemoClient.java:41)hi, i am trying to run a cliente EJB, but in the classpath don{t see the next class
error : java.lang.NoClassDefFoundError:
"com.ibm.CORBA.iiop.GlobalORBFactory"
someone can tell me what is the name of the jar that contins this class.
Thanks. -
Getting error while deploying in WebSphere
i developed the Bean file in Weblogic, and when i am trying to deploy that bean class in WebSphere i am getting this error
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.AbstractMethodError: com.orbi.orbicollect.query.beans.EJSRemoteStatelessEWFollowup_7d58f28c.buildEditContactScreen(Ljava/lang/String;Ljava/lang/String;)Ljava/util/HashMap;Check all the dimensions to see if any one of them is enabled for WF. Also, please paste the exact error message that you receive. Have you deployed this app before?
-
How to include page fragment for JSF application deployed on WebSphere?
Hi all,
I have the following urgent JSF problem, I hope that you can support me in solving it;
- I have JSF application need to be deployed on IBM WebSphere 6.0.1 Application Server.
- I have the tag:
<jsp:directive.include file="Actions.jspf"/>
which includes a page fragment.
- This is working file with Tomcat 5.5 & Sun Application Server 9, but it didn't work on WebSphere and each time the page fragment contents rendered as text, I mean that the JSF components in the fragment doesn't converted to html controls.
Please help...
Message was edited by:
AHmadQWe use:
<%@ include file="../WEB-INF/jspf/head.jspf" %>where the head.jspf is a jsp fragment like:
<% response.addHeader("Cache-Control", "no-cache"); %>
<% response.addHeader("Pragma", "no-cache"); %>
<% response.addIntHeader("Expires", -1); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<title><%= pageTitle %></title>
<link href="../style/style.css" rel="stylesheet" type="text/css" />
</head>Cheers,
Illu -
Problem running Java client of EJB deployed on WebSphere
Hi,
I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
I wrote a small Java client program as below.
import java.util.Hashtable;
import HelloJavaHome;
import HelloJava;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.ejb.EJBHome;
import javax.ejb.EJBObject;
public class RemoteConn {
public static void main(String[] ar) throws Exception{
String greeting = "";
try{
Hashtable env = new Hashtable();
//env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
//env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
//env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
System.out.println("Before creating context ");
InitialContext initContext = new InitialContext(env);
System.out.println("Before looking up HelloJavaHome.");
//Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
Object obj = initContext.lookup("ejb/HelloJavaHome");
System.out.println("After lookup javahome.");
HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
HelloJava remote = home.create();
greeting = remote.getGreeting("John");
catch(Exception e){
e.printStackTrace();
System.out.println("Greeting::"+ greeting);
I did not have any problem if I write and run this client from Websphere studio environment..
However its giving lot of compilation and runtime errors when I tried to run from command line.
I could eliminated compilation errors by setting the below jar files in the classpath.
testclient.jar; (client jar of my EJB)
j2ee.jar;
naming.jar;ras.jar;
wsexception.jar;
bootstrap.jar;
namingclient.jar;
websphere.jar;server.jar;
ejbcontainer.jar;
ecutils.jar;
Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at RemoteEJBConn.main(RemoteEJBConn.java:38)
I appreciate if sombody could help me ASAP fixing this problem.
Thanks in advance.Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
Also include idl.jar and ffdc.jar on the classpath -
EJB Deployment in Websphere 5.0 application server
any body please tell,
how to deploy and run stateless session beans in WebSphere application server?I have understood what you mean!!!!!!
But when you would use the App. Developer for development of your application it would be easy to deploy....anyway,
look at http://www.redbooks.ibm.com/
and search for "IBM WebSphere Applicatin Server V5 - System Management and Configuration"
download the pdf book
when you got it see chapter 17 --> Deploying an Application
Regards
Howmad -
ADF deployment on WebSphere 5.1
Hi!
My application (TopLink + ADF Faces) runs smoothly on Tomcat 4.3 and WebSphere 5.1. I am considering a possibility to use further features of ADF (specifically ADF BC).
Unfortunately it is stated, that ADF is supported only on Tomcat 5 and WebSphere 6.
Is it a severe problem or can I still deploy on WS 5.1 with some additional manual hacks?
Thanks,
Alexandre.Hi Alexandre
JDev supports only the latest edition of WebSphere, but I cannot see why this will not work on WebSphere 5.1
Please follow the Deploy guidelines for WebSphere outlined in the ADF Dev Guide:
http://download-west.oracle.com/otn_hosted_doc/jdeveloper/1013/adfdevguide.pdf
Also ensure that the Deployment Descriptor XMLs conform to the J2EE 1.3 spec.
Thanks
Prasanth -
Hello everyone,
We deploy engine and workspace separately in two websphere cluster environment.
Our question is
The workspace can not connect with the engine,the workspace only search engine in one cluster(deployed the workspace).
Pls help us.
Best Regards,
Freeman DingYou will need to do some configuration for running a PAPI client (the workspace) in a distributed J2EE environment like yours.
Check the documentation below, this should give you what you need:
http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/modules/papi/c_Running_a_PAPI_Client_in_a_Distributed_Environment.html -
Hello Everyone,
I have successfully assembled an entity bean using Application Assembly Tool (AAT).
I would like to know how to deploy this entity bean to Websphere's application server without using Application Development Studio, then run a client against the entity bean.
Your help is greatly appreciately. JohnHi,
Its very simple.
You can run ur ejb client using launchClient.exe.
How: just use the following command:
launchClient myejb.ear
where myejb.ear is the enterprise archive file composed of .war and .jars
hope above will help u..
sameer -
EJB Deployment in WebSphere Studio Application Developer
I am using WebSphere Studio Application Developer (WSAD) to write an EJB. I have written the code and done a "Deploy and RMIC Code" to generate the stub files, etc. I have also set-up the JNDI Name bindings to be similar to another EJB in my EAR.
When I run my server (WebSphere) I get a NameNotFoundException. I've used the WSAD EJB Test Client to see the EJB but it doesn't appear on the list. Looks like I haven't fully deployed my EJB. Any ideas on what I've missed ? I've looked at every menu option and property there is and can't find out what's missing. The Help isn't much good either !
Thanks.
Sarah.Yes I believe all of the classes and their methods are OK and the server restarted.
We have another EJB developed by someone else and mine appears to be identical - except for my own methods that are required. I can't help thinking that I have missed out some configuration somewhere.
Maybe you are looking for
-
How do I use my USB webcam with Yosemite?
Since upgrading to OS 10.10, my Mac Pro no longer recognizes my Gear Head USB webcam. Any suggestions?
-
How do you select a single image with the keyboard?
I can use the "/" key to deselecting the current photo but how do I select the current photo with the keyboard? Usually the space bar is used for this but that displays the image. Is the only way to select the current photo by using the mouse?
-
What are the responsibilities of Transport Layer?
What are the responsibilities of Transport Layer?
-
Extracting an image line of a webcam
Hi everybody Currently I'm using Labview in order to a project for my University, So I'm looking for how extracting an image line of a webcam and view its signal Someone has an idea? thank you for attention
-
I am using Query available printers function, and i want the printer list to be click-able (buttons or somthing) so i can pick the printer i want to use, any clue about that ? Message Edited by B4S3M on 05-29-2010 03:06 PM Solved! Go to Solution.