Re: [5.5] path specified in context.xml not being used

2006-03-31 Thread Ritchie Gillam
It is mentioned here that if you want to use something different,  to
create a context.xml file specifying the path and docBase attributes. 
What if you want 2 applications to have different docBases?   

Ritchie 
Programmer Analyst





 [EMAIL PROTECTED] 31/03/2006 10:09 am 
 see also my other post in *Setting the context path for expanded
WARs* 
 
 On 24/03/06, Wang, Hansen [EMAIL PROTECTED] wrote:
 The path is ignored when you deploy webapps this way. Tomcat will
use
 the basename of the war file as the context path. If you want to
use
 something different than that, you can create a context.xml and put
in
 under the virtual host's conf direction (e.g.
 CATALINA_HOME/conf/Catalina/localhost). In this context.xml, you
can
 specify the context path and docBase.

Hi Nic and Hansen, thanks for this info, it's really useful.

Is this actually documented on the Tomcat site? I couldn't find
anything about it (in 
particular the renaming of context.xml to my#nested#path.xml)

Cheers,

Phil Wilson

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


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



Physical path outside of webapps directory

2006-03-29 Thread Ritchie Gillam
Hi all

I have searched the archives and has seen many posting on this but
still need more information.

Right now, I use Eclipse as my IDE.  When a project is ready for
testing I export to a WAR and use Tomcat's GUI Manager WAR file to
deploy option to deploy my application to my server.  

So far, I have been setting up a context.xml file under META-INF in
which I don't specify a path or docBase.  This works and as expected the
application deploys under the webapps folder (the default).   

What do I have to do to have the application reside in a physical
directory outside of webapps, for example, /data0/tomcat/home.  Make
changes to the existing context.xml?  Do I have to remove this xml and
create it under CATALINA_HOME/conf/Catalina/localhost with the name of
the app? 

My understanding is that if I add the docBase attribute specifying a
physical directory that should be all that is required but in both cases
above this do not work. Maybe it is because I can't simply deploy using
the Tomcat Manager the way I use to do it.

Sample of testApp.xml below

Context debug=0   antiResourceLocking=false  
antiJARLocking=false   reloadable=true 
docBase=/data0/tomcat/home
 Resource name=jdbc/hrm
   auth=Container
   type=javax.sql.DataSource
  ...
 / 
/Context

Any help is greatly appreciated.

JDK 1.5
Tomcat 5.5.7
Sun Solaris 9

Ritchie 
Programmer Analyst





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



Re: Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.

2006-01-19 Thread Ritchie Gillam
I just wanted to add the Hibernate is very good for dealing with Database stuff.

Ritchie 




 [EMAIL PROTECTED] 18/01/2006 9:04 pm 
 Ah, well, it's for things like this that we schedule a long test/fix
cycle, right?
Indeed... :(

Here the links to those frameworks:
http://www.springframework.org/ 
http://wicket.sourceforge.net/ 

Have fun.
Giorgio

On 1/19/06, Warrick Wilson [EMAIL PROTECTED] wrote:

  Hi,
  I'm in your same boat (like many I guess). In an effort to learn best
  pratice and avoiding to reinvent the wheel, I thought, it may be
 wise to
  stick with one of the several java web application frameworks.
  I'm trying with Spring, which seems quite good, but at least for me,
 it is
  not that easy to learn too. I just come across another one called
 Wicket,
  which between the other premises, says having focused on easier
 lerning
  curve.
  Hope it helps.
 
  Giorgio

 Giorgio,

 I appreciate your reply. I don't have a choice in the framework -
 that's already set. I'm just learning a lot of stuff - a Java refresh,
 JDBC, Tomcat, numerous Apache-related project acronyms, and places to
 go for information. I'll have to look at the two you mentioned, simply
 to fill in the blanks on what they are.

 I've put together something that's working for me for now. I (sadly)
 don't have a clue whether I'm totally misunderstanding something, or
 whether I've coded a potential show-stopping kludge into my program,
 but it currently _is_ running enough to let me get at the next thing
 on my task list for the project. Ah, well, it's for things like this
 that we schedule a long test/fix cycle, right?

 Thanks again.Warrick

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




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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Ritchie Gillam
Which version of JVM are you using?

Ritchie 




 [EMAIL PROTECTED] 18/01/2006 11:02:31 am 
 
Vidhi wrote:
i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be done?
i'm sending you my JSP pagae. kindly tell me what code should be  
written/added to execute it successfully.
i'd created the table named as user1 in oracle 8.0 and inserted some values  
in it.
the name of the database in which this table is been created is  prime.
 
Regards,
Vidhi
 
I do not use Oracle. I use MS Access driver. From Data Sources (ODBC) in  
WinXP, after selecting MS Access  as your database driver, create a blank  
database (anything.mdb) and populate it by running MadeDB, which should be run  
(compiled) from the same folder where you have your database files. Then create 
 a 
properties file listing the database created and that should go in the class  
folder of your web application.
 
Maybe for Oracle, you need to copy jdbc classes to lib. But above is for my  
webapp!
 
Hope it helps.



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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Ritchie Gillam
I believe that classes12.zip is for Version 1.2 and 1.3 only.  JRE5.0 uses 1.5. 
  Your solution would be to download ojdbc14.jar which is for JVM 1.4 or 1.5 
and put that in either you application/WEB-INF/lib directory or Tomcat's 
common/lib directory.

Follow this link to download ojdbc14.jar: 
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html 



Ritchie 




 [EMAIL PROTECTED] 18/01/2006 12:32 pm 
the one that comes with the latest rel of jre, jre5.0
 
Which version of JVM are you using?

Ritchie  




 [EMAIL PROTECTED] 18/01/2006 11:02:31 am  

Vidhi wrote:
i'd copied the classes12.zip from  C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be  done?
i'm sending you my JSP pagae. kindly tell me what code should be   
written/added to execute it successfully.
i'd created the table named as  user1 in oracle 8.0 and inserted some values  
in it.
the name of the  database in which this table is been created is   prime.

Regards,
Vidhi

I do not use Oracle. I use MS Access  driver. From Data Sources (ODBC) in  
WinXP, after selecting MS  Access  as your database driver, create a blank  
database  (anything.mdb) and populate it by running MadeDB, which should be 
run   
(compiled) from the same folder where you have your database files. Then  
create  a 
properties file listing the database created and that should  go in the class 
 
folder of your web application.

Maybe for  Oracle, you need to copy jdbc classes to lib. But above is for my  
 
webapp!

Hope it  helps.



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



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



How to redirect incoming requests?

2006-01-11 Thread Ritchie Gillam
I am trying to have all requests that come to the Tomcat Server be redirected 
to another web server.  What is the best/easiest was to do this?

I have Tomcat 5.5.7 installed and I do not have or want to install Apache.

I have did a search through the archives and have found nothing.

Any suggestions?

Thanks in advance,

Tomcat 5.5.7
Sun Solaris 9

Ritchie 





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



How to get Novell Id in Tomcat/Java

2006-01-09 Thread Ritchie Gillam
I have already searched the archives but have found nothing related to my 
problem.

I have a Phone Directory Java Application running on our Intranet.   If a user 
requires a change to their Phone record or someone else they send an email to 
our Call Centre requesting the change.   How can I get the Novell Id of the 
user and use it as the FROM email address to show who the email is coming from?

All I have read is about Active Directory and JNDIRealms which we are not using.

We are not doing any kind of authentication since this is running on the 
Intranet and all employees have access to this application.

Oracle 9i DB User authenication.
Tomcat 5.5.7
JDK 1.5.0
Sun Solaris 9

Thanks in advance


Ritchie 





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



Re: How to get Novell Id in Tomcat/Java

2006-01-09 Thread Ritchie Gillam
Sorry, in the Context tag we are connecting to the Database to get the Employee 
Phone Directory information but we are not authenicating using the web 
application itself.

Sorry for the confusion.  

Ritchie 




 [EMAIL PROTECTED] 09/01/2006 12:20 pm 
You can't unless they have authenticated to the web app, you do not
know who they are.

So, which is it then: We are not doing any kind of authentication
since this is running on the Intranet and all employees have access to
this application. or Oracle 9i DB User authenication?

I am confused...

:-D

Larry


On 1/9/06, Ritchie Gillam [EMAIL PROTECTED] wrote:
 I have already searched the archives but have found nothing related to my 
 problem.

 I have a Phone Directory Java Application running on our Intranet.   If a 
 user requires a change to their Phone record or someone else they send an 
 email to our Call Centre requesting the change.   How can I get the Novell Id 
 of the user and use it as the FROM email address to show who the email is 
 coming from?

 All I have read is about Active Directory and JNDIRealms which we are not 
 using.

 We are not doing any kind of authentication since this is running on the 
 Intranet and all employees have access to this application.

 Oracle 9i DB User authenication.
 Tomcat 5.5.7
 JDK 1.5.0
 Sun Solaris 9

 Thanks in advance


 Ritchie





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



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



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



Re: How to get Novell Id in Tomcat/Java

2006-01-09 Thread Ritchie Gillam
To be even more clearly the DB username and password to connect to the DB is 
coded in the context.xml file.

Ritchie 




 [EMAIL PROTECTED] 09/01/2006 12:20 pm 
You can't unless they have authenticated to the web app, you do not
know who they are.

So, which is it then: We are not doing any kind of authentication
since this is running on the Intranet and all employees have access to
this application. or Oracle 9i DB User authenication?

I am confused...

:-D

Larry


On 1/9/06, Ritchie Gillam [EMAIL PROTECTED] wrote:
 I have already searched the archives but have found nothing related to my 
 problem.

 I have a Phone Directory Java Application running on our Intranet.   If a 
 user requires a change to their Phone record or someone else they send an 
 email to our Call Centre requesting the change.   How can I get the Novell Id 
 of the user and use it as the FROM email address to show who the email is 
 coming from?

 All I have read is about Active Directory and JNDIRealms which we are not 
 using.

 We are not doing any kind of authentication since this is running on the 
 Intranet and all employees have access to this application.

 Oracle 9i DB User authenication.
 Tomcat 5.5.7
 JDK 1.5.0
 Sun Solaris 9

 Thanks in advance


 Ritchie





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



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



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



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-21 Thread Ritchie Gillam
How do I go about finding out the proper mime-mapping for WordPerfect or any 
other application?  Is this a site I can access to give me this information?

I tried with 
 mime-mapping
extensionwpd/extension
mime-typeapplication/vnd.wordperfect/mime-type
/mime-mapping

and all I get in binary code.  Any suggestions?

Thanks in advance.


Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 18/11/2005 3:55:16 pm 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Subject: How to see a Word or WordPerfect document in Tomcat?
 
 If I try to do this specifying a application path, for example, 
 http://localhost:8084/Documents/test.wpd I get a 
 ...resource it not available error.   Can this be 
 accomplished using Tomcat?

Have you set the appropriate mime-mapping in conf/web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



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



RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-21 Thread Ritchie Gillam
I have tried many different combinations including application/wordperfect.  If 
I click on a .wpd file it does open WordPerfect as expected.   The mime mapping 
behaves differently using Firefox, it asks me do I want to open the file using 
WordPerfect.   

So here is the questions  What mime mapping or configuration can I use in 
web.xml so that WordPerfect will open automatically independent of a user's 
browser?  

Thanks in advance

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 21/11/2005 10:59:55 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Subject: RE: How to see a Word or WordPerfect document in Tomcat?
 
 I tried with 
  mime-mapping
 extensionwpd/extension
 mime-typeapplication/vnd.wordperfect/mime-type
 /mime-mapping
 
 and all I get in binary code.  Any suggestions?

Have you tried removing the vnd. and using just wordperfect (without
the quotes)?  I assume you're running on Windows; does double-clicking
on a .wpd file automatically start WordPerfect?  Have you tried it using
some browser other than IE (e.g., Firefox)?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



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



How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Ritchie Gillam
I have an application that has a few WordPerfect documents associated with it.  
 If I run this directly in a Browser without using Tomcat, IE opens WordPerfect 
and displays the document perfectly.  If I try to do this specifying a 
application path, for example, http://localhost:8084/Documents/test.wpd I get a 
...resource it not available error.   Can this be accomplished using Tomcat?  
I know I could use the Apache Server but I don't want to do that.

JVM 1.5.0_02
Tomcat 5.5.7

Any help is greatly appreciated.

Thanks in advance

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583


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



Newbie question - How to verify version of Tomcat?

2005-11-17 Thread Ritchie Gillam
Should be an easy questions for the Tomcat users out there.

I know I have Tomcat installed but I did the installation  many moons ago.  Is 
there a command that I can run from Windows that will tell me what version I am 
running (have installed)?

Any help is appreciated.  



Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583


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



Re: My first Aproach

2005-10-17 Thread Ritchie Gillam
I would recommend that you look at the newer Technology JSF (Java Server Faces) 
which sits on top of JSP.   This is easier to use and will probably be the 
future.

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/16/05 12:52 pm 
Claudio Veas wrote:
 
 Hello my name is Claudio Veas Im from Argentina and I have successfully
 installed Tomcat 5.0.28 if Im not mistaken. This is the first time with
 Tomcat so I wanted to ask you people which should be my first step into the
 world of web applications you know ( JSP, EJB) but ima total newbie in all
 this so if you can help me start Ill apreciate it.
 
 Thanks on advance
 
 Claudio Veas
 
 
 PD:
 
 Im from Argentina and My english is not so good so excuse any mistake in my 
 grammar 


Hello Claudio.  Since you are just starting to learn, I would get the 
latest Java SDK (5.0) and download Tomcat 5.5.12 instead.  I don't see 
any reason to use the older 5.0.28.

I'm starting also--the book I'm currently going through is Beginning 
JavaServer Pages[1] to learn about JSP's, so far, through page 108, it's 
been pretty helpful for me. I'm glad I got it, although some of the 
Amazon reviews for it have not been the best (avg. 3.5/5 stars).

I would forget about EJB until you're fully comfortable with Servlets, 
JSP, JavaScript, CSS, etc.  You may never need to work with EJB's anyway 
(and Tomcat doesn't support them.)

Glen

PS:  What does PD mean?  ;-)

[1] 
http://www.amazon.com/exec/obidos/tg/detail/-/076457485X/104-0665057-2746346?v=glance
 

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



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