Re: [JBoss-user] Embedded Tomcat

2001-07-19 Thread damian guy


Ok, Solved this one. j2sdk1.4 was the culprit. 1.3.1 works a treat.

> 
> I am trying to run a simple J2EE app using JBoss-2.2.2_Tomcat-3.2.2.
> 
> Deploys Ok, and I can access EJBs from a Standalone java client.
> Intergartion with JSPs is a problem. I keep getting NoClassDefFound
> exceptions on $Proxy classes. I have worked out that the $Proxy classes
> are JBoss generated wrappers. Now the problem I am having as is evident
> from the NoClassDefFound error is that the wrong $Proxy class is being
> instantiated. I have proven this by looking in the JNDI tree and finding
> that the offendind $Proxy class does not exist. I can however load a
> legitimate $Proxy class from a JSP.
> 
> Can someone **please** tell me why tomcat is attempting to load invalid
> $Proxy classes? How can I fix this?
> 
> It shouldn't be this hard!
> 
> TIA,
> Damian
> 
> ___
> 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



[JBoss-user] Embedded Tomcat

2001-07-19 Thread damian guy

I am trying to run a simple J2EE app using JBoss-2.2.2_Tomcat-3.2.2.

Deploys Ok, and I can access EJBs from a Standalone java client.
Intergartion with JSPs is a problem. I keep getting NoClassDefFound
exceptions on $Proxy classes. I have worked out that the $Proxy classes
are JBoss generated wrappers. Now the problem I am having as is evident
from the NoClassDefFound error is that the wrong $Proxy class is being
instantiated. I have proven this by looking in the JNDI tree and finding
that the offendind $Proxy class does not exist. I can however load a
legitimate $Proxy class from a JSP.

Can someone **please** tell me why tomcat is attempting to load invalid
$Proxy classes? How can I fix this?

It shouldn't be this hard!

TIA,
Damian

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!

2001-07-19 Thread damian guy

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