Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico
--- sven morales [EMAIL PROTECTED] wrote:
 Hi,
 Are you putting your classes at tomcat5/webapps/yourwebapp/WEB-INF/classes ?

What I outlined in my email is that when I don't do the above
because I use my own Context docBase=C:\myWebApp path=/something

Tomcat cannot find the resources as follows:
C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
C:\myWebApp\WEB-INF\classes\log4j.properties

Is that supposed to be the case?

And when I install the web application to
CATALINA_HOME/webapps/app_folder then it can find

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml and
CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties

which I'm happy about but spent a lot of time to get to.

Is there some further attributes for a Context in the case where
docBase isn't CATALINA_HOME/webapps/app_folder ?

Rico.




 or the corresponding
 tomcat5/webapps/youwebapp/WEB-INF/lib if it is
 archived?
 
 aka_Sergio
 
 
 --- Rico [EMAIL PROTECTED] wrote:
 
  Hello Everyone.
  I'm using Tomcat 4.1.31, and observed a similar
  problem on 4.1.18.
  
  It is possible to deploy web applications to a
  location of one's
  choice, other than
  CATALINA_HOME/webapps/app_folder, by adding
  a Context to server.xml. 
  With such a setup, I've been stuck with Tomcat not
  seeing resources
  that the documentation on their respective websites
  claim to be just
  a matter of placing in WEB-INF/classes and people
  confirming success at it.
  Examples are log4j.properties, hibernate.properties
  and hibernate.cfg.xml.
  
  So, is this the expected behaviour?
  If I install the web application in e.g c:\\myWebApp
  I'd consistently have Tomcat complaining as follows:
  
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:483)
  - Hibernate 2.1.8
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:512)
  - hibernate.properties not found
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:543)
  - using CGLIB reflection optimizer
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:572)
  - using JDK 1.4 java.sql.Timestamp handling
  INFO [http-8080-Processor25] cfg.Configuration
  (configure:909)
  - configuring from resource: /hibernate.cfg.xml
  INFO [http-8080-Processor25] cfg.Configuration
  (getConfigurationInputStream:881)
  - Configuration resource: /hibernate.cfg.xml
  WARN [http-8080-Processor25] cfg.Configuration
  (getConfigurationInputStream:885)
  - /hibernate.cfg.xml not found
  ERROR [http-8080-Processor25]
  persistence.HibernateUtil (clinit:19)
  - Initial SessionFactory creation failed.
  net.sf.hibernate.HibernateException:
  /hibernate.cfg.xml not found
  
  Possible workaround's include initialization servlet
  for log4j and
  use of ResourceBundle to pass in an absolute path
  for Hibernate.
  But still, the documentation says place the config
  files under WEB-INF/classes
  and they'll be found...
  Not so, unless it's
  CATALINA_HOME/webapps/WEB-INF/classes.
  
  Rico.
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - What will yours do?
 http://my.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread sven morales
Hi,
   I have no problem doing that in linux, having the 
jsp files and  classes in another directory besides
being under $CATALINA_HOME.
  I wonder if you can try using a forward slash in
windows.

aka_sergio
  
--- Rico [EMAIL PROTECTED] wrote:

 --- sven morales [EMAIL PROTECTED] wrote:
  Hi,
  Are you putting your classes at
 tomcat5/webapps/yourwebapp/WEB-INF/classes ?
 
 What I outlined in my email is that when I don't do
 the above
 because I use my own Context docBase=C:\myWebApp
 path=/something
 
 Tomcat cannot find the resources as follows:
 C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
 C:\myWebApp\WEB-INF\classes\log4j.properties
 
 Is that supposed to be the case?
 
 And when I install the web application to
 CATALINA_HOME/webapps/app_folder then it can
 find
 

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
 and

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
 
 which I'm happy about but spent a lot of time to get
 to.
 
 Is there some further attributes for a Context in
 the case where
 docBase isn't CATALINA_HOME/webapps/app_folder ?
 
 Rico.
 
 
 
 
  or the corresponding
  tomcat5/webapps/youwebapp/WEB-INF/lib if it is
  archived?
  
  aka_Sergio
  
  
  --- Rico [EMAIL PROTECTED] wrote:
  
   Hello Everyone.
   I'm using Tomcat 4.1.31, and observed a similar
   problem on 4.1.18.
   
   It is possible to deploy web applications to a
   location of one's
   choice, other than
   CATALINA_HOME/webapps/app_folder, by adding
   a Context to server.xml. 
   With such a setup, I've been stuck with Tomcat
 not
   seeing resources
   that the documentation on their respective
 websites
   claim to be just
   a matter of placing in WEB-INF/classes and
 people
   confirming success at it.
   Examples are log4j.properties,
 hibernate.properties
   and hibernate.cfg.xml.
   
   So, is this the expected behaviour?
   If I install the web application in e.g
 c:\\myWebApp
   I'd consistently have Tomcat complaining as
 follows:
   
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:483)
   - Hibernate 2.1.8
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:512)
   - hibernate.properties not found
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:543)
   - using CGLIB reflection optimizer
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:572)
   - using JDK 1.4 java.sql.Timestamp handling
   INFO [http-8080-Processor25] cfg.Configuration
   (configure:909)
   - configuring from resource:
 /hibernate.cfg.xml
   INFO [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:881)
   - Configuration resource: /hibernate.cfg.xml
   WARN [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:885)
   - /hibernate.cfg.xml not found
   ERROR [http-8080-Processor25]
   persistence.HibernateUtil (clinit:19)
   - Initial SessionFactory creation failed.
   net.sf.hibernate.HibernateException:
   /hibernate.cfg.xml not found
   
   Possible workaround's include initialization
 servlet
   for log4j and
   use of ResourceBundle to pass in an absolute
 path
   for Hibernate.
   But still, the documentation says place the
 config
   files under WEB-INF/classes
   and they'll be found...
   Not so, unless it's
   CATALINA_HOME/webapps/WEB-INF/classes.
   
   Rico.
   
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
   protection around 
   http://mail.yahoo.com 
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
  
  __ 
  Do you Yahoo!? 
  The all-new My Yahoo! - What will yours do?
  http://my.yahoo.com 
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - Get yours free! 
 http://my.yahoo.com 
  
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico

--- sven morales [EMAIL PROTECTED] wrote:

 Hi,
I have no problem doing that in linux, having the 
 jsp files and  classes in another directory besides
 being under $CATALINA_HOME.
   I wonder if you can try using a forward slash in
 windows.

There's no difference. The problem persists, exactly the same.

Rico.

 aka_sergio
   
 --- Rico [EMAIL PROTECTED] wrote:
 
  --- sven morales [EMAIL PROTECTED] wrote:
   Hi,
   Are you putting your classes at
  tomcat5/webapps/yourwebapp/WEB-INF/classes ?
  
  What I outlined in my email is that when I don't do
  the above
  because I use my own Context docBase=C:\myWebApp
  path=/something
  
  Tomcat cannot find the resources as follows:
  C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
  C:\myWebApp\WEB-INF\classes\log4j.properties
  
  Is that supposed to be the case?
  
  And when I install the web application to
  CATALINA_HOME/webapps/app_folder then it can
  find
  
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
  and
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
  
  which I'm happy about but spent a lot of time to get
  to.
  
  Is there some further attributes for a Context in
  the case where
  docBase isn't CATALINA_HOME/webapps/app_folder ?
  
  Rico.



__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Jason Bainbridge
On Sun, 20 Feb 2005 16:50:39 -0800 (PST), Rico [EMAIL PROTECTED] wrote:
 
 --- sven morales [EMAIL PROTECTED] wrote:
 
  Hi,
 I have no problem doing that in linux, having the
  jsp files and  classes in another directory besides
  being under $CATALINA_HOME.
I wonder if you can try using a forward slash in
  windows.
 
 There's no difference. The problem persists, exactly the same.

Try setting override=true in your context, although that is just an
educated guess so no guarantee. :)

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico
--- Jason Bainbridge [EMAIL PROTECTED] wrote:
 On Sun, 20 Feb 2005 16:50:39 -0800 (PST), Rico [EMAIL PROTECTED] wrote:
  --- sven morales [EMAIL PROTECTED] wrote:
  
   Hi,
  I have no problem doing that in linux, having the
   jsp files and  classes in another directory besides
   being under $CATALINA_HOME.
 I wonder if you can try using a forward slash in
   windows.
  
  There's no difference. The problem persists, exactly the same.
 
 Try setting override=true in your context, although that is just an
 educated guess so no guarantee. :)

Still no joy. Same problem.

Rico.



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Hassan Schroeder
Rico wrote:
What I outlined in my email is that when I don't do the above
because I use my own Context docBase=C:\myWebApp path=/something
Tomcat cannot find the resources as follows:
C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
OK, just took a look at an old Windows(2k) machine w/4.x stuff on it;
those apps, which all worked fine outside the $CATALINA_HOME/webapps
directory, used forward slashes like:
   Context docBase=C:/myWebApp path=/something
You might check the appBase definition of your Host element :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Matt
Unless you change the slash type explicitly (according to one out-of-date
doc, of which there are so many floating around), doesn't Tomcat expect
forward slashes, even on Windows?

Anyway, just using forward slashes doesn't seem to be the cure (unless
Rico and I each have part of the actual, full solution).  Does anyone have
success and an actual step-by-step doc they can share?  Although not a
solution, it's nice to see that I'm not the only one totally confounded by
the lack of solid, complete docs/instructions on this CONTEXT tag mess.
Nothing should be this difficult, but now I know why some people have
recommended just going with jspISAPI for $50...cheap in retrospect of the
time I've spent on this so far.  If I wasn't so intent on understanding
exactly what's going on, I might have bought it by now...
;^)

Thanks,
-Matt


On Sun, 20 Feb 2005, sven morales wrote:

 Hi,
I have no problem doing that in linux, having the
 jsp files and  classes in another directory besides
 being under $CATALINA_HOME.
   I wonder if you can try using a forward slash in
 windows.

 aka_sergio

 --- Rico [EMAIL PROTECTED] wrote:

  --- sven morales [EMAIL PROTECTED] wrote:
   Hi,
   Are you putting your classes at
  tomcat5/webapps/yourwebapp/WEB-INF/classes ?
 
  What I outlined in my email is that when I don't do
  the above
  because I use my own Context docBase=C:\myWebApp
  path=/something
 
  Tomcat cannot find the resources as follows:
  C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
  C:\myWebApp\WEB-INF\classes\log4j.properties
 
  Is that supposed to be the case?
 
  And when I install the web application to
  CATALINA_HOME/webapps/app_folder then it can
  find
 
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
  and
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
 
  which I'm happy about but spent a lot of time to get
  to.
 
  Is there some further attributes for a Context in
  the case where
  docBase isn't CATALINA_HOME/webapps/app_folder ?
 
  Rico.
 
 
 
 
   or the corresponding
   tomcat5/webapps/youwebapp/WEB-INF/lib if it is
   archived?
  
   aka_Sergio
  
  
   --- Rico [EMAIL PROTECTED] wrote:
  
Hello Everyone.
I'm using Tomcat 4.1.31, and observed a similar
problem on 4.1.18.
   
It is possible to deploy web applications to a
location of one's
choice, other than
CATALINA_HOME/webapps/app_folder, by adding
a Context to server.xml.
With such a setup, I've been stuck with Tomcat
  not
seeing resources
that the documentation on their respective
  websites
claim to be just
a matter of placing in WEB-INF/classes and
  people
confirming success at it.
Examples are log4j.properties,
  hibernate.properties
and hibernate.cfg.xml.
   
So, is this the expected behaviour?
If I install the web application in e.g
  c:\\myWebApp
I'd consistently have Tomcat complaining as
  follows:
   
INFO [http-8080-Processor25] cfg.Environment
(clinit:483)
- Hibernate 2.1.8
INFO [http-8080-Processor25] cfg.Environment
(clinit:512)
- hibernate.properties not found
INFO [http-8080-Processor25] cfg.Environment
(clinit:543)
- using CGLIB reflection optimizer
INFO [http-8080-Processor25] cfg.Environment
(clinit:572)
- using JDK 1.4 java.sql.Timestamp handling
INFO [http-8080-Processor25] cfg.Configuration
(configure:909)
- configuring from resource:
  /hibernate.cfg.xml
INFO [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:881)
- Configuration resource: /hibernate.cfg.xml
WARN [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:885)
- /hibernate.cfg.xml not found
ERROR [http-8080-Processor25]
persistence.HibernateUtil (clinit:19)
- Initial SessionFactory creation failed.
net.sf.hibernate.HibernateException:
/hibernate.cfg.xml not found
   
Possible workaround's include initialization
  servlet
for log4j and
use of ResourceBundle to pass in an absolute
  path
for Hibernate.
But still, the documentation says place the
  config
files under WEB-INF/classes
and they'll be found...
Not so, unless it's
CATALINA_HOME/webapps/WEB-INF/classes.
   
Rico.
   
   
  __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
  
  
  
   __
   Do you Yahoo!?
   The all-new My Yahoo! - What will yours do?
   http://my.yahoo.com
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For 

Visibility of resources under WEB-INF/classes

2005-02-19 Thread Rico
Hello Everyone.
I'm using Tomcat 4.1.31, and observed a similar problem on 4.1.18.

It is possible to deploy web applications to a location of one's
choice, other than CATALINA_HOME/webapps/app_folder, by adding
a Context to server.xml. 
With such a setup, I've been stuck with Tomcat not seeing resources
that the documentation on their respective websites claim to be just
a matter of placing in WEB-INF/classes and people confirming success at it.
Examples are log4j.properties, hibernate.properties and hibernate.cfg.xml.

So, is this the expected behaviour?
If I install the web application in e.g c:\\myWebApp
I'd consistently have Tomcat complaining as follows:

INFO [http-8080-Processor25] cfg.Environment (clinit:483)
- Hibernate 2.1.8
INFO [http-8080-Processor25] cfg.Environment (clinit:512)
- hibernate.properties not found
INFO [http-8080-Processor25] cfg.Environment (clinit:543)
- using CGLIB reflection optimizer
INFO [http-8080-Processor25] cfg.Environment (clinit:572)
- using JDK 1.4 java.sql.Timestamp handling
INFO [http-8080-Processor25] cfg.Configuration (configure:909)
- configuring from resource: /hibernate.cfg.xml
INFO [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:881)
- Configuration resource: /hibernate.cfg.xml
WARN [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:885)
- /hibernate.cfg.xml not found
ERROR [http-8080-Processor25] persistence.HibernateUtil (clinit:19)
- Initial SessionFactory creation failed.
net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found

Possible workaround's include initialization servlet for log4j and
use of ResourceBundle to pass in an absolute path for Hibernate.
But still, the documentation says place the config files under WEB-INF/classes
and they'll be found...
Not so, unless it's CATALINA_HOME/webapps/WEB-INF/classes.

Rico.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Visibility of resources under WEB-INF/classes

2005-02-19 Thread sven morales
Hi,
   Are you putting your classes at 
tomcat5/webapps/yourwebapp/WEB-INF/classes ?
or the corresponding
tomcat5/webapps/youwebapp/WEB-INF/lib if it is
archived?

aka_Sergio


--- Rico [EMAIL PROTECTED] wrote:

 Hello Everyone.
 I'm using Tomcat 4.1.31, and observed a similar
 problem on 4.1.18.
 
 It is possible to deploy web applications to a
 location of one's
 choice, other than
 CATALINA_HOME/webapps/app_folder, by adding
 a Context to server.xml. 
 With such a setup, I've been stuck with Tomcat not
 seeing resources
 that the documentation on their respective websites
 claim to be just
 a matter of placing in WEB-INF/classes and people
 confirming success at it.
 Examples are log4j.properties, hibernate.properties
 and hibernate.cfg.xml.
 
 So, is this the expected behaviour?
 If I install the web application in e.g c:\\myWebApp
 I'd consistently have Tomcat complaining as follows:
 
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:483)
 - Hibernate 2.1.8
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:512)
 - hibernate.properties not found
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:543)
 - using CGLIB reflection optimizer
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:572)
 - using JDK 1.4 java.sql.Timestamp handling
 INFO [http-8080-Processor25] cfg.Configuration
 (configure:909)
 - configuring from resource: /hibernate.cfg.xml
 INFO [http-8080-Processor25] cfg.Configuration
 (getConfigurationInputStream:881)
 - Configuration resource: /hibernate.cfg.xml
 WARN [http-8080-Processor25] cfg.Configuration
 (getConfigurationInputStream:885)
 - /hibernate.cfg.xml not found
 ERROR [http-8080-Processor25]
 persistence.HibernateUtil (clinit:19)
 - Initial SessionFactory creation failed.
 net.sf.hibernate.HibernateException:
 /hibernate.cfg.xml not found
 
 Possible workaround's include initialization servlet
 for log4j and
 use of ResourceBundle to pass in an absolute path
 for Hibernate.
 But still, the documentation says place the config
 files under WEB-INF/classes
 and they'll be found...
 Not so, unless it's
 CATALINA_HOME/webapps/WEB-INF/classes.
 
 Rico.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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