Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

JDK 1.4 Problem with Test Environment 5.0

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I am trrying to deploy an application which uses JDK 1.4 logging api. I tried adding jre path in the servers classpath but I got a security exception ...ohhh ... as no one is allowed to add rt.jar in the class path as this packages is reserved by the JDK . So how can i replace the old 1.3 jars wiht the new ones of jdk 1.4.
Thanks in advance.
Awais Bajwa
www.i2cinc.com
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. It won't work. WebSphere depends upon the JVM that it ships with and you can't swap another one out from underneath it. You need to use Log4J or lumberjack instead.
Kyle
[ February 03, 2003: Message edited by: Kyle Brown ]
 
Awais Bajwa
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kyle .
So we cant deploy any Application using latest JDK version i mean 1.4 ....I think this is a big draw back of using WSSAD 5.0 .But may i knwo why IBM wrote that " plugable JVMs using APPLICATION DEVELOPER" if we are still not allowed to configure any latest JVM .. ? i did not understand .
need to go as i have to change my Application to use ibm specific logging... ohh my GOD .
Awais Bajwa
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Awais,
Seriously - look into Lumberjack. It's a JAR file that gives you the JDK 1.4 logging API's -- it's probably the easiest way to solve the problem.
What happened is that you've misunderstood what we're talking about in the WSAD docs. In WSAD you CAN use any JDK you choose for any project HOWEVER the WebSphere Test Environment will ONLY run on the IBM JDK 1.3 because WebSphere only runs on the IBM JDK 1.3.
Kyle
 
Awais Bajwa
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle,
Ok i will use Lumberjack java API for Logging.
Second problem is i am also using Exception Chaining API which is again JDK 1.4 dependent as you know Constructors have been added in the new Exception Class in 1.4 . So what to do with Exception Chaining then ??
I have one other option ..that is .. Using WSSAD 5.0 workbech for developemnt as we can change JRE 1.4 .. and for partial deployment i will use Tomcat 4 which is given wiht the IDE. Is it OK option ?? what do you say . otherewise provide me the alternative of JDK 1.4 Excpeiton Class.
Regards
Awais Bajwa
 
reply
    Bookmark Topic Watch Topic
  • New Topic