You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by santhosh <sa...@eximsoft.com> on 2003/04/11 16:48:23 UTC

war structure problm

Hello everybody,

I have created war file. war structure is as follows.

root
    |
    |
    WEB-INF
            |
            |
            classes
                    |
                    |
                    com
                          |
                          |
                          fjb(system.class)

my class is system.class and is in package com.fjb    If i deploy this war in my system in jboss with the above directory structure  its deploying fine.   But in others system its not deploying.  Its giving the exception  classNotFoundException.  At the same time if i put my classes directly under root directory its working in their system but not in mine.   Not only this war but any war with the above structure is not working in their system at the same time its working in  my system.  According to sun specification classes should be inside WEB-INF/classes directory.  Any idea about the problem?? 
                  

  
Thanx with regds
santhosh hegde A

Re: war structure problm

Posted by Nicolas De Loof <ni...@cgey.com>.
Be carreful to use "WEB-INF" (uppercase) directory for your classes and lib directories. Some (windows) system will not
take it into account, but Unixes will !

Nico.


----- Original Message -----
From: "santhosh" <sa...@eximsoft.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, April 11, 2003 5:05 PM
Subject: Re: war structure problm


> It is in webapp .  Even if i give any other name to the class same problem.
> my question is why this works in my system and not in others.  why any war
> file with classes under web-inf/classes does not work in others system.  any
> idea??
> ----- Original Message -----
> From: "Nicolas De Loof" <ni...@cgey.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Friday, April 11, 2003 8:29 PM
> Subject: Re: war structure problm
>
>
> > Is this class used in webapp or in an EJB ? If you use it in EJB, you have
> to put it on EJB container classpath,
> > conforming to J2EE spec.
> >
> > Nico.
> >
> > PS : Using classes name that conflict whith java.lang classes names is not
> a good idea IMHO.
> >
> >
> >
> >
> >
> > Hello everybody,
> >
> > I have created war file. war structure is as follows.
> >
> > root
> >     |
> >     |
> >     WEB-INF
> >             |
> >             |
> >             classes
> >                     |
> >                     |
> >                     com
> >                           |
> >                           |
> >                           fjb(system.class)
> >
> > my class is system.class and is in package com.fjb    If i deploy this war
> in my system in jboss with the above
> > directory structure  its deploying fine.   But in others system its not
> deploying.  Its giving the exception
> > classNotFoundException.  At the same time if i put my classes directly
> under root directory its working in their system
> > but not in mine.   Not only this war but any war with the above structure
> is not working in their system at the same
> > time its working in  my system.  According to sun specification classes
> should be inside WEB-INF/classes directory.  Any
> > idea about the problem??
> >
> >
> >
> > Thanx with regds
> > santhosh hegde A
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: war structure problm

Posted by santhosh <sa...@eximsoft.com>.
It is in webapp .  Even if i give any other name to the class same problem.
my question is why this works in my system and not in others.  why any war
file with classes under web-inf/classes does not work in others system.  any
idea??
----- Original Message -----
From: "Nicolas De Loof" <ni...@cgey.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, April 11, 2003 8:29 PM
Subject: Re: war structure problm


> Is this class used in webapp or in an EJB ? If you use it in EJB, you have
to put it on EJB container classpath,
> conforming to J2EE spec.
>
> Nico.
>
> PS : Using classes name that conflict whith java.lang classes names is not
a good idea IMHO.
>
>
>
>
>
> Hello everybody,
>
> I have created war file. war structure is as follows.
>
> root
>     |
>     |
>     WEB-INF
>             |
>             |
>             classes
>                     |
>                     |
>                     com
>                           |
>                           |
>                           fjb(system.class)
>
> my class is system.class and is in package com.fjb    If i deploy this war
in my system in jboss with the above
> directory structure  its deploying fine.   But in others system its not
deploying.  Its giving the exception
> classNotFoundException.  At the same time if i put my classes directly
under root directory its working in their system
> but not in mine.   Not only this war but any war with the above structure
is not working in their system at the same
> time its working in  my system.  According to sun specification classes
should be inside WEB-INF/classes directory.  Any
> idea about the problem??
>
>
>
> Thanx with regds
> santhosh hegde A
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: war structure problm

Posted by Nicolas De Loof <ni...@cgey.com>.
Is this class used in webapp or in an EJB ? If you use it in EJB, you have to put it on EJB container classpath,
conforming to J2EE spec.

Nico.

PS : Using classes name that conflict whith java.lang classes names is not a good idea IMHO.





Hello everybody,

I have created war file. war structure is as follows.

root
    |
    |
    WEB-INF
            |
            |
            classes
                    |
                    |
                    com
                          |
                          |
                          fjb(system.class)

my class is system.class and is in package com.fjb    If i deploy this war in my system in jboss with the above
directory structure  its deploying fine.   But in others system its not deploying.  Its giving the exception
classNotFoundException.  At the same time if i put my classes directly under root directory its working in their system
but not in mine.   Not only this war but any war with the above structure is not working in their system at the same
time its working in  my system.  According to sun specification classes should be inside WEB-INF/classes directory.  Any
idea about the problem??



Thanx with regds
santhosh hegde A


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org