Monday, February 17, 2014

WAS Scenarios

1.
Issue:
I am getting "java.lang.NoClassDefFoundError: org.apache.commons.fileupload.FileUploadException" when trying to acess axis2 web service deployed as part of the enterprise application  on WAS.

When view the class loader I can see that the jar file that houses the "FileUploadException" class does exists, but the error appears.

My class loader policy is parent-last. 

Ans: Try setting the war's classloader, not the ear's classloader.

_______

2.
? I tried to install a war file in websphere 6.1 console. The installation was successful but when I tried starting the application, I got nullpointer exception.


->  it looks like there is an issue with your WSDL that is packaged in the war.  Make sure you are up to date with the latest fixpak for WASv6.1.  Just to note: WASv61 is no longer supported by IBM, except with extended support. 

___

3.
?
In websphere application, java process is using high cpu....due to that we are getting Load average issue.  The websphere application is running on a virtual machine. 

-->
Hi, it could be any number of reasons.  Is the App Server properly tuned?  Is there a loop in the code?  Is the GC running excessively?  etc 

______

4.
?
I'm trying to install WAS 8.5.5 on SLES. Regardless of the installation method, slient, command line or GUI, I always get the following message:

  ERROR:   At least one application server feature is required. Include at least one application server feature with the features attribute in the install section of the response file or listed as an attribute of the install command on the command line.

Here's the command line I'm using:

./imcl install com.ibm.websphere.BASE.v85,core.feature,ejbdeploy,thinclient,embeddablecontainer,samples,com.ibm.sdk.6_64bit -repositories /mnt/rksdev/rksdev/wasinst -installationDirectory /opt/IBM/WebSphere/AppServer -acceptLicense

When I use the GUI install the checkbox for the application server component can not be checked. It starts out with a dash and when I click it the dash clears, but never turns into a checkmark, like the other components. 

--> Hi, make sure you are using the Installation Manager 1.6.2 or higher.  First, I would list the available packages ./imcl listAvailablePackages -repositories /mnt/rksdev/rksdev/wasinst.  You can also just install all features too ./imcl install com.ibm.websphere.BASE.v85 -repositories /mnt/rksdev/rksdev/wasinst -installationDirectory /opt/IBM/WebSphere/AppServer -acceptLicense. 

Hi, That is a really strange error.  I have seen some errors where folks forget to select the SDK, but not an error that states no features have been selected.  Can you redownload the package and see if that corrects the issue?  It does not seem to be able to find the necessary features.  You can also add http://www.ibm.com/software/repositorymanager/com.ibm.websphere.BASE.v85 to your repositories list.  If this does not help then you can call IBM support for help.  I don't have a system here with SLES, only with RHEL and the install worked fine.  I have installed WAS on Ubuntu and I have an issue with some libraries missing, which needed to be installed and then linking bash and dash.  There are some libraries that need to installed before WAS is installed. http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.installation.base.doc/ae/tins_linuxsetup_sles11.html


__________________


5.

 ??

WAS 7 WebContainer Error: Exception:java.io.FileNotFoundException


I've recently configured my WAS v7.0 local server but need help on the following error below.  Any help you could give is appreciated.  Thanks in Advance 


--->
Hi, the App Server is looking for /services/AirToneRanch, but cannot find it.  This is not a WebSphere file, but something in your application or the way WAS has been setup. 

_____________

6.

?? ON-DEMAND ROUTER


____________________________

 7.

?? 
Problems with dynamic SSL configuration

Under WAS 6.1, I am trying to make an application use a custom trust store when connecting to a web service. I imported a keystore called Keygen Truststore and created an SSL configuration, called KeygenSSLSettings. For the cluster "utmgn" in which the application is running, I defined a Dynamic outbound endpoint SSL Configuration, specifying host and port of as well the web service as the proxy which is used for connection. (see screenshot attached).
However, from the SystemOut.log, I see that still the DefaultSSLSettings are used, when trying to connect to the web service.
[1/22/14 16:05:47:472 CET] 0000002b WSX509TrustMa E   CWPKI0022E: SSL HANDSHAKE FAILURE:  A signer with SubjectDN "CN=company.info, O=Company.info BV, L=Amsterdam, ST=,
 C=NL, SERIALNUMBER=33302047, OID.1.3.6.1.4.1.311.60.2.1.3=NL, OID.2.5.4.15=Private Organization" was sent from target host:port "proxy-nl-access.inet.nl.abnamro.com:80
80".  The signer may need to be added to local trust store "/appl/was61/profiles/a04/config/cells/n5112l04-c04/trust.p12" located in SSL configuration alias "CellDefaul
tSSLSettings" loaded from SSL configuration file "security.xml".  The extended error message from the SSL handshake exception is: "No trusted certificate found".
Hi, I did not see the SSL Configs in your trace.  You need to place SSL=all in the trace string.

You should see something like the following when trying to match the configs.  Mine shows a miss:
[1/29/14 12:27:09:261 GMT] 0000007a SSLConfigMana 3   Cached miss is enabled
[1/29/14 12:27:09:261 GMT] 0000007a SSLConfigMana 3   SSLConfig dynamic selection info: *,w3b.ibm.com,443
[1/29/14 12:27:09:261 GMT] 0000007a SSLConfigMana 3   Parsing entry 0 of 1: *,w3b.ibm.com,443
[1/29/14 12:27:09:261 GMT] 0000007a SSLConfigMana 3   This entry has 3 attributes.
[1/29/14 12:27:09:261 GMT] 0000007a SSLConfigMana 3   Protocol: *, Host: w3b.ibm.com, Port: 443
[1/29/14 12:27:09:262 GMT] 0000007a SSLConfigMana 3   Host does not match.

[1/29/14 12:27:09:262 GMT] 0000007a SSLConfigMana 3   Cached miss is enabled
[1/29/14 12:27:09:262 GMT] 0000007a SSLConfigMana 3   Cache miss tree set size is 1 entries.
If you are using web services to connect, try replacing the first * with WEBSERVICES_HTTP . 


___________________________________

8..

Application deployment after node federation

Jan 31 | application, server, v7.0, websphere
HI All ,
I have a scenario, where, I have created application server profile and dmgr profile. I have federated the App server profile node to dmgr. using the ./addNode.sh cmmand. My problem is I forgot to keep -includeapps option while adding node (federation). I had few applications in application server before federation. Now How can I get those applications in the dmgr after federation


-->>>

1) Read node
First you need to remove node, it state will be restored from backup, and then add it again using -includeapps
2) Reinstall apps
If you have ears for theses applications, just install them in the new environment.




 ____________________

 9..

?? I am using WAS 8.5.5, and I have an existing cluster which was not configured to applying session replication. Can I change it to use session memory-to-memory replication without re-creating the cluster? 

-->

- create replication domain, single replica (via Environment > Replication domains), if you dont have one

- then go to each cluster member > session management > distributed settings and configure memory to memory

- save and restart cluster

______________________

 10. 

??
I am completely confused and need some clarification: 
1. How many servers can be created in a single AppSrv01 profile?
2. For every App Server profile created, is there a new node created on a same machine? For Eg. on a same machine, I create profiles AppSrv01, AppSrv02 & AppSrv03 so do I have three different nodes for each app server respectively?
3. How many app servers can I create on a single node on a same machine? Does all those servers will be a different app server profile?
4. What is the right approach to have multiple application servers on a single machine: (1) To create multiple app server profiles? OR (2) To create one App Server profile and create multiple servers in that single node?
  
--> 
1. You can create as many App Servers as you want on a Profile that is part of a Cell that is controlled by a Deployment Manager.  You can only use 1 App Server if you have only a single instance of WAS that is not connected to a Dmgr. Ok. So it means if I have one machine and 2 App Server profiles AppSrv01 & AppSrv02 where AppSrv01 is managed by DMGR and AppSrv02 is not, then I can create an many application servers on the profile AppSrv01 but i can have only one application server on AppSrv02 profile. Did I understand it correctly? 
You can create as many App Servers as you want on a Profile that is part of a Cell that is controlled by a Deployment Manager.
> You can only use 1 App Server if you have only a single instance of WAS that is not connected to a Dmgr.
This is not entirely correct, as you can create as many app servers in one profile as you like, BUT:
- you have to do it via script: 

AdminConfig.create('Server', node, [['name', 'server_name']])
 
- by default admin console will be only available on the server1, so you will have limited administrative capabilities on other servers (e.g. not available to start/stop applications) 

- you will have to start/stop servers via command line


2. Every Profile that is created is considered a new Node.

3. see 1

4. It depends on what you are trying to accomplish and if you are using a Dmgr or not, what resources are needed, etc. 

____________________