Re: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Gregor Rayman

"Assenza, Chris" <[EMAIL PROTECTED]> writes:


> Okay...I'll rephrase that last one I sent. :)  You won't be able to deploy
> the EAR the way you want without properly using the Application Deployment
> Descriptor (application.xml).  Have you tried doing this?
>
> Here's a sample one I use for JBoss 2.0 w/ Tomcat 3.2b7, goes in META-INF of
> the EAR's contents.
>
> 
>  Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
>
> 
> App Name
> 
> 
> Warfile.war
> /usermanager
> 
> 
>
> 
> EJBJar.jar  
> 
> 

Yes, my application.xml should be ok. It looks like this:





 usermanager

 
 
  usermanager.war
  /usermanager
 
 

 
  usermanager.jar
 





And with the duplicated jars (usermanager-client.jar - interfaces)
and (struts.jar) (in ear's root and war/WEB-INF/lib) it works.
But I don't like duplicating those jars, only to support jasper's
jsp compiling. (I will haev to look for jasper's docu, perhaps
I can write the ant task)

--
gR











RE: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Assenza, Chris

Okay...I'll rephrase that last one I sent. :)  You won't be able to deploy
the EAR the way you want without properly using the Application Deployment
Descriptor (application.xml).  Have you tried doing this? 

Here's a sample one I use for JBoss 2.0 w/ Tomcat 3.2b7, goes in META-INF of
the EAR's contents.


http://java.sun.com/j2ee/dtds/application_1_2.dtd";>


App Name


Warfile.war
/usermanager
  



EJBJar.jar  
   


Chris

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 3:03 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: Struts & Jboss?


So I've tested some things:

1st I removed the struts.jar and my client.jar from app.jar/WEB-INF/lib and
placed them directly to ear. I've changed the manifest.mf to include those
two jars:

My apps name is usermanager

manifest.mf of usermanager.war:

Class-Path: ./usermanager-client.jar
Class-Path: ./struts.jar

these two files are in the root of usermanager.ear

struts.jar is nowhere else in any war, jar or lib or lib/ext or classpath.

Now the tomcat CAN find ActionServlet and *.do will be handled by
ActionServlet.
Action servlet CAN find all my Action and ActionForm classes.

Lo long so good. Unfortunately, tomcat's JSP compiler (jasper) cannot
compile my JSP files. Jasper has no access to my either struts.jar or to
usermanager-client.jar.

The only solution for this, is to include the files struts.jar and
usermanager-client.jar both in the EARs root AND in war/WEB-APPS/lib.

I really don't like this workaround.

One possible solution would be, to precompile all JSPs and include
alredy compiled servlets in my EAR. This would be a much better
solution anyway.

My question actually changes to this:

Does anybody know, how to compile JSPs to class or java files
in ant? And how to include them to web.xml?

--
gR





RE: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Assenza, Chris

What does your application.xml look like? 

Chris

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: Struts & Jboss?


"Ravindran Ramaiah" <[EMAIL PROTECTED]> wrote:

> Hi,
> I have tried JBoss+HP-Bluestone UBS 7.2 combination without any
> problems.
> Deployed EJB jar on JBoss and Application.war with HP-Bluestone UBS.
> 
> This combination works fine.
> 
> Thanks,
> Ravi

Yes, I have no problem when I deploy the ejb jar and the war separately.
The problems start only when I pack them togerther in an ear file and
then deploy only that one.

--
gR