Re: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Erik Price


Lior Shliechkorn wrote:

I had a bunch of problems with that until I packaged the classes and then it had no problem finding the class files. Give that a try.


I too made the mistake of putting all of my classes directly under 
WEB-INF/classes.  Now I would like to put them into a proper package, 
but cannot -- CVS knows the directory structure that I have now, and if 
I move the classes into a new directory structure (the package directory 
structure com/ptc/appname) then CVS will get all gorked up.

Does anyone have advice for this scenario?  Surely I must not be the 
first person who needed to rearrange directories for a webapp using CVS...


Erik


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Raible, Matt
Use Ant to build everything - and tell it where you want your compiled
classes to end up.

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 10:07 AM
To: Tomcat Users List
Subject: Re: Classes not being found in app's WEB-INF directory.




Lior Shliechkorn wrote:
 I had a bunch of problems with that until I packaged the classes and then
it had no problem finding the class files. Give that a try.

I too made the mistake of putting all of my classes directly under 
WEB-INF/classes.  Now I would like to put them into a proper package, 
but cannot -- CVS knows the directory structure that I have now, and if 
I move the classes into a new directory structure (the package directory 
structure com/ptc/appname) then CVS will get all gorked up.

Does anyone have advice for this scenario?  Surely I must not be the 
first person who needed to rearrange directories for a webapp using CVS...


Erik


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Erik Price


Raible, Matt wrote:

Use Ant to build everything - and tell it where you want your compiled
classes to end up.


That's a good idea.  I am using Ant currently, but hadn't thought of 
doing this.  The only problem is that I use NetBeans, which requires 
that the source code be stored in the proper package directory structures.

But, now that I think of it, I can use Ant to rearrange the source files 
to the appropriate directory structure upon checkout, so that I can work 
with them.  In other words, a target that builds the package directory 
structure and copies the files to their appropriate places.

Can Ant read the package declarations of the source files to determine 
where they should be placed, or will I have to hard code the paths into 
the Copy tasks?



Erik


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Tim Moore
 -Original Message-
 From: Erik Price [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 17, 2003 1:07 PM
 To: Tomcat Users List
 Subject: Re: Classes not being found in app's WEB-INF directory.
 
 
 
 
 Raible, Matt wrote:
  Use Ant to build everything - and tell it where you want 
 your compiled 
  classes to end up.
 
 That's a good idea.  I am using Ant currently, but hadn't thought of 
 doing this.  The only problem is that I use NetBeans, which requires 
 that the source code be stored in the proper package 
 directory structures.
 
 But, now that I think of it, I can use Ant to rearrange the 
 source files 
 to the appropriate directory structure upon checkout, so that 
 I can work 
 with them.  In other words, a target that builds the package 
 directory 
 structure and copies the files to their appropriate places.
 
 Can Ant read the package declarations of the source files to 
 determine 
 where they should be placed, or will I have to hard code the 
 paths into 
 the Copy tasks?

It wouldn't be hard to write a custom task to do that.

Seems like it would be better to fix the source tree structure in CVS,
though. It's kind of a PITA, but once it's done, it's done.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




OT: Re: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Erik Price


Tim Moore wrote:


Can Ant read the package declarations of the source files to 
determine 
where they should be placed, or will I have to hard code the 
paths into 
the Copy tasks?


It wouldn't be hard to write a custom task to do that.

Seems like it would be better to fix the source tree structure in CVS,
though. It's kind of a PITA, but once it's done, it's done.


I agree -- it just doesn't seem right to have a flattened hierarchy in 
CVS.  But I thought that in CVS you can't change the directory 
structure.  You can add new files and dirs, but you can't remove old 
dirs and move files from old dirs.


Erik


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



RE: Re: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Tim Moore
 -Original Message-
 From: Erik Price [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 17, 2003 1:29 PM
 To: Tomcat Users List
 Subject: OT: Re: Classes not being found in app's WEB-INF directory.
 
 
 
 
 Tim Moore wrote:
 
 Can Ant read the package declarations of the source files to
 determine 
 where they should be placed, or will I have to hard code the 
 paths into 
 the Copy tasks?
  
  
  It wouldn't be hard to write a custom task to do that.
  
  Seems like it would be better to fix the source tree 
 structure in CVS, 
  though. It's kind of a PITA, but once it's done, it's done.
 
 I agree -- it just doesn't seem right to have a flattened 
 hierarchy in 
 CVS.  But I thought that in CVS you can't change the directory 
 structure.  You can add new files and dirs, but you can't remove old 
 dirs and move files from old dirs.

It's possible, it just sucks.

Check out the docs:
http://www.cvshome.org/docs/manual/cvs_7.html
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Classes not being found in app's WEB-INF directory.

2003-01-17 Thread Erik Price


Tim Moore wrote:


It wouldn't be hard to write a custom task to do that.

Seems like it would be better to fix the source tree 

structure in CVS, 

though. It's kind of a PITA, but once it's done, it's done.


I agree -- it just doesn't seem right to have a flattened 
hierarchy in 
CVS.  But I thought that in CVS you can't change the directory 
structure.  You can add new files and dirs, but you can't remove old 
dirs and move files from old dirs.


It's possible, it just sucks.

Check out the docs:
http://www.cvshome.org/docs/manual/cvs_7.html


Tim:  Hey thanks!  It wasn't really as bad as I thought.  I suppose it's 
easier since I'm the only developer on this project, but I just mv'd the 
files, removed them from cvs, and added the new ones (the new locations, 
that is).  The only drawback is that the versioning on these files 
starts over, but that doesn't really matter in my case.  After adding 
the package declarations to the source files, then deploying and 
testing, I'm now properly packaged up.

I'm glad you sent me that link, the docs motivated me to just do it and 
now I've nipped it in the bud so I won't have to deal with it when I 
have far more files, down the road.  Thanks again.


Erik


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: Classes not being found in app's WEB-INF directory.

2003-01-16 Thread Lior Shliechkorn

I had a bunch of problems with that until I packaged the classes and then it had no 
problem finding the class files. Give that a try.
Hope it helps
 Lott, Carey [EMAIL PROTECTED] wrote:Hi,
I am running tomcat4.0.4 as a standalone on Solaris 7. Simple servlets that
don't need any custom built classes run fine within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory. However, servlets
that are dependent on other custom classes will not run when all of the
needed classes are found within the
$CATALINA_HOME/webapps/esd/WEB-INF/classes directory, but they do run when
the dependent classes are found within the $CATALINA_HOME/classes directory.
I don't understand. I thought by default it always looks in the
WEB-INF/classes and WEB-INF/lib directories before looking anywhere else for
needed classes. 

The fact that it does run is great, but since we have to have the classes in
$CATALINA_HOME/classes the automatic reload function doesn't work. And for
some reason stopping and starting tomcat doesn't reload the classes in
$CATALINA_HOME/classes either. Does anybody have any ideas what I am
missing? I know it has to be something in the configuration, but I don't
know what. 

Thanks in advance for the help!!!

- Carey - 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now