I've solved this problem by changing the version of JDK.
I used JDK1.4 (with errors). I've gone back to JDK1.3 and everything runs fine
without changes ... !
Fred Loney <[EMAIL PROTECTED]>@lists.sourceforge.net on 20/07/2001 17:05:05
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Laurent Broudoux/LME/PCC/PHILIPS)
Subject: Re: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!
Classification:
Just a guess, but perhaps your remote SB class is not in the deployment classpath. The
cited warning is a red flag that the deployer does not recognize that SphfGenerator is
a Remote. Assuming that SphfGenerator is derived from EjbObject, which is a
Remote, this suggests that the deployment verifier cannot completely resolve the
SphfGenerator class declaration. That would account for the runtime failure, which
results from an inability to marshal a Remote form of the SphfGenerator instance.
Try putting your app jars in the jboss lib directory. If the error disappears, it is
an ear or deployer classpath problem.
--
Fred Loney
Enterprise Java Consultant
Spirited Software, Inc.
[EMAIL PROTECTED]
damian guy wrote:
> Hi,
>
> Can anyone tell me how to fix the problem outlined below?
>
> Thanks,
> Damian
> ----------------------------------------------------------------------
> FROM: philips.com
> DATE: 07/18/2001 08:53:43
> SUBJECT: [JBoss-user] My app deploys but lookup from servlet won't
> work ! HELP !
>
>
> Hello,
>
> I'm a newbye with JBoss and J2EE deployment and it's the first web-app
> I try
> to deploy with JBoss ans EmbeddedTomcat (JBoss 2.2 + Tomcat 3.2.1).
>
> I have made following archives :
> - First, a jar containg my session beans and the enitty
> interfaces
> they're using (entites are in
> another jar). When I test this SB with a simple client, it works
> well
> (without the following archives).
> - Then, a war containg my servlets, web pages and the interfaces
> of session beans.
> - Finally, a ear archive with an application.xml for my modules.
>
> During the deployment of this ear archive, everything seems to go
> well.
> I've got this messages :
> ...
> [Auto deploy] Auto deploy of
> file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
> [J2EE Deployer Default] Create application frontend.ear
> [J2EE Deployer Default] inflate and install module web-app.war
> [J2EE Deployer Default] install module ejb-app.jar
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [J2EE Deployer Default] Starting module web-app.war
> 2001-07-18 05:34:19 - ContextManager: Adding context Ctx( /frontend )
> [Container factory]
> Deploying:file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
> [Verifier] Verifying
> file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear/ejb1002.jar
> [Verifier]
> Bean : SphfGeneratorBean
> Method : public abstract SphfGenerator create() throws
> CreateException, RemoteException
> Section: 6.10.6
> Warning: The method return values in the home interface must be of
> valid
> types for RMI/IIOP.
> [Container factory] Deploying SphfGeneratorBean
> [Container factory] Deployed application:
> file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
> [J2EE Deployer Default] J2EE application:
> file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
> is deployed.
> ...
>
> This warning doesn't bother me (first time i deploy my session beans,
> i
> already get it but everything was fine).
> When I launch my simple client, everything works fine !
>
> But, when I try a servlet, I've got the following exception thrown :
>
> 2001-07-18 05:34:39 - Ctx( /frontend ): Exception in: R( /frontend +
> /servlet/DisplayPlansServlet
> + null) - java.lang.NoClassDefFoundError: $Proxy6
> at
> sun.reflect.GeneratedSerializationConstructorAccessor66.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at java.io.ObjectStreamClass.newInstance(Unknown Source)
> at java.io.ObjectInputStream.readOrdinaryObject(Unknown
> Source)
> at java.io.ObjectInputStream.readObject0(Unknown Source)
> at java.io.ObjectInputStream.readObject(Unknown Source)
> at java.rmi.MarshalledObject.get(Unknown Source)
> at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
> at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
> at javax.naming.InitialContext.lookup(Unknown Source)
> at
>
>pcc.intranet.frontend.sphf.servlet.DisplayPlansServlet.init(pcc/intranet/frontend/sphf/servlet/DisplayPlansServlet.java:87)
> at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
> .....
>
> The code in my servlet is just a lookup to my session bean (and
> interface
> classes are in Web-inf/classes).
> Why does it thrown a NoClassDefFound Error ? What is the $Proxy6 class
> ?
> I've tried to package my application more properly by putting the
> sessions
> interfaces into another jar and by adding
> a Class-Path entry to the manifest of my web module but I always got
> the same result !
> Could someone help me ? (it's gonna kill me ...)
>
> Regards,
> Laurent
>
> ps: sorry for the length of this mail
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user