eXistDB no httpclient in version 5.2.0? - java

I have a question concerning the eXistDB:
After an upgrade to eXistDB 5.2.0 I get the following error:
HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/apps/ediarum/: err:XPST0081 error found while loading module config: Error while loading module modules/config.xqm: error found while loading module ediarum: Error while loading module ./ediarum.xql: Invalid qname httpclient:put. No namespace defined for prefix httpclient. QName is invalid: INVALID_PREFIX
in Version eXistDB 4.4, everything is working fine...
What exactly is different between 4.4 and 5.2.0 concerning the "httpclient"?

As per the release notes for 5.0.0:
removed eXist-db's HTTP Client module. Use the EXPath HTTP Client
module instead.

Related

How to solve java error on Geoserver GSR extension

I have set up a Geoserver instance. Now I need the GSR extension to have an ArcGIS compatible REST API.
I installed the extension as described but on Geoserver startup I get a couple of errors and when I access the webpage a HTTP error 503.
I already tried different versions of Geoserver and JDK, all with the same result.
Here is the Java error:
11:52:17.791 [main] ERROR
org.springframework.web.context.ContextLoader - Context initialization
failed org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'gsrDispatcher' defined in URL
[jar:file:/home/nico/gs/webapps/geoserver/WEB-INF/lib/gs-gsr-2.21-SNAPSHOT.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
javax.xml.stream.FactoryConfigurationError: Provider for
javax.xml.stream.XMLOutputFactory cannot be found
Thanks for any hint,
best regards
Nico
I did some more research and tested the following versions each with both openjdk version ("1.8.0_312" & "11.0.14.1"):
geoserver-2.18-SNAPSHOT-gsr-plugin.zip
Geoserver version:
2.18.2-6
Running without problems
geoserver-2.19-SNAPSHOT-gsr-plugin.zip
Geoserver version:
2.19.0-5
Problem: Error creating bean with name 'geoServicesExceptionResolver'
geoserver-2.19-SNAPSHOT-gsr-plugin.zip
Geoserver version:
2.19.6
Problem: Error creating bean with name 'gsrDispatcher'
geoserver-2.20-SNAPSHOT-gsr-plugin.zip
Geoserver version:
2.20.0-4
Problem: Error creating bean with name 'gsrDispatcher'
geoserver-2.21-SNAPSHOT-gsr-plugin.zip
Geoserver version:
2.21
Problem: Error creating bean with name 'gsrDispatcher'
So it seems something happened between geoserver version 2.18.6 and 2.19.0 and something more happened between version 2.19.5 and 2.19.6.
It would be helpful if someone could give me the contact of the community GSR extenstion. I can not find anything about it.
To get my geoserver updated it would be great to have this fixed soon.
Many thanks in advance.
Make sure you're installing the same plugin version for the same GeoServer version you're having.
I think you have did something wrong in applicationContext.xml file.

java.lang.NoClassDefFoundError: org/springframework/core/KotlinDetector while migrating from spring-core-3.2.0 to spring 4.x

I am facing issue while migrating from spring 3.2.0 to spring 4.x
If I am using spring-core 4.x, getting exception:
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NoClassDefFoundError: org/springframework/core/KotlinDetector while deploying to IBM Liberty server as the corresponding class is not there, this is available in spring-core-5.1.0
and further, if I am using "spring-core-5.1.0" jar, getting exception:
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NoClassDefFoundError: org/springframework/util/Log4jConfigurer
Also, there is no such migration guide I can found for above stated issue.
In this case I left with only one option to customize the spring-core library, but when I am trying to customize, getting exception:
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.forRawClass(Ljava/lang/Class;)Lorg/springframework/core/ResolvableType
While deploying to IBM Liberty Server due to some compatibility issue, even after adding the ResolvableType into customized library.

java.lang.ClassCastException: com.test.obm.struts.filter.OBMFilter incompatible with javax.servlet.Filter

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.

Spring Filter ClassCastException when running project on Websphere 8.5

I am getting following error when I try to run my project on WebSphere 8.5.I used scope provided and exclusion thing but its not working.Seems servlet-api.jar is being taken from Web Container.The Spring-web version I am using is 3.0.5
Error Message: javax.servlet.ServletException: Filter [filterChainProxy]: not a filter class
Error Code: 500
Target Servlet: HealthCheckServlet
Error Stack:
java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterProxy incompatible with javax.servlet.Filter
at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:572)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:514)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:319)

Trying to get JSON response with JavaEE JAX-B, Jasper and Glassfish 4.1.1, but I get error 500

I am learning WebServices with JAX-B and Jasper. I can easily generate XML response, but I want to get JSON response, but I get error 500.
Here is exception:
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException
root cause
org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException
root cause
java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException
root cause
java.lang.ClassNotFoundException: javax.xml.parsers.ParserConfigurationException not found by org.eclipse.persistence.moxy [228]
Full server log: http://pastebin.com/Eq2KbyKJ
Okey, I tried with Tomcat, and it works, it seems that is Glassfish related problem, but I want to use Glassfish as server, since I use EJB in my projects.
It's a bug inside Eclipselink: https://bugs.eclipse.org/bugs/show_bug.cgi?id=463169 , try upgrading to the latest version?

Categories

Resources