How to assign Websphere Shared libraries to project? - java

I have successfully created a Shared Library and deployed the EAR in WAS 7.
Before starting the application I have tried to assign the already created Shared Library to the project. But I'm getting the following error:
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message -
[isclite#isclite.war]:.action: ApplicationDeploymentDetailForm was
null.Creating new form bean and storing in session.
Could you please give some suggestion to fix this issue?

Related

Error in Bluemix Liberty when injecting a simple CDI managed bean into a servlet

When injecting a simple CDI managed bean into a servlet (starting from the generated code sample "SimpleServlet"), when accessing the servlet, Bluemix Liberty logs this error :
"SimpleServlet cannot be injected as class
wasdev.sample.servlet.SimpleServlet is not in a bean archive."
This is so even when a beans.xml file with discovery "all" is used.The target looks like this
Reason for Error :
The error is due to not having a beans.xml in the built application war i.e. JavaHelloWorldApp.war
Currently, for performance reasons, the beans.xml file is always required in order to use CDI on Bluemix.
Solution :
Copied the bean.xml inside the /src/main/webapp/WEB-INF/beans.xml then built the code.
This made sure that the bean.xml is packaged into the war file i.e. JavaHelloWorldApp.war and the error is resolved.
To verify bean.xml is deployed correctly to Bluemix, select the java application on Bluemix console, click and open the java application dashboard. Select Runtime, select Files tab, browse and verify that the bean.xml is deployed correctly inside WEB-INF as shown in the snapshot below.

Deployment issue in GlassFish 2.1.1

I just created a new domain in GF 2.1.1 and was trying to deploy a WAR but getting below error during deployment:
Trying to create reference for application in target server failed;
Bad File parameter in AppDD ctor: E:\softwares extracted\glassfish
2\glassfish\domains\domain1\applications\j2ee-apps\MEjbApp Bad File
parameter in AppDD ctor: E:\softwares extracted\glassfish
2\glassfish\domains\domain1\applications\j2ee-apps\MEjbApp
Please help if I am missing anything in server configuration or somewhere else.

SOAP error : Axis 2 AbstractMethodError

I have problem with my webservice client which build using Axis 1.3.1 I
encounter below error when executing the webservice:
[9/5/14 15:05:47:211 EDT] 0000018f ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet SWPChooseAccountServlet: java.lang.AbstractMethodError: org/apache/axis2/databinding/ADBBean.serialize(Ljavax/xml/namespace/QName;Ljavax/xml/stream/XMLStreamWriter;)V
at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerialize(OMSourcedElementImpl.java:781)
at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:967)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:283)
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:245)
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:207)
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
The webservice client is deployed in IBM WAS 8.5.5.1 My temporary solution is
to add axis2-adb-1.4.1.jar to WebSphere app server shared library and add
the library as a reference library in the Java class loader (Classes loaded
with local class loader first (parent last))
Thanks
It works.
Adding Shared Libraries For axix2 in WAS 8.5
Login into WAS admin console.
Go to the Environment Link
Click on Shared libraries
Click on new; Select the scope of this variable.
Provide the name and class path value as per the library location of jars.
Press apply and then save button.
Now click on Servers > webSphere Appliacatio servers.
With in the list of servers select your server.
Click on Java and Process Management > Class Loader
Go new and select “Class loader order” and choose “Classes loaded with local class loader first (parent last)”.
Apply and save.
Now Click on Shared library references under “Additional Properties” section and include your added shared library variable name.
Now restart server instance to see the effect of whole task.

DWR invoke error in Javascript

I am using Spring 3.05 and DWR 3.0rc1 in my application for making AJAX calls. In local environment, i.e. Eclipse & Tomcat Server, it's working fine but in Clustered Environment I am getting the following errors while invoking DWR and a script error is coming saying DWR is not defined, but I am able to see myApplication/dwr/index.html properly.
Error Log:
Skipping 'script' due to NoClassDefFoundError on org.directwebremoting.create.ScriptedCreator. Cause: org/apache/bsf/BSFException
Skipping 'pageflow' due to ClassNotFoundException on org.directwebremoting.beehive.PageFlowCreator. Cause: Beehive/Weblogic jar file not available.
adding creator type: none = class org.directwebremoting.create.NullCreator
adding creator type: new = class org.directwebremoting.create.NewCreator
Please help me out
Looks to me that jars are not included in the classpath. Can you please check whether it is included?

java.lang.illegalstatexception Application was not properly initialized

I am getting the following error when deploying an application on JBoss 4.2.1
7:05:59,673 ERROR [Application Name]StandardWrapper.Throwable
java.lang.IllegalStateException: Application was not properly initialized at
startup, could not find Factory: javax.faces.context.FacesContextFactory
I browsed the net and I found many posts which suggested to add an entry in web.xml but that entry was already there. And all the required libraries are there in web-inf.
So any solutions anybody ?
Ensure that your classpath is clean (i.e. no duplicate different versioned classes/JAR files, keep in mind that JBoss ships with builtin JSF libraries!) and that your web.xml is declared as at least Servlet 2.3.

Categories

Resources