The EmployeeInfo does not need to be included in the war, why do you say
it does? Even if it is redundantly included it should not cause a problem unless
you have disabled the Java2 class loading model in the web container. If
you have an example you can post to sourceforge open a bug report and
attach the ear.
Scott Stark
Chief Technology Officer
JBoss Group, LLC
- Original Message -
From: "Tom Coleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 2:35 PM
Subject: [JBoss-user] IllegalAccessException
>
> From the forums, posted Nov. 18th
>
> "Has anyone come up with a way to get around the issue of the
> IllegalAccess(Error) Exception that occurs when an EJB accesses
> a package private member of something loaded by a WAR?" - ijcd
>
> Here's My problem with This, and I don't have anything declared private:
>
> I'm using a servlet to access an EJB. The servlet expects results
> to be returned in a (serializable) class from the EJB, for example:
>
> EmployeeInfo info = ejbref.getEmployeeInfo();
>
> pretty basic EJB, right?
>
> This always returns an IllegalAccessError. Setters and getters work OK.
>
> Is this a problem with JBoss deployment of Multiple instances of a class?
>
> The EmployeeInfo class is, of necessity, deployed twice:
>
> +- META-INF/MANIFEST.MF
> +- META-INF/application.xml
> +- EmployeeLookupEJB.jar (archive)
> | +- META-INF/MANIFEST.MF
> | +- ...
> | +- EJB classes
> | +- ...
> | +- EmployeeInfo.class
> | +- ...
> | +- META-INF/ejb-jar.xml
> +- my.war (archive)
> | +- META-INF/MANIFEST.MF
> | +- ...
> | +- WEB-INF/classes/Servlet classes
> | +- ...
> | +- WEB-INF/classes/EmployeeInfo.class
> | +- ...
> | +- WEB-INF/web.xml
> Done
>
> JBoss-3.2.0beta2, built to
> JDK 1.3.1_06
> RH Linux 7.3
>
> Thanks,
---
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user