RE: Manager App Doesn't Reload wars

2003-12-19 Thread Sleeper, Jesse
Art,

I assume you could not get the Deploy and Undeploy features to work either since you 
are using a work around?
Consequently, I found that the redeploying [with the details below] doesn't work in 
any version of Tomcat 4.x.
This is a problem because the more applications I realease the less likely I'm going 
to be able to bring down the server for upgrades in applications.
I have found some poor work arounds, but I prefer the process that's documented work 
as stated because it's a wonderful practice.

Thanks though :)

Jester

-Original Message-
From: D'Alessandro, Arthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 1:11 PM
To: Tomcat Users List
Subject: RE: Manager App Doesn't Reload wars


I pre-create my contexts within the server xml file, and point the
source to the war file.  I can then upgrade the war file, then
stop/start the webapp from the manager application.  This recreates the
webapp from the new war.


-Art 

-Original Message-
From: Sleeper, Jesse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 1:06 PM
To: [EMAIL PROTECTED]
Subject: Manager App Doesn't Reload wars

I'll give it another shot.

In Tomcat 4.1.1.2, wars can be Deployed on a Hot Server for the first
time but not Undeployed if there are any jars in the WEB-INF/lib
directory of the app. Tomcat also does not reflect any changes in the
application if Undeployed and Deployed again because the references in
the work directory do not get refreshed.
Has anyone been able to get this feature to work like the docs say it
does?

Anyone...anyone?

Jester



-
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: help in tomcat 5 and MS SQL 2000

2003-12-17 Thread Sleeper, Jesse
If you have a driver already I'll post a sample configuration. Whould that help?

Jester

-Original Message-
From: Alan Czajkowski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 11:37 AM
To: Tomcat Users List
Subject: Re: help in tomcat 5 and MS SQL 2000


u can either:

a) search google for this info

b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it 
should since they used to be the same product), then u can check out 
Sybase's jConnect 5.5 (which can be downloaded from Sybase's website) and 
how to set it up with Tomcat, 
http://info.sybase.com/resolution/detail.stm?id_number=10899047


Thanks,

Alan Czajkowski
-
Database Administrator
BMO Financial Group
Decision Support Services
3300 Bloor Street West
14th Floor, West Tower
Toronto, Ontario, M8X 2X2
Tel: 416.232.8736
-




[EMAIL PROTECTED]
17/12/2003 10:07 AM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:help in tomcat 5 and MS SQL 2000

Hi,

I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat 
in 
order to connect with MS SQL 2000 server.

Thanks in advance,

Suchun Wu


1


-
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]



Benefits of Apache Server

2003-12-16 Thread Sleeper, Jesse

Could someone point me where I might find what real added benefit (performance, 
security or otherwise) that I might recieve by integrating Apache with my Tomcat 
Server?

Thanks,

Jester

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



RE: changing the manager password

2003-12-10 Thread Sleeper, Jesse
You can modify roles and passwords with the admin module in Tomcat: 
http://localhost:8080/admin

Jester

-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 9:55 AM
To: Tomcat User List (E-mail)
Subject: changing the manager password



Any way to do this without restarting tomcat? I need a method to do just that. If I 
restarted tomcat right now I would be in a world of trouble, and I need to get that 
password changed :)

-
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]



Manager App Doesn't Reload wars

2003-12-09 Thread Sleeper, Jesse
I'll give it another shot.

In Tomcat 4.1.1.2, wars can be Deployed on a Hot Server for the first time but not 
Undeployed if there are any jars in the WEB-INF/lib directory of the app. Tomcat also 
does not reflect any changes in the application if Undeployed and Deployed again 
because the references in the work directory do not get refreshed.
Has anyone been able to get this feature to work like the docs say it does?

Anyone...anyone?

Jester



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



RE: Basic Authentication

2003-12-05 Thread Sleeper, Jesse
Here is the exact code to do it my friend.
Redirect or whatever you want, after the System.out.println
-Jesse

=
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

public class AuthenticationServlet extends HttpServlet {
  // Step 2: Challenge message
  final private static byte[] CHALLENGE_MESSAGE =
  {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S', (byte)'S', (byte)'P', 0,
  2, 0, 0, 0, 0, 0, 0, 0,
  40, 0, 0, 0, 1, (byte)130, 0, 0,
  0, 2, 2, 2, 0, 0, 0, 0, // nonce
  0, 0, 0, 0, 0, 0, 0, 0};

  private String user;

  /**
  * Obtain the network ID from the HTTP request
  */
  public void doPost(HttpServletRequest req, HttpServletResponse res) throws 
IOException, ServletException {
try {
  String auth = req.getHeader(Authorization);

  if (auth == null)
  {
res.setContentLength(0);
res.setStatus(res.SC_UNAUTHORIZED);
res.setHeader(WWW-Authenticate, NTLM);
res.flushBuffer();

return;
  }

  if (!auth.startsWith(NTLM )) {
return;
  }

  byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));

  // Step 1: Negotiation message received
  if (msg[8] == 1)
  {
// Send challenge message (Step 2)
res.setContentLength(2);
res.setStatus(res.SC_UNAUTHORIZED);
res.setHeader(WWW-Authenticate, NTLM  + new 
sun.misc.BASE64Encoder().encodeBuffer(CHALLENGE_MESSAGE));
res.flushBuffer();
return;
  }

  // Step 3: Authentication message received
  if (msg[8] == 3)
  {
int off = 30;
int length, offset;

length = (msg[off+1]8) + msg[off];
offset = (msg[off+3]8) + msg[off+2];
String domain = new String(msg, offset, length);

length = (msg[off+9]8) + msg[off+8];
offset = (msg[off+11]8) + msg[off+10];
user = new String(msg, offset, length);

length = (msg[off+17]8) + msg[off+16];
offset = (msg[off+19]8) + msg[off+18];
String ws = new String(msg, offset, length);

System.out.println(Username:  + removeBlanks(user) +  Domain:  + 
removeBlanks(domain) +  Workstation:  + removeBlanks(ws));

  }
}
catch (Throwable ex){
  ex.printStackTrace();
}
  }

  /**
  * Removes non-printable characters from a string
  */
  private String removeBlanks(String s) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i  s.length(); i++) {
  char c = s.charAt(i);
  if (c  ' ')
  sb.append(c);
}
return sb.toString();
  }

}

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 11:58 AM
To: Tomcat Users List
Subject: Re: Basic Authentication


http://jakarta.apache.org/tomcat/faq/windows.html#ntlm

-Tim

Bui, Bao-Ha D wrote:
 Hi all,
 
 I need to capture the WinNT account name of users to a jsp page.  
 
 We have Active Directory at our company.  We can have a basic login form
 (that standard pop up login form from Window).  
 
 Could anyone tell me where to start and how to set it up?  I have looked at
 the HowTo for Tomcat Realm on Apache website but not quite get it.  
 


-
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]



Hot Deployment

2003-12-04 Thread Sleeper, Jesse
Hello,

I have never seen a webapp update properly when redeploying using Ant on a Win2k 
server.

Steps:  Undeploy app
Deploy app
Result: Does not update with changes. (old app is cached in work directory)

Steps:  Undeploy app
Remove app folder from work directory
Deploy app
Result: Works fine (if there are no jars in the WEB-INF/lib directory)

Has this issue ever been addressed in 4.x or 5.x, I couldn't find anything.  Or has 
anyone found a fix?
Love the feature and really need it.

Jesse Sleeper

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