I have a web application that use a JAX-WS 2.1 in order to create a client .. when running the application on Webshpere 2.1 I keep getting NoDefClassFoundError on XMLStreamBuffer. I googled the error but I couldn't find anything helpful. Please help.
From the WAS 7 Infocenter:
WebSphere® Application Server Version 7.0 supports the JAX-WS 2.1 specification.
Since there is no type called XMLStreamBuffer in the Java 6 SE, Java EE 5 or JAX-WS 2.1 public APIs you are perhaps importing a type from another implementation - either directly or via some generated code.
Related
I am looking to create a new web application using spring boot. Unfortunately my server is fairly locked down in terms of the technology stack. It has java 5 installed on it.
Can anyone tell me whether spring boot can run on java 1.5 and what version?
thanks
Since Spring boot 1.0.0, the minimal requirement to run a Spring boot application has been Java 6. This can also be found in the reference guide of Spring boot 1.0.0:
Spring Boot can be used with “classic” Java development tools or installed as a command line tool. Regardless, you will need Java SDK v1.6 or higher.
Support for older Java versions has been dropped throughout releases, with Spring boot 1.3 moving to Java 7 as a baseline (still possible to use Java 6 with additional configuration) and Spring boot 2.x moving to Java 8 as a baseline. Additionally to what the documentation says, none of the Spring boot 1.x versions support Java 9 or higher.
Summarized:
1.0.0: Support from Java 6 - 8
1.3.0: Support from Java 7 - 8, additional configuration for Java 6 required
2.0.0: Support from Java 8 - ...
So, the answer is that it's not possible to run in Java 5.
For Spring Boot 2.0, the requirement is Java 8 as a minimum version.
From the Spring Boot 2.0 release notes :
Spring Boot 2.0 requires Java 8 as a minimum version. Many existing
APIs have been updated to take advantage of Java 8 features such as:
default methods on interfaces, functional callbacks, and new APIs such
as javax.time. If you are currently using Java 7 or earlier, you’ll
need to upgrade your JDK before you can develop Spring Boot 2.0
applications.
I'm just getting started with WSO2 Identity Server 5.0.0 on Window Server 2008 R2.
I have a MSSQL database and I've followed the Admin Guide on how to set up the system with a MSSQL database instead of using the built in H2 database.
I'm getting stuck with JDBC. I've downloaded every possible JDBC driver (4.0, 4.1, 4.2 and even 6). I have JDK 1.7u80 installed. I tried all the different sqljdbc.jar files including sqljdbc4.jar. In all cases I'm getting an error message telling me that the driver is not compatible with JDK 1.7.
This is the WSO2 doc I was using to set up MSSQL database.
I also read the Microsoft JDBC website Microsoft JDBC Driver for SQL Server Support Matrix and at least one of the JAR files should have worked with 1.7 according to the documentation.
The WSO2 doc says JDK 1.8 is not supported so I haven't tried this.
Any ideas anyone?
Error:
...
[2015-12-06 23:00:20,962] ERROR {org.wso2.carbon.user.core.util.DatabaseUtil} -
Database Error - Java Runtime Environment (JRE) version 1.7 is not supported by
this driver. Use the sqljdbc4.jar class library, which provides support for JDB
C 4.0.
java.sql.SQLException: Java Runtime Environment (JRE) version 1.7 is not support
ed by this driver. Use the sqljdbc4.jar class library, which provides support fo
r JDBC 4.0.
...
Based on the documentation you can find at the link below 4.0 supports Java 5 & 6. 4.1 Supports Java 5, 6 & 7. 4.2 Supports Java 5,6,7 & 8. So sqljdbc4.jar would not work for you if you are using 7, but the rest should. I am assuming you updated the driver name in your master-datasources.xml file? Are you able to share that file? We are using sqljdbc4_1.0.0.jar and JDK 1.7 with no issues.
https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774
Joe
I'm working to upgrade JDK for a Web app from 1.4 to 1.7 and Websphere Application server 6.1 to 8.5 (WAS 6.1 to 8.5).
The application is built using JSF 1.2. My question is does JSF 1.2 is compatible with Java 1.7 or does it require to upgrade JSF 1.2 to 2.0? Any pointers in this relation is most valuable.
Thanks in advance.
JSF 1.2 is compitible with java 1.6.
You can change your version of java in a
Project>Build Path>Configure then select Java to change it
If you want to use java 7, then you need to move on JSF 2.0
I had issues with JSF 1.2 and JDK > 7.0.21
I do not remember the exact cause, but that was a known issue and never fixed.
You can use JSF 1.2 with WAS 8.5, you will need to change default JSF via application options Applications > Application Types > WebSphere enterprise applications > application_name > JSP and JSF options and switch to Sun Reference Implementation 1.2.
For more details see Configuring JavaServer Faces implementation
I am interested in using the Non-Blocking I/O features of Servlet Specification 3.1 like here http://docs.oracle.com/javaee/7/tutorial/doc/servlets013.htm#BEIHICDH
I can't find a definitive answer on IBM dev site whether JSR-340 is supported.
Does WAS LibertyProfile support Servlet Specification 3.1 ?
A slide deck from Impact2013 said that WAS 8.5.5 is at servlet 3.0. The recent 8.5.5.next notes didn't mention anything about updating that.
This page from Oracle shows the certified servers:
http://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html
If you care to look at any other servers, apart from glassfish the wildfly beta is reported to support servlet 3.1 (and Jave EE 7 in general) but I have no idea when to expect the release.
http://undertow.io/
New update.. WAS Liberty 8.5.5.5 (March 2015) supports several Java EE7 technologies (for production use) including Servlet 3.1 and Websocket 1.1. Announced today is the full Java EE7 stack for Liberty which will be available on 26th June.
The version 8.5.5.4 supports Servlets 3.1 and WebSockets 1.0 and some other Java EE 7 specs, but not yet all. For latest information check this page New Liberty features and tools
No, it only supports Servlet 3.0. See the Programming model support page in the 8.5 InfoCenter.
update, they have a beta out
https://www.ibmdw.net/wasdev/2014/03/28/announcing-websphere-application-server-beta/
it has some java ee 7 but no servlet 3.1 yet
Which version of JSP/servlet is in websphere 8? I use IBM RAD 8 with websphere 8 and wonder whether the JSP/servlet container supports method calls in EL which "the latest" servlet containers are supposed to do. Can it?
Thank you
WebSphere 8/8.5/8.5.5 has support for same Servlet ( 3.0 ), JSP ( 2.2 ) and JSF ( 2.0 ) versions. Only change is in JDBC version, which you may not that dependent.
Ref: https://en.wikipedia.org/wiki/IBM_WebSphere_Application_Server#Version_history
Side note: IBM start having internal ibm-web-bnd and ibm-web-ext files having extension xml instead of xmi since Servlet/WebApp version 2.5 declared in web.xml
Refer below chart.
According to Specifications and API documentation in the InfoCenter, WebSphere v8 supports JEE6, Java Servlet 3.0, and JSP 2.2.