Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Vinnie Heffernan

Greenhorn
+ Follow
since Jan 18, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vinnie Heffernan

Thanks for your reply.
I have successfully packaged and deployed an application on WebSphere 4.
My posting was more along the lines of design or architecture guidelines. One guideline, I assume is the packaging of any common classes into their own WAR file. These can easily be added then to each application (EAR file) that needs them.
Has anyone else got any architecture/design guidelines?
Or am I looking into it too much?
Appreciate any advice.
Vinnie.
18 years ago
Hi,
I am currently migrating some applications from WebSphere 3.0.2 to version 4. These applications contain mostly JSPs, servlets, classes, HTML and images (no EJB's currently). One uses XML.
Does anyone have some advice, good links on the "correct way" (best practices) to assemble the ver 3.0.2 apps into web modules (WAR's) and deploy as applications (EAR's)? Is there an ideal architecture to assembling them? Some of the apps contain common class files for example?
My concern is I package them in such a way and then to find out down the line, that I should of done it differently.
I would appreciate any advice.
Thanks,
Vinnie.
18 years ago
Hi Andee,
I don't know if the following information will be of use to you.
In section 4.7.2.3 of the InfoCenter docs v4("Troubleshooting guide for the J2EE application client")it gives an explanation and possible cause for the error. It's more specific to running the launchClient tool though.
I also received the error message before when I was obtaining an InitialContext - executing a java class with a main method. The reason was because I was doing this on another computer. When I did the same thing, on the computer where WebSphere was installed, there was no problems.
Vinnie.
18 years ago
Hi Robert,
I'm not completely sure how I resolved the problem, but I am no longer getting the ClassCast Exception.
I re-assembled my WAR file again making sure it only contained the necessary files for my application.
The Exception is definitely caused by a ClassLoader issue. I think the reason is - another class is being loaded from the hard drive before the one specified in the exception.
Make sure there are no classes on your hard-drive that are needed for your application, that are not contained in your WAR file.
Also, make sure there are no old versions of classes lying around.
Good Luck,
Vinnie.
18 years ago
Hi Robert,
I am having the exact same problem that you are experiencing.
<extract>
java.lang.ClassCastException: com.ibm.ejs.cm.JDBC1PhaseRF
when trying to retrieve the datasource Object by doing:
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/myDSName");
</extract>
Did you have any luck finding a solution?
I would be extremely grateful with your help.
Thanks,
Vinnie.
18 years ago