ejb packaging configuration

Hi, there

I am new to ejb 3 and struts. I have a question about how to set packaging configuration.

For example:

If I set output source directory: /ejbtest/www/WEB-INF/classes

jar file: /ejbtest/www/WEB-INF/classes

war file:/ejbtest/www

and then put them into ear file, I will get class cast error. I figured it out because war file contains class files as well as jar file.

So if I set output source directory: /ejbtest/build/classes

jar file: /ejbtest/build/classes

war file: /ejbtest/www

then it will work as war file does not contain jar file now.

The normal structure of a web application has classes folder within WEB-INF folder, and it has all the classes files. How can package my jar and war file properly, so I won't get cast error? Any help will be appreicated.

Cheers

Ming

[872 byte] By [weiming514a] at [2007-11-26 13:33:41]
# 1
try to do this in the class where you get class cast exp.private static final long serialVersionUID = 1;and build the war/jar
reflex2javaa at 2007-7-7 22:14:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...