I'm trying to get a Java web application running on my local environment. I'm using WebSphere 7.0 and MyEclipseBlue 10 using Java 6. The app builds and deploys fine, but when I start up the server I receive this error:
CWXRS0010W: Error while processing:
wsjar:file:/C:/Apps/IBM/WebSphere/AppServer/7.0/profiles/AppSrv01/installedApps/M006Node02Cell/rbb3.ear/rb31.war/WEB-INF/lib/com.ibm.ws.runtime.jar!/plugin.xml
java.lang.NullPointerException at
com.ibm.wkplc.extensionregistry.Extension.equals(Extension.java:201)...
The odd part is that I had this application running before but didn't have this issue.
Does anyone have any advice on eliminating this error? Does it even matter that it is there? I will gladly provide more information if needed!
Thanks!
You should not include WebSphere related libraries in application itself. So in your case please remove com.ibm.ws.runtime.jar from WEB-INF/lib.
Check you Maven, Eclipse, or any other build process you are doing to create EAR, and make sure that such WebSphere jars are not added to the application.
Related
I am trying to run a deployed .war made with the zk framework and Java, in a Debian server with tomcat 10 but it doesn't work. When I checked the log in the file /opt/tomcat/logd/localhost.2021-xx-xx.log, an error message appeared as follows:
java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.HttpSessionListener
Then, I made some research on the internet and I found a possible solution on this link https://forum.zkoss.org/question/97112/javalangclassnotfoundexception-orgzkosszkuihttphttpsessionlistener/ and I did what is suggested. However, the error continues to appear. It seems that there is a conflict between the zk framework and the server.
I see two potential issues that could cause this.
First:
Tomcat 10 implements Jakarta servlet (instead of java servlet).
When building your application, make sure that you are using the proper ZK version.
The last ZK release has two versions:
9.6.0 : Java EE (tomcat 9 and below)
9.6.0-Jakarta : Jakarta EE (tomcat 10 only)
See the configuration guide here.
Caveat on that, if you are running the Java EE version of ZK in tomcat 10, I'd expect you to get:
[org.zkoss.zk.ui.http.HttpSessionListener]
java.lang.NoClassDefFoundError: javax/servlet/ServletRequestAttributeListener
which is located in the same place as your current issue, but is not quite the same :D
Second: If you are resolving your dependencies through a dependency management tool such as maven or graddle, it is possible that you are resolving the wrong dependencies.
I'd recommend doublechecking the resolved depencies to make sure that every single one of the ZK jars are resolved in the same version.
You may have a ZK version coming from your main declaration, and a different one coming from a plugin (such as Keikai, ZK spreadsheet, or ZK charts)
From maven for example, running the dependency tree command is a good way to know what is resolved.
the problem below is fixed and the server runs now. However it keeps printing red messages but then it deletes them and runs... is that normal? Is there any need for fixing it - if so, what?
When I created a Dynamic Web Project in Eclipse and tried to run my Apache Tomcat v9.0 Server in which I made all the .sh files executable, it still gave me this error:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
-Djava.endorsed.dirs=/Users/my_name/Desktop/tomcat/apache-tomcat-
9.0.10/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
In all the tutorials and forums I have looked, none of the proposed solutions have helped me. How can I fix this problem and make my server run properly?
Thanks!
What JRE are you using? The error you're getting seems to indicate that there is an incompatibility between the JRE versions. As mentioned in Tomcat's docs https://tomcat.apache.org/tomcat-9.0-doc/class-loader-howto.html the 'endorsed' feature is not support in Java hence it means that something keeps adding this up to your configuration.
This seems to be an issue with eclipse (or at the least the way it's setup at your system). Try having a look at this eclipse bug link as it may provide so more information about the problem you're dealing:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507338
I am new to the Jboss server.
I am using wildfly for hot code deployment. And have two dynamic web projects.
I can able to deploy and use hot deployment feature when i deploy one app at a time.
But when i add two DWPs to server and start it, deployment is failing for both application. Is there any setting that we need to enable to allow multiple projects?
I am using eclipse keplar, java 7, jboss 8.
It should not be a problem to deploy on a standard wildfly many ear/war-files.
It is possible that you copy and pasted the project ? In this case the web-context could be on both projects the same.
After you start your wildfly you should see two files like .war.failed or
-1.0.0-SNAPSHOT.ear.failed
could you post the error messages?
I've created a simple web app and it works fine when I deploy it on internally configured server in eclipse.
But now I exported it as a WAR and tried to deploy on another Weblogic server. I get the following error:
java.lang.NoClassDefFoundError: com/ofss/UcbparamConnector
at jsp_servlet.__ucbparam12._jspService(__ucbparam12.java:88)
The UcbparamConnector.class is present in the WAR under WEB-INF/classes/ but looks like it is not found during the runtime. Please suggest what could have gone wrong.
The other Weblogic server was configured to run on different JRE which was causing this problem.
After changing JDK path, web app is working as expected.
Thank you.
I have a Java 1.6.0 web application that I am developing using a Kepler Version 2 Eclipse development environment. I am using an Oracle Weblogic Server Administration Console 12c.
I'm running the app locally - and trying to debug it. Instead of stopping at any of the breakpoints I've set - I get the following error:
When I installed the application to Weblogic, I ran the Weblogic console and then installed the application by adding the ear file.
I thought I did everything exactly the same as previous web applications I've done this way - but I was always able to debug those applications.
Also - one other thing that is different. When make any changes and re-build the ear file - I actually have to delete and reinstall from the Weblogic console for the changes to take place. I'm thinking this might be related.
Any suggestions?
Thanks!
Have a jar file added to a build path in any of the projects that
include the classes in your project