FAQ Database Discussion Community


java.lang.NoClassDefFoundError while deploying the War in websphere which uses Couchbase cache

java,websphere,classpath,ibm,noclassdeffounderror
I am facing the below error while deploying the war file in Websphere-8.5.5 Caused by: java.lang.NoClassDefFoundError: org/apache/http/params/SyncBasicHttpParams at com.couchbase.client.ViewConnection.createConnections(ViewConnection.java:120) at com.couchbase.client.ViewConnection.<init>(ViewConnection.java:100) at com.couchbase.client.CouchbaseConnectionFactory.createViewConnection(CouchbaseConnectionFactory.java:184) at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:247) at...

Getting a 500 NullPointerException in Websphere - Apache Wink Rest services

java,rest,websphere,jax-rs,apache-wink
I'm calling this in websphere 8.5 @GET @Path("/test") @Produces("application/json") public dtObject tester() { dtObject r = new dtObject(); r.successfulOperation(); return r; } the dtObject class @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) @XmlRootElement public class dtObject { private String success; private String message; public dtObject() { } public void successfulOperation () { this.message = "Ok"; this.success...

Can't map roles to gropus using ibm-application-bnd.xml

websphere,jaas,user-roles
I'm trying to map user groups using ibm-application-bnd.xml. Put it into META-INF folder. On try to access secure page get next message: [08.05.15 17:42:21:242 MSK] 00000084 WebCollaborat A SECJ0129E: ... GET в null:/loginmodule/date/, Authorization failed, Not granted any of the required roles: user-role When I try configure it with ibm...

jenkins with copy artifact plugin without maven from GitHub

github,jenkins,websphere
I am trying to deploy a war file into WAS8.5 with GitHub. at first I am specifying "EAR Path" with the war file in "Websphere Deployment" option. Then I made some changes in eclipse workspace and pushed into GitHub. Jenkins is checking for latest build but unable to deploy the...

How i can get list with names of all queues in remote websphere application server?

java,queue,jms,websphere,ibm
I connect to remote was with AdminClient and get list of queues with some code: ... AdminClient client = new AdminClientFactory.createAdminClient(props); Set<ObjectName> s = client.queryNames(new ObjectName("WebSphere:*"),null); if (!s.isEmpty()){ Iterator i = s.iterator(); while (i.hasNext){ ObjectName on = i.next(); String type = on.getKeyProperty("type"); if ("SIBQueuePoint".eqquals(type)){ System.out.println(on.getKeyProperty("name");) } } } This list...

How to enable single sign-on between web portal and java rich client?

java,websphere,single-sign-on,jnlp,portal
I saw some of the related questions but my situation is slightly different. We have this web portal that provides a user access to many applications, among them a rich client(desktop) hosted on the web portal. Here is what happens. User logs into a web portal (WebSphere portal I believe)....

unable to deploy restful application liberty profile 8.2

websphere,websphere-liberty
I am trying to deploy the RESTful webservices on liberty profile 8.5.5.2. I have enabled the jaxrs-1.1 feature in server and I am using Java 1.7. When I start the server it gives me following error: [ERROR ] Uncaught.init.exception.thrown.by.servlet JAX-RS Servlet accessms java.lang.NoClassDefFoundError: org/apache/wink/server/handlers/HandlersFactory at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at...

Monitor a remote IBM Websphere with VisualVM and JMX

websphere,jmx,visualvm
I am trying to monitor a remote IBM WAS with VisualVM but I can't connect.

org.springframework.web.servlet.PageNotFound noHandlerFound No mapping found for HTTP request with URI

spring,spring-mvc,java-ee,websphere,websphere-8
I know this question is asked many times, I have tried all the possible solutions still the problem persists. Actually the very same project runs with 0 errors in Tomcat 8 which was deployed directly from netbeans. I created a new project in eclipse and deployed in Websphere Application Server...

Websphere Application Server Secure REST API

java,security,rest,websphere
I want to expose a REST API from Webpshere Application Server 8. I could be able to successfully expose a REST endpoint without security. But while adding security I'm getting 404 error code as follows: [5/6/15 7:44:20:369 CAT] 00000063 RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation...

JProfiler Remote Application Integration in web sphere 8.5

websphere,websphere-8,jprofiler
We are using Web Sphere 8.5 and JProfiler 8.1. I want to hook the JVM runnning in Web Sphere 8.5. I have completed the remote appl;ication integration and after that we have to add into the Startup command of my remote application right after Java command. -Xshareclasses:none -agentpath:/opt/jprofiler/bin/aix-ppc64/libjprofilerti.so=port=8849 "StartServer.sh" file...

Wepshpere: order of loading of modules

java-ee,websphere
We have irritating problem while deploying .war (which contains ejb components in jar inside) on two different PCs with same WAS v8.5.2.2 When we deploy our app on the first PC - everything looks good, while deploying on the second - it fails 'cause it is not able to find...

getting IncompatibleClassChangeError while deploying EAR into WAS8.5 through Jenkins using GitHub

java,eclipse,github,jenkins,websphere
I have Jenkins of 1.611 version, JDK 1.7 and remote WAS8.5 is running on JDK 1.6 version. When I am trying to deploy EAR or WAR file by the help of Github (i.e., I am pushing the project from eclipse Luna which has java 7 configuration), Iam facing the following...

EJB Timer retry Interval

timer,ejb,websphere
Is it possible to increase the retry interval of EJB Timer in WAS ? When I m getting a database timeout error, the Timer was keep retrying after every 30 seconds which I dont want to be like that.

Where to find in IBM Websphere 7.0 admin console to configure http_access.log to show response time

websphere
We are using IBM Websphere 7.0 Server. I need to configure to see response time in the http_access.log. I navigated through most of the admin console options, but I am not sure where to find it.

error invoking RESTful webservice on WebSphere 8.5.5.2 server

rest,websphere,websphere-8,apache-wink
I have deployed the RESTful application using Apache Wink packaged in EAR on WebSphere 8.5.5.2 ND. When the application starts it gives me the "Initialization successful" message: [5/14/15 15:56:03:588 CDT] 0000006d RestServlet I org.apache.wink.server.internal.servlet.RestServlet getApplication The system is using the my.domain.mobile.rest.RestfulResourceLoader JAX-RS application class that is named in the javax.ws.rs.Application...

Error 500: Handler processing failed; nested exception is java.lang.NoSuchMethodError: java/lang/String.isEmpty()Z

java,spring,jsp,websphere,ibm-was
I have been facing this issue with my application(SPRING +JPA+JSP) when i click on search button after selecting my search criteria.My search criteria has two dropdownbox,one textfield,one datepicker.The issue is coming with the value binding to textfield.After clicking on submit,it will make a ajax call with the following url :(It...

websphere - CWWKE0054E error unable to open file

java,command-line,websphere,server,websphere-liberty
i am trying run the websphere liberty profile server from the command line. I am following the steps told here : https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/ I have created the server with the name server1. But when the extraction completes and I try to start the server using the command : server start server1...

Websphere Out of Memory Issue

eclipse,websphere,out-of-memory
Tried to update server.xml, deleted dumps and temporary cache files from C:\Users\username\AppData\Local\javasharedresources And still not able to start the server. This is the following error message I get: JVMDUMP010I Java dump written to C:\WAS8\profiles\AppSrv02\bin\javacore.20150210.094417.6468.0009.txt JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError"....

Remove or Delete existing Websphere Application Server's profile

java,websphere
I want to remove Websphere Application Server profile and its service from my machine. In Profile management tool i could see only option to create a profile and there is no option to delete existing profile so how to delete and remove service of existing profile?...

Does WebSphere 8.5 have built in JAX-RS handling?

java,websphere,jax-rs
Multiple pages on IBM support seem to differ on whether JAX-RS is built in to WebSphere 8.5. http://www.ibm.com/developerworks/websphere/techjournal/1305_gunderson/1305_gunderson.html The most recent versions of IBM WebSphere Application Server provide support for JAX-RS. WebSphere Application Server V8.5 has support for JAX-RS built in; no extra installation is required. http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.iseries.doc/ae/twbs_jaxrs_devenv.html?cp=SSAW57_8.5.5%2F2-13-2-38-1-1&lang=en To develop...

How to load balance requests using header value in IBM web server plugin?

websphere,ibm-was
We are using IBM Web Server plugin to load balance in a cluster of web servers. So far we are routing the requests based on URLs. We now need to route a set of requests using combination of URL and a header value. How can this be done?

Is there a way to overcome DSRA9010E “'setReadOnly' is not supported on the WebSphere” exception?

spring,oracle,transactions,websphere
our application is using Spring for TX management and is marking certain transactions as readonly. When deploying our application on websphere (8.5.5.3) with a Oracle JDBC Connection we are getting exceptions like the following: Caused by: java.sql.SQLException: DSRA9010E: 'setReadOnly' is not supported on the WebSphere java.sql.Connection implementation. at com.ibm.ws.rsadapter.spi.InternalOracleDataStoreHelper.setReadOnly(InternalOracleDataStoreHelper.java:371) at...

Where does Workligh server log the adapter calls when the log level is set to “debug”

logging,websphere,worklight
We have Worklight enterprise version 6.2.0.1, we were logging the adapters calls using "info"level like (WL.Logger.info("..")) and the log goes to Systemout.log file. However, we changed the log level to "debug" like (WL.Logger.debug ("..")). Where does the WL server save the debug logs? what is the file name and the...

@FacesComponent on shared library

jsf,java-ee,websphere,jsf-2.2
I'm trying to use a custom jsf component on Websphere 8.5. The component class is annotated with @FacesComponent. The component is on a shared lib jar on the server. I already have an faces-config inside the jar META-INF folder. If the jar is inside my ear file it works as...

Secure Cookie Attribute in WebSphere

cookies,websphere,jsessionid
We are trying to secure our JSESSIONID in our WebSphere Full Profile I have followed the URL provided: http://www-01.ibm.com/support/docview.wss?uid=swg21422185 Our server configuration: Server11_was: I have Recycled my node - servers and runtimes. However, The JSESSIONID still coming as not secure. Am I missing something? WebSphere version: 8.5.5.1...

All I want is to access a H2 mem database in Websphere V8 using JPA 2.0

java,jpa,jdbc,websphere,persistence.xml
I've been struggling with this for days now and I searched dozens of articles in StackOverflow and other dev sites. I used the Deployment Manager interface to configure a Websphere Application Server 8.0.0.3 with a H2 JDBC provider and a Data Source for my application using a tutorial I've found...

How to reduce the size of ear file

spring,maven,websphere,ear,filesize
The size of my EAR file has reached around 100 MB after adding many exetrnal jars. Environment : Java Spring/Websphere application server/Maven Please share the tips to reduce the size of an EAR file. Seems the exteral jars contribute most to the large size. Is it possible to follow an...

IBM WAS 8.5.5.4 : A POJO with interface and implementation in different JARs cannot be injected successfully inside an EJB 3.1 bean in another EJB jar

java-ee,websphere,cdi,ejb-3.1,websphere-8
I'm developing a Java EE 6 application that must work in both JBoss WildFly 8.2.0 and IBM WAS 8.5.5.4 with the same EAR package. The application structure is pretty simple. It basically follows the below one: EAR |__ /lib/ |____|__ API.jar |____|__ IMPL.jar | |__ EJB.jar |__ WebConsole.war |____|__/lib |_______|__C.jar...

Many versions on one IBM Websphere server

java,websphere,ibm,web-deployment
Is it possible to deploy different versions of single application on one IBM Websphere Application Server (WAS)? For example I have: App1 with url binding http://app/1.0/service/ App2 with url binding http://app/2.0/service/ Is it possible? I think not due to port listening issue, but maybe there is some chance......

Spring batch FileItemWriter not creating file at correct path

java,linux,spring,websphere,spring-batch
I have a spring batch service containing a FileItemReader,FileItemProcessor and FileItemWriter.When creating the FileItemWriter I have to set the Resource that will be my output file. I am running the batch service on websphere on a Linux machine.The problem is if I set the resource as new FileSystemResource(new File("opt\temp1\myFile.txt")), the...

WAS 6 to WAS 8.5 migration

migration,websphere,server,ibm-was
I need to migrate my application to WAS 6.1 to WAS 8.5.5. I would need list of things to be taken care before migration and what are all the major changes involved. I googled and sufficient informations I couldnt get. Can some one please help me on this ?...

JSESSIONID=0000fWm58im_RcpQXmWI8LlDdvg:-1 what does “:-1” resembles to?

android,session,servlets,websphere,jsessionid
I am trying to solve android session problem which i am facing with IBM Websphere server and when i logged response headers , JSESSIONID has ":-1" appended to it .What does ":-1" mean ??

Configure websphere to send java web pages compatible to IE 11

http-headers,websphere,internet-explorer-11,ie-compatibility-mode
We have legacy java web application running on WebSphere Apllication server 8.0. Required to make compatible with IE11 with minimal changes. Instead of doing changes in each JSP which makes lot of effort and time, we wanted to go ahead with applications level compatibility settings changes to work them in...

WAS 8.5, How to avoid annotation scanning?

websphere,jax-ws,websphere-8
We deploy a web app on WAS 8.5.0.0, we're using PARENT_LAST class loader(we have to for some reason), during the startup, there're some warnings: [12/16/14 17:19:15:088 CST] 00000048 InjectionProc E CWNEN0044E: A resource reference binding could not be found for the com.sun.xml.ws.transport.tcp.servicechannel.ServiceChannelWSImpl/wsContext resource reference, defined for the MyProjectName component. [12/16/14...

Migrate from WebSphere to Tomcat 7, No unique bean of type [com.m.g.tenancy.ITenantPlaceholderResolver] is defined: expected single bean but found 0

java,spring,tomcat,java-ee,websphere
I'm relatively new to Spring and Tomcat, currently attempting to migrate a web application from WebSphere to Tomcat 7. I'm running into many issues along the way and tackling them one by one. Right now I'm looking at this error and I am stumped: 15:05:15.362 [localhost-startStop-1] ERROR c.m.g.t.TenantDispatcherServlet - Could...

LTPA2 token name won't change

java,websphere,single-sign-on,websphere-8,ltpa
we have a complex infrastructure with WebSEAL, Websphere Portal and a couple of Wesphere AS' where we [obviously] want to set up SSO. we successfully configured TAI++ etc, but unfortunately default LTPA2 token name ("LtpaToken2") is not acceptable for compatibility reasons and we want to change it. Websphere AS 8.5,...

Struts/Spring WebSphere jndi error

spring,websphere,jndi,websphere-liberty
I'm fairly new with WebSphere (mainly worked with Tomcat) and am trying to host a Struts/Spring/Hibernate website. The website is supposed to be able to look up data from an Oracle database and display that information. I'm currently not able to get the website running and it seems to be...

Arquillian tests stop working after enabling Websphere security

java,websphere,integration-testing,jboss-arquillian
Arquillian IT tests run fine till the moment I enabled the security in Websphere admin console (In order to build the login functionality). So the question is how to run Tests with Websphere security anabled. Its LDAP (Microsoft AD). Thanks Arquillian.xml ...... <container qualifier="websphere" default="true"> <configuration> <property name="remoteServerAddress">localhost</property> <property name="remoteServerSoapPort">8880</property>...

About the WebSphere Application Server cluster?

java,websphere
Cluster: A logical grouping of one or more functionally identical application server processes. A cluster provides ease of deployment, configuration, workload balancing, and fallback redundancy. A cluster is a collection of servers working together as a single system to ensure that mission-critical applications and resources remain available to clients. Clusters...

Character encoding in web applicaion running on Websphere Application Server 8.5

java,encoding,utf-8,character-encoding,websphere
I have a problem with Cyrillic symbols represention (they looks as '0B0;lO') in IBM WebSphere Application I created. So I use WebSphere 8.5 (Unix Red Hat) and application is a java-servlet which listens to HTTP POST Requests. JVM properties on WebSphere are: Default Charset=UTF-8 Default Charset= in use=UTF-8 file.encoding=UTF-8 I...

Websphere Message broker multi-instance message flow

websphere,messagebroker
I am looking for a command to change the message broker message flow instance in the run time. I know it is quite easy with MB explorer. But I am more interested towards the server side mqsi command. Ours is a AIX env with message broker 8 installed.

Webphere Liberty Profile 8.5.5 - wmqJmsClient (MQ JMS) config failing at startup

java,websphere,websphere-mq,mq,websphere-liberty
I would like to add the mq feature in Websphere Liberty 8.5.5 but I'm getting a ClassNotFoundException: com.ibm.msg.client.commonservices.componentmanager.Component. I've checked many sites describing the process but I'm stuck with this error. Apparently enabling this feature should be quite straightforward: server.xml. All of the following features are correctly installed with the...

Websphere MQ classes needed in Websphere Application Server

java,java-ee,jms,websphere,websphere-mq
So I have a JMS application deployed on a Webpshere Application Server, this application try to connect to the queue directy using a com.ibm.mq.jms.MQConnectionFactory and I wonder if I should include Websphere MQ jars in my application or should they be provided by Websphere Application Server. My application is currenty...

Install wasJmsClient-2.0 feature in Liberty Profile 8.5.5.2

websphere,websphere-liberty
I am using WAS LP 8.5.5.2 with Oracle Java 1.7 on windows 7 Machine. I want to use wasJmsClient-2.0 feature in in my Application. I ran the "productInfo featureInfo" command but its output doesn't display feature wasJmsClient-2.0. How can I install this feature into the server?

How i can connect secure to remote websphere server?

java,ssl,websphere,ibm
I use AdminClient for secure connection to local websphere server: java.util.Properties props = new java.util.Properties(); props.setProperty(AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP); props.setProperty(AdminClient.CONNECTOR_HOST, "localhost"); props.setProperty(AdminClient.CONNECTOR_PORT, "8880"); props.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, "true"); props.setProperty(AdminClient.USERNAME, "admin"); props.setProperty(AdminClient.PASSWORD, "111111");...

deployment to IBM worklight 6.2 server

deployment,websphere,worklight
I installed an IBM WorkLight Server 6.2 20150129 on a WAS 8.5.5.2 ND on a Windows 2008 DataCenter VM with 4GB ram min heap:512mb, max heap: 1536mb I am deploying a *-all.wlapp of around 140mb and following error occurrs. deploying an app of < 20mb is fine. server1_exception.log com.ibm.ws.naming.java.javaURLContextImpl.throwConfigurationExceptionWithDefaultJavaNS server1_(very...

Websphere 8.5: Can't find classes even those classes are in lib folder

spring,websphere,wss4j,xmlsec
I'm using spring/wss4j for web service security in websphere 8.5. Wss4j requires xmlsec.jar and I've included xmlsec.jar under WEB-INF/lib/xmlsec-2.0.4.jar. But websphere classloader can't find DOMXMLSignatureFactory. Caused by: java.lang.ClassNotFoundException: org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:599) ~[na:1.7.0] at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:204) ~[bootstrap.jar:WAS855.SERV1 [cf011339.02]] at...

CodeSource on Liberty Profile 8.5.5.5

java,websphere,dropwizard,websphere-liberty
I'm trying to deploy a dropwizard (dw) application using wizard-in-a-box (wiab) on IBM Liberty Profile 8.5.5.5, but I'm encountering som issues with the io.dropwizard.util.JarLocation class. wiab will try to get the location of the Listener class wrapping the dw application but fails to do so since the CodeSource object in...

Kerberos with websphere NPE

websphere,kerberos,spnego
I am trying to setup Kerberos web authentication on Websphere (8.5.5). I have done my setup but when i try to access the login url i get the following NPE com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[Initializer]: java.lang.NullPointerException at net.sourceforge.spnego.SpnegoFilterConfig.doClientModule(SpnegoFilterConfig.java:179) at net.sourceforge.spnego.SpnegoFilterConfig.<init>(SpnegoFilterConfig.java:138) at...

Corba NameService configuration in Websphere 8.5.5

java,websphere,corba
As part of my application requirement, I have to configure a attribute called "ORBInitRef.NameService=corbaloc:iiop:ABCDE012:14888/NameService" in Websphere 8.5.5. Earlier i have used Jboss for my applciation deployment but now have to use WAS. In, WAS where should i have to configure this attribute in admin console? Is there any way to...

Rome 0.9 does not work correctly when module classloader order : parent last

websphere,classloader,rome
Project description: WebSphere Application Server 7.Maven project which uses Rome0.9. <dependency> <groupId>rome</groupId> <artifactId>rome</artifactId> <version>0.9</version> </dependency> I was solving the problem with log4j not logging. The problem was that log4j.properties were already set in parent project. That's why I changed module's classloader order to Parent Last. It fixed the problem with...

WebSphere 7 - Can excessive Garbage Collection lead to out of memory?

java,memory-leaks,garbage-collection,websphere
Issue: Getting out of native memory exception and was wondering if excessive garbage collection can lead to this? Also any advice on GC policy or tuning would be helpful. I'm not sure if what I have warrants a change yet. Good Reference StackOverflow Question: Which GC Policy to Use Specs:...

Spnego setup with websphere custom SSOAuthentication

websphere,single-sign-on,spnego
I am trying to setup Websphere with Spnego. I have my custom SSOAuthentication implementation (the application needs to run o several different web servers). The problem i am facing is that the spnego-client configuration is being searched in wsjaas.conf file, while i have it setup in a custom conf file....

How to configure application level settings in Websphere developer tool in Eclipse?

eclipse,websphere,websphere-7
I install WebSphere Developer tools for Eclipse and refer to my local WebSphere 7 installation. Then deploy a Spring application within an EAR project. However, when I deploy the EAR project into WebSphere server instance in Eclipse, I find no options/UI to assign external library or assign role/user mapping etc,...