I'm running into the following error when trying to deploy to Glassfish from IntellIJ IDEA, but I can't work out where to look first to find the issue.
Error running 'Glassfish Dev'
Error Connecting to Glassfish Server.
Exception occurred : java.lang.NullPointerException
Exception message : null
This is Glassfish 3.1, the configuration used to work but has recently stopped, I can't work out if the issue should be investigated within the Glassfish server or the local project + config.
Related
I recently migrated my application from java6 to java7 and Websphere 6 to 8.5. but were getting 1 error:
[AxisServlet]: java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver in Axis2 1.3 and WebSphere 8.5 by doing
When I fixed the error using the approach below:
As I am bundling axis2 engine with my application, I disabled WebSphere JAX-WS runtime. I needed to:
configure my web moudle to PARENT LAST classloader
set DisableIBMJAXWSEngine: true in the META-INF/MANIFEST.MF of a WAR file
Now i am getting new error
webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[action]: java.lang.ClassCastException: com.test.obm.struts.filter.OBMFilter incompatible with javax.servlet.Filter
So I have tried to upgrade/degrade the javax/j2ee jar version also to solve above error javax incompatibility error but that too did not work and above error is same coming but when I am running my application by not using PARENT LAST classloader the J2EE error not coming but WSDLs are not running and getting the same:
java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver. again.
I am using Postman alongside a JAR file that runs a REST service that holds some contacts. However when I try to run the JAR file by using: java -jar ContactListRESTService.jar in Powershell, I am seeing a bunch of errors that Apache Tomcat could not run. Postman also doesn't recognize the localhost.
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:159)
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletCntainer.java:159) ~[spring-boot 1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
I have tried uninstalling and reinstalling JAVA SE per some guidance from a mentor with no results.
If anyone can point me in the right direction please.
I have a Database Handler java code which should execute the Select statement from the JSP. That is not happening and it is throwing the exception. I suspect, there is some JAR file issue due to which my code is not working in Websphere 8.5. The same code works in Tomcat at my Local.
Exception thrown:
Java.lang.NullPointerException
at java.sql.DriverManager.getConnection(DriverManager.java:467)
at com.ids.dbmanager.DatabaseManager.executeGUCountQuery(DatabaseManager.java:130)
at com.ibm._jsp._folder._jspService(_folder.java:176)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
Thanks
I am deploying the MBOs in SUP 2.2 and it is failing with the Null Pointer Exception.
Errors occurred while creating packages.
Deployment Error: Create package failed (package=/TestforSR/.pkg, server=MOF Server)
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
java.lang.NullPointerException
But it is working fine and able to fetch the response when preview and by using the SOAPUI utilities and not throwing any error or exception. Only the exception when deploying the package.
Check if you are connected the SUP server? And while deploying, it would be better to use the
Update
mode.
I have found a work around for the issue. Not sure if this is the only solution but this is working for me and MBOs are getting deployed to the SUP Server successfully without throwing the Null Pointer Exception.
The webservice that i was using had some parameters of datatype set as enum, which is not supported by SUP and by changing the parameter datatype from enum to String resolved the issue, and error is no more there.
We have a project made in netbeans 7.3 and are about to deploying this to a remote glassfish server, everything is configured and set up properly and the connection pools for our project are also generated in glassfish.
Currently we are getting this error when deploying to the remote server:
deploy?DEFAULT=D:\SVN\PTS62\Applicaties\Rekeningrijderwebsite\RekeningRijder\dist\RekeningRijder.war&name=RekeningRijder&contextroot=/RekeningRijder&force=true
failed on GlassFish Server 3+
Error occurred during deployment: Exception while preparing the app :
Exception [EclipseLink-4002] (Eclipse Persistence Services -
2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a
connection. Cause: Class name is wrong or classpath is not set for :
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
Error Code: 0. Please see server.log for more details.
And the message the server generates:
Caused by: javax.resource.ResourceException: Class name is wrong or
classpath is not set for :
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
at com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:292)
at com.sun.gjc.common.DataSourceObjectBuilder.constructDataSourceObject(DataSourceObjectBuilder.java:114)
at com.sun.gjc.spi.ManagedConnectionFactory.getDataSource(ManagedConnectionFactory.java:1307)
at com.sun.gjc.spi.DSManagedConnectionFactory.getDataSource(DSManagedConnectionFactory.java:163)
at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:102)
at com.sun.enterprise.resource.allocator.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:87)
... 62 more
Google wasn't very helpfull before, so hopefully you guys/girls can help me
Thanks in advance!
You may need a mysql / java connector.
You can find it there. Extract the mysql-connector-java .jar from the archive. Then place it into the glassfish external lib directory {INSTALL DIR}/glassfish/domains/domain1/lib/ext.
Restart your glassfish server.
There are more details on this answer. If that's not what you are looking for, or if it doesn't work, tell us. #+
Right, you just lack mysql lib, just find and download mysql-connector-java-5.x.x-bin.jar copy to E:\Projects\glassfish3.1.1\glassfish\lib then restart server and enjoy !!!