• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

WAS can't find split( ) method: How do I configure Java 1.4 for WAS?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to be as descriptive as I can without creating as much confusion:

I have an ear file which I created using Websphere Application Studio Developer (WASD) vr 5.1.1. The ear file contains the web service I want to deploy on the Websphere Application Server (WAS)vr 5.0.2. I was able to complie and create the ear file without any problems with WASD since I have configured it to use the JRE 1.4 System Library (C:\j2sdk1.4.2_08\jre)under the libraries tab in the Java Build Path section of the web service project.

I then proceeded to install/deploy the ear file on WAS and that seemed to go without a problem. However, when I attemp to run the web service from the default TestClient.jsp that is created, I get the following error:
"java.lang.NoSuchMethodError: java.lang.String: method split(Ljava/lang/String [Ljava/lang/String; not found"

I attempted various searches including this site but didn't find information that helped. Most refered to WASD configuration for 1.4, but I believe I have already done that. I am looking to see what I need to do to get WAS to use the JRE 1.4 or something along those lines.
 
Anish George
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*UPDATE*
I ended up uninstalling WAS 5.0.2 and installing WAS 5.1 and this fixed the problem. I don't run into any exceptions. WAS 5.1 comes with Java 1.4 which contains the split( ) function.
 
reply
    Bookmark Topic Watch Topic
  • New Topic