Re: Singleton across multiple contexts
Antonio, remove your email digital certificate. Most of us can not answer your question since the reply forcing us to have a digital certificate as well. -Dan - Original Message - From: Filip Hanik [EMAIL PROTECTED] Newsgroups: Tomcat Sent: Sunday, June 15, 2003 10:59 AM Subject: RE: Singleton across multiple contexts I have not followed this thread, but putting the class in common/lib or shared/lib should make it a singleton across contexts Filip -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 10:52 AM To: Tomcat Users List Subject: Re: Singleton across multiple contexts - Extract the component into a separate JVM, and connect to it via socket. This is what I'd do, but I'd also write a client class to get access. I suppose you could use RMI or something, but I'm not familiar with that. Whatever you're comfortable with, I guess. You could also spin off this class in it's own thread inside one of your classloaders. That way it would shutdown and start up with the server (or maybe that's a drawback...) and you wouldn't have to add the overhead of another VM. In fact, it *is* a thread. It starts and stops with the server. Everything was really beautiful until I had to split my app in four contexts. What I dislike is having to go out of the app to do app-internal calls. RMI, socket, CORBA, HTTP, ... I don't mind: I just dislike the idea. - Extract the component into another context, and connect to it via HTTP. yuck. This isn't for locking or something is it? Nope. ;-) I get the feeling you're trying to use a class for storing or accessing something the way most people use a database... I do have a database. Databases are supposed to store data, aren't they? ;-) Now seriously... My application includes a web interface to a kind of workflow system. This component is the workflow engine, which is in charge for automatic (background) state changes and actions. When my business/persistence logic changes a state, new potential tasks for this engine arise. So it has to be notified (=called) from any context that may change a state. On Sun, 2003-06-15 at 08:21, Antonio Fiol Bonnín wrote: Hello, This question is probably not specific to Tomcat, but a Tomcat-specific answer could well suit my needs. I have an application which I have split in several different contexts. I have done so, to allow different kinds of access to the app, depending on the web server the requests are coming from. However, I need a common unique component that ties all the contexts together. There must be a *single* instance of this component, otherwise inconsistencies or duplicate work might arise. OTOH, it must be accessible from all the contexts. Calls to this component are very simple (calls to void methods) but moderately frequent. I have thought of several possibilities: - Extract the component into a separate JVM, and connect to it via socket. - Extract the component into another context, and connect to it via HTTP. --- I like none of those. - Create the instance from the first context needing it, and making it available to all of them. --- I like this best, but I have no idea of how to do that. Yours sincerely, Antonio Fiol - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
It will serve every thing ( all files) within your app context not just jsp and servlet -Dan - - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:10 AM Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TOMCAT IIS and html
TOMCAT, IIS just do the forwarding _D - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:59 AM Subject: Re: TOMCAT IIS and html Tomcat will or IIS will? Thanks Dom - Original Message - From: Dan Tran To: Tomcat Users List Sent: Monday, June 09, 2003 9:53 AM Subject: Re: TOMCAT IIS and html It will serve every thing ( all files) within your app context not just jsp and servlet -Dan - - Original Message - From: Dominic Parry [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:10 AM Subject: TOMCAT IIS and html Hi Can I safely assume that When tomcat is configured with IIS that IIS will always serv anything but JSP's and Servlets? Even when HTML files etc lie within Tomcat contexts? Thanks Dom - 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: Why am I recieiving this?
What I dont understand is why my post went to that host? Basically, I receive 2 emails for each time I post, one form tomcatcat user list, and one from that unknown host? Techniacally,my post should only and only goes to tomcat-user mail server Does my outlook behave? -Dan - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:45 AM Subject: Re: Why am I recieiving this? Seems pretty self-explanatory to me. The mail administrator at logicaonline.com (look at the headers in the message!!) has blacklisted your email address. John On Mon, 2 Jun 2003 00:02:02 -0700, Dan Tran [EMAIL PROTECTED] wrote: I receive the below text every time I post a message to this group. ?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 7:47 PM Subject: RE: Re: Filter out certain user accounts Dear [EMAIL PROTECTED], Your recent message to this server regarding `Re: Filter out certain user accounts` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: Why am I recieiving this?
John, Thank you for the explaination!!! now I feel much better. -Dan - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 02, 2003 6:55 AM Subject: Re: Why am I recieiving this? The list rewrites the From address to be yours. That's why, when people reply (as it does just below this line), their email clients have the address of the original poster, not the list. When you post, the mail server at logicaonline.com receives a message from you, not from the list. It probably sends two out, one to the From, one to the Reply-To. The responder at logicaonline.com is just misbehaving...it should be using the Reply-To, not the From. In any case, there's little you can do about it other than contacting the admin at logicaonline.com, or simply writing a filter on your end to delete anything from logicaonline.com. It's not this list that is misbehaving. John On Mon, 2 Jun 2003 06:32:21 -0700, Dan Tran [EMAIL PROTECTED] wrote: What I dont understand is why my post went to that host? Basically, I receive 2 emails for each time I post, one form tomcatcat user list, and one from that unknown host? Techniacally,my post should only and only goes to tomcat-user mail server Does my outlook behave? -Dan - Original Message - From: John Turner tomcat- [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:45 AM Subject: Re: Why am I recieiving this? Seems pretty self-explanatory to me. The mail administrator at logicaonline.com (look at the headers in the message!!) has blacklisted your email address. John On Mon, 2 Jun 2003 00:02:02 -0700, Dan Tran [EMAIL PROTECTED] wrote: I receive the below text every time I post a message to this group. ?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 7:47 PM Subject: RE: Re: Filter out certain user accounts Dear [EMAIL PROTECTED], Your recent message to this server regarding `Re: Filter out certain user accounts` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
IIS Authentication pops up after tomcat form base fails?why?
Hello, I have my tomcat behind IIS5 thru JK2 connector. My tomcat has a form base authentication form. The problem here is if my tomcat form base authentication fails, IIS pops up its own diaglog window for another authentication. How do I prevent this? Regards -Dan
Re: IIS Authentication pops up after tomcat form base fails?why?
Jason, thanks I went to the connector virtual directory and unset the basic authentication. it works Thanks for your advice -Dan - Original Message - From: Jason Bainbridge [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 12:42 PM Subject: Re: IIS Authentication pops up after tomcat form base fails?why? On Sun, 1 Jun 2003 23:01, Dan Tran wrote: Hello, I have my tomcat behind IIS5 thru JK2 connector. My tomcat has a form base authentication form. The problem here is if my tomcat form base authentication fails, IIS pops up its own diaglog window for another authentication. How do I prevent this? Can't remember much of IIS off the top of my head but in the server settings somewhere, probably under security settings, there is an authentication mode, you want to set it to something like allow anonymous access, it is probably set to basic authentication at the moment. That will of course then need a restart of IIS. Hope that helps. Regards, -- Jason Bainbridge KDE Web Team - http://kde.org [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]
Filter out certain user accounts
Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page. The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user. Any work around?
Re: Filter out certain user accounts
supper!!! Thanks - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 5:35 PM Subject: Re: Filter out certain user accounts You should be able to cast ServletRequest to HttpServletRequest. Then you'll have access to getUserPrincipal() -Tim Dan Tran wrote: Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to another page. The problem here, the interface doFilter's ServletRequest does not have access to getUserPrincipal, so I have no way to find out the actual user. Any work around? - 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]
Why am I recieiving this?
I receive the below text every time I post a message to this group. ?? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 7:47 PM Subject: RE: Re: Filter out certain user accounts Dear [EMAIL PROTECTED], Your recent message to this server regarding `Re: Filter out certain user accounts` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test, please ignore
Please ignore -Dan
Re: HELP:: Tomcat 4.1.18 + JBuilder Foundation 8
I think you will have better luck posting this question on borland's news groups. -Dan it is news://newsgrouips.borland.com - Original Message - From: Shaffin Bhanji [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 17, 2003 10:51 AM Subject: HELP:: Tomcat 4.1.18 + JBuilder Foundation 8 Hi, Can anyone help out with the integration of Tomcat 4.1.18 and JBuilder 8 Foundation Thanks, Shaffin N. Bhanji Technical Manager Cambridge Technology Partners, the global eServices company of Novell, Inc. www.ctp.com 905.946.4817 | office 416.524.9520 | cell 905.940.2688 | fax [EMAIL PROTECTED] [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: Reading an XML File From a Servlet
Sorry I dont have an example for you, but all you need is a InputStream to your xml file in your war file. Here is the interface to get it InputStream is = servlet.getServletContext().getResourceAsStream(pathName); Hope it helps -Dan - Original Message - From: Francisco J. Bido [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:45 PM Subject: Reading an XML File From a Servlet Hi, I have a controller servlet which reads its configuration information from an xml file. I can do this relative to my local file system. My question is how to get the servlet to read the xml file from the WEB-INF directory once packaged in a typical WAR file. I'm lost regarding what the steps to follow or where to find a good example on how to achieve this. For example, do I need to declare a resource in the webapp's web.xml? Any help appreciated. Thanks! -FB - 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: Java mail
You need to execute the below code before sending message to setup System authentication Properties props = System.getProperties(); if ( authenticationRequired) --- like if useriD.length != 0 props.put(mail.smtp.auth, true); else props.put(mail.smtp.auth, false); -Dan - Original Message - From: Paul Hsu [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: huikuo hsu [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 9:29 PM Subject: Java mail Hi, I try to develope a java mail. I have a problem about how to authenticate email sender against email server. Since the email server ask for authentication if you want to send a email through that server because of spam issue. I got javax.mail.MessagingException==553 Authentication is required to send mail as [EMAIL PROTECTED] error every time. The following is my Mailer class. I wonder if any one know what is wrong with my code. Any help will be appreciated. package com.smartequip.email; import javax.mail.*; import javax.mail.internet.*; import javax.activation.FileDataSource; import javax.activation.DataHandler; import java.util.*; import java.io.*; import com.smartequip.common.AppBase; public class Mailer extends AppBase { public static String TEXTPLAIN = 1; public static String TEXTHTML = 2; public static String EDI = 3; private String smtpHost=null; private String subject=null; private String from=null; private Vector toV = new Vector(); private Vector ccV = new Vector(); private Vector attachedV = new Vector(); private String textMessage=null; private String message_type = 1; private String userName=; private String password=; private Auth auth; private Session session; public Mailer() { } public Mailer(String smtpHost) { this.smtpHost = smtpHost; } public void setUserName(String s) { this.userName = s; } public void setPassword(String s) { this.password = s; } public void setSmtpHost(String smtpHost) { this.smtpHost = smtpHost; } public void setFrom(String from) { this.from = from; } public void addTo(String to) { toV.add(to); } public void addCc(String cc) { ccV.add(cc); } public void setSubject(String subject) { this.subject = subject; } public void addAttached(String attached) { attachedV.add(attached); } public void setTextMessage(String message) { this.textMessage = message; } public void setMessageType(String t) { this.message_type = t; } public void send() throws Exception { Message msg = prepareHeader(); if(message_type.equals(TEXTPLAIN)) msg.setContent(textMessage, text/plain); if(message_type.equals(TEXTHTML)) msg.setContent(textMessage, text/html); sendMesg(msg); } private void sendMesg(Message msg) throws Exception { msg.saveChanges(); // implicit with send() Transport transport = session.getTransport(smtp); transport.connect(smtpHost, userName, password); transport.sendMessage(msg, msg.getAllRecipients()); transport.close(); } private Message prepareHeader() throws Exception { Properties props = new Properties(); if(smtpHost == null) throw new Exception(No SMTP Host specified.); props.put(mail.smtp.host, smtpHost); props.put(mail.user, userName); props.put(password, password); session = Session.getDefaultInstance(props, null); session.setDebug(true); Message msg = new MimeMessage(session); // set from if(from == null) throw new Exception(No Sender specified.); InternetAddress addr = new InternetAddress(from); msg.setFrom(addr); // set to if(toV.size() == 0) throw new Exception(No Recipients specified.); for (int i = 0; i toV.size(); i++) { InternetAddress addrt = new InternetAddress((String)toV.get(i)); msg.addRecipient(Message.RecipientType.TO, addrt); } // set cc for (int i = 0; i ccV.size(); i++) { InternetAddress addrt = new InternetAddress((String)ccV.get(i)); msg.addRecipient(Message.RecipientType.CC, addrt); } // set subject if(subject == null) throw new Exception(No Subject specified.); msg.setSubject(subject); msg.setSentDate(new Date()); return msg; } } // Mailer thanks Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: remember password HOW-TO?
http://securityfilter.sourceforge.net/ - Original Message - From: David Reed [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:10 PM Subject: Re: remember password HOW-TO? Thanks Will, So what are my alternatives to container based authentication? --- Will Hartung [EMAIL PROTECTED] wrote: From: David Reed [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 1:46 PM Subject: remember password HOW-TO? I am a relative newbie to servlet programming and I'm not really sure how to best solve a problem I am having. I am trying to implement a save my password feature on my web site. I am using Tomcat 4.1.18. I am using form-based authentication and I am using the Tomcat provided userdatabase to store my usernames, passwords and roles. If you're using container based authentication (which you are), then you can not implement a remember me facility within the Servlet API, there's simply no mechanism for it exposed by the container. Of course, you're welcome to beat on Tomcat itself to provide this non-portable functionality, but there's no way to do it solely within your web app. The only other solution is to implement all security using standard mechanisms with Servlets et al, but that's a big wheel to re carve out of stone. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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: JNDI datasource frustrations...
his is my sample server.xml look for glvn key word Good luck -Dan ?xml version='1.0' encoding='utf-8'? Server className=org.apache.catalina.core.StandardServer debug=0 port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ GlobalNamingResources Environment name=simpleValue override=true type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase scope=Shareable type=org.apache.catalina.UserDatabase/ Resource name=jdbc/glvn scope=Shareable type=javax.sql.DataSource/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=jdbc/glvn parameter namevalidationQuery/name valueselect ping from ping /value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name value/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;databaseName=glvn;selectMet hod=cursor/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxIdle/name value2/value /parameter /ResourceParams /GlobalNamingResources Service className=org.apache.catalina.core.StandardService debug=0 name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=0 enableLookups=true maxProcessors=75 minProcessors=5 port=8080 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector Connector className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=0 enableLookups=true maxProcessors=75 minProcessors=5 port=8009 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false Factory className=org.apache.catalina.net.DefaultServerSocketFactory/ /Connector Engine className=org.apache.catalina.core.StandardEngine debug=0 defaultHost=localhost mapperClass=org.apache.catalina.core.StandardEngineMapper name=Standalone DefaultContext className=org.apache.catalina.core.StandardDefaultContext cookies=true crossContext=true name=defaultContext reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper /DefaultContext Host className=org.apache.catalina.core.StandardHost appBase=webapps autoDeploy=true configClass=org.apache.catalina.startup.ContextConfig contextClass=org.apache.catalina.core.StandardContext debug=0 deployXML=true errorReportValveClass=org.apache.catalina.valves.ErrorReportValve liveDeploy=true mapperClass=org.apache.catalina.core.StandardHostMapper name=localhost unpackWARs=true Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=true debug=0 displayName=Tomcat Administration Application docBase=../server/webapps/admin mapperClass=org.apache.catalina.core.StandardContextMapper path=/admin privileged=true reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Listener className=org.apache.catalina.core.StandardDefaultContext cookies=true crossContext=true name=defaultContext reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper/ Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=localhost_admin_log. suffix=.txt timestamp=true verbosity=1/ /Context Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=true debug=0 displayName=Webdav Content Management docBase=C:\JBuilder8\thirdparty\jakarta-tomcat-4.1.12-LE-jdk14\webapps\webd av mapperClass=org.apache.catalina.core.StandardContextMapper path=/webdav privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Listener className=org.apache.catalina.core.StandardDefaultContext cookies=true crossContext=true name=defaultContext reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper/ /Context Context className=org.apache.catalina.core.StandardContext cachingAllowed=true
JDBCRealm
Hi experts, I am able to enable JDBCReal and configure user database. I also added user admin to userDB and able to login to tomcat admin account. In the admin web interface, I still see user management still refer to tomcat-users.xml. How do I make it to use my JDBCRealm? Any suggestion? -Dan
Re: Tomcat 4.1.18, JK2, IIS - Second try
No I only set debugLevel in the registry, how do I set it in workers2.properties? -Dan - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Dan Tran [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:42 AM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Hi, On Monday 20 January 2003 19:19, Dan Tran wrote: With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a new machine. The connector on this macine works I also reinstall tomcat on the problem machine, check every step (registries, iis virtual directory, workers2.properties and JK2.properties). Connector on this machine still does not work. There is no error in EventViewer, the DLL pluggin is up (blue arrow up). The weird thing is I dont see any indication of iis_redirector2.dll talking to port 8009 of tomcat. It seems the request does reach the dll but disappear. The most logical thing to do is to trouble shoot the DLL but I cant find any reference to make the DLL to dump more debug message to the Eventviewers. If you already have debug levels in workers2.properties turned on I'm not aware of anything other. When we had similar situation (the requests reached the dll but disappeared then it was wrong IIS permissions on inetpub/scripts (ie. the dll directory) and mismatch in extensionUri and actual dll location) Ari S. -- 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: Tomcat 4.1.18, JK2, IIS - Second try
setting debug value in the workers2.properties does not work. I dont see any detailed message in the eventview. The permission setting to the virtual directly as been checked many times, . I set it to read and scripts and executables. I even change it from /jakarta to /scripts Well, I am going to give it up tonight and try again tommorrow. Thank you for everything ;) -D - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Dan Tran [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 2:49 AM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Hi, On Tuesday 21 January 2003 11:58, Dan Tran wrote: No I only set debugLevel in the registry, how do I set it in workers2.properties? In all [keywordhere] sections it is possible to add debug level. For example: [channel.socket:test_tomcat] info=Ajp13 forwarding over socket debug=1000 Ari S. -Dan - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Dan Tran [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 1:42 AM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Hi, On Monday 20 January 2003 19:19, Dan Tran wrote: With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a new machine. The connector on this macine works I also reinstall tomcat on the problem machine, check every step (registries, iis virtual directory, workers2.properties and JK2.properties). Connector on this machine still does not work. There is no error in EventViewer, the DLL pluggin is up (blue arrow up). The weird thing is I dont see any indication of iis_redirector2.dll talking to port 8009 of tomcat. It seems the request does reach the dll but disappear. The most logical thing to do is to trouble shoot the DLL but I cant find any reference to make the DLL to dump more debug message to the Eventviewers. If you already have debug levels in workers2.properties turned on I'm not aware of anything other. When we had similar situation (the requests reached the dll but disappeared then it was wrong IIS permissions on inetpub/scripts (ie. the dll directory) and mismatch in extensionUri and actual dll location) Ari S. -- 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: Opening Files Outside Context
I have no problem opening file outsite my context, Make sure you have the file path setup correctly -D - Original Message - From: Erik Price [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 9:47 AM Subject: Re: Opening Files Outside Context Gladwell, Ricardo X -ND wrote: Hi All, I have written a JavaBean accessed from a JSP page in Tomcat 4.1 that opens a file to read from. However, when I open the file using the FileInputStream constructor I get a FileNotFoundException. This method works outside of Tomat on the same machine - the file exists, the path is correct even if it is on a networked drive. I assume this is a security feature - the file is outside the webapps directory. What I would like to know is there anyway of allowing Tomcat web applications to accessing files outside their container, either through changing settings in the web.xml or server.xml files or through the Tomcat admin tool? Did you already try getServletContext().getResourceAsStream()? What I have learned (yesterday) is that it is best to register an external file in the web.xml as a ContextParameter and then use getServletContext().getInitParameter() to refer to the file. This forces whoever is deploying your app to make sure that there is in fact a resource available (and provides a means to change the path of that resource without going into the code to do so). Just some advice, I suspect you can use getResourceAsStream() without consulting the ServletContext for the resource. 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: Tomcat 4.1.18, JK2, IIS - Second try
With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a new machine. The connector on this macine works I also reinstall tomcat on the problem machine, check every step (registries, iis virtual directory, workers2.properties and JK2.properties). Connector on this machine still does not work. There is no error in EventViewer, the DLL pluggin is up (blue arrow up). The weird thing is I dont see any indication of iis_redirector2.dll talking to port 8009 of tomcat. It seems the request does reach the dll but disappear. The most logical thing to do is to trouble shoot the DLL but I cant find any reference to make the DLL to dump more debug message to the Eventviewers. Any suggestion? -D - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Dan Tran [EMAIL PROTECTED] Sent: Sunday, January 19, 2003 10:48 PM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Hi, On Saturday 18 January 2003 01:26, Dan Tran wrote: That is a good news that It works for you. Then It must be something wrong on my configuration. Could you send me your works2.properties and jk2.properties? Check your registry entries. There is one entry called extensionUri, which should point to isapi_redirector2.dll. Ie. if you put isapi_redirector2.dll into inetpub/scripts, the extensionUri should be /scripts/isapi_redirector2.dll. Also, check that scripts directory have permission in IIS to execute DLL. Otherwise, you'll receive an error. Ari S. -- 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: WELCOME to tomcat-user@jakarta.apache.org
You can configure your web.xml to forward error code 403 to your specific error page like: web.xml snippet error-page error-code403/error-code location/errors/403.jsp/location /error-page /web.xml snippet - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 19, 2003 6:29 AM Subject: Re: WELCOME to [EMAIL PROTECTED] I am logging into a protected area, with a username and password that is exists, but doesn't have the correct role to access the page, I am getting a 403: 403: Apache Tomcat/4.0.1 - HTTP Status 403 - Access to the requested resource has been denied and the user is being logged on to the system. I have found that this is the correct behavior of tomcat. (see http://w6.metronet.com/~wjm/tomcat/2000/Dec/msg00463.html) But I don't want my users seeing that error page. I would prefer if they are brought to my standard loging error page, and are required to authenticate again. Are there any suggestions on how I can avoid the standard 403 error page from being seen, or better yet, how I can trap the authentication from being sucessful. Thank You, Eric Nissan -- Original Message -- From: [EMAIL PROTECTED] Date: 19 Jan 2003 14:07:45 - Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Acknowledgment: I have added the address [EMAIL PROTECTED] to the tomcat-user mailing list. Welcome to [EMAIL PROTECTED]! Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. --- Administrative commands for the tomcat-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 14538 invoked by uid 98); 19 Jan 2003 14:07:44 - Delivered-To: qmvirus-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephot [EMAIL PROTECTED] X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 14515 invoked from network); 19 Jan 2003 14:07:42 - Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 19 Jan 2003 14:07:42 - Received: (qmail 98694 invoked by uid 500); 19 Jan 2003 14:06:19 - Delivered-To: apmail-jakarta-tomcat-user-sc.1042985127.ljmndcmcngegcimnecmi-eric=codephoto [EMAIL PROTECTED] Received: (qmail 98685 invoked from network); 19 Jan 2003 14:06:17 - Received: from unknown (HELO mail.codephoto.com) (216.66.12.196) by daedalus.apache.org with SMTP; 19 Jan 2003 14:06:17 - Date: Sun, 19 Jan 2003 09:05:44 -0500 Message-Id: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] To: [EMAIL PROTECTED] pache.org Subject: Re: confirm subscribe to [EMAIL PROTECTED] X-Mailer: IMail v7.13 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -- Original Message -- From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] ache.org Date: 19 Jan 2003 14:05:27 - Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my
Tomcat 4.1.18, JK2, IIS - Second try
Hi, I have my tomcat running W2K professional using NT service. I follow JK2 doc and other recommendations on this archive (word by word) to configure connector. So far no luck. The isapi_redirector2.dll load up in IIS management console looks good, but the NT EventViews shows the following message Error: [jk_shm.c (333)]: shm.init(): No file I think this prevents the connector from working. Any suggestions -D
Re: Tomcat 4.1.18, JK2, IIS - Second try
You are right I dont have shm configure in my workers2.properties. After added shm property, the error message dissappear (Error: [jk_shm.c (333)]: shm.init(): No file ) However the connector still have problem, I recieved http 404 code. The following contains my workers.properties file [channel.socket:localhost:8009] info=Forwarding over socket connection to local tomcat instance. host=localhost port=8009 [ajp13:localhost:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol. channel=channel.socket:localhost:8009 [shm] file=C:/tomcat4.1/logs/shm.file size=1048576 [uri:/examples/jsp/*] info=JSP examples context=/examples/jsp [uri:/glvndb/*] info=GLVN Database context=/glvndb/ and My jk2.properties is empty Any suggestion? -D - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 17, 2003 10:24 AM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Dan, In your workers2.properties file, do you have a section similar to the following? [shm] file=C:/Apache2/logs/shm.file size=1048576 /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- 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: Tomcat 4.1.18, JK2, IIS - Second try
Hi Mark thank you for so much help You last note indicate this that you are using apache/tomcat on w2k. So your jk2.properties is for this configuration??? Do you have workers2.properties and jk2.properties that work with IIS/tomcat JK2 connector? -D - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 17, 2003 11:49 AM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Dan, In each of your uri definitions, you need to say what worker you will be using: [uri:/examples/jsp/*] info=JSP examples context=/examples/jsp worker=ajp13:localhost:8009 I'm using the following in my jk2.properties file. I am using apache on win/2k, but I haven't started playing with the in-process stuff yet. That means I can probably take out the references to apr. # # Socket configuration # handler.list=request,container,channelSocket,apr # # apr configuration # apr.NativeSo=${jkHome}\\bin\\Win32\\jkjni.dll apr.jniModeSo=${jkHome}\\bin\\Win32\\jkjni.dll # # socket configuration # channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 What would really be neat would be to compile apache with the cygwin ipc support and get UNIX sockets (ipc) working on Windows. It's on a things to do list. /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- 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: Tomcat 4.1.18, JK2, IIS - Second try
I ran out of option here except to ask that you can verify this with your IIS, could you? ;-) - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 17, 2003 1:33 PM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Dan, They should be the same I think . . . The IIS - specific parts should be concerned with the redirector only. As long as you have the green arrow in your IIS properties and the virtual directories set up in IIS I think you should be OK. I may fire up IIS just for grins again to see what happens, but I would rather not. /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- 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: Tomcat 4.1.18, JK2, IIS - Second try
That is a good news that It works for you. Then It must be something wrong on my configuration. Could you send me your works2.properties and jk2.properties? Thank you for every thing -Dan - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 17, 2003 3:15 PM Subject: Re: Tomcat 4.1.18, JK2, IIS - Second try Dan, I just started up IIS . . . . and things work fine for me (Tomcat 4.1.18, jdk 1.4.1_01, IIS 5, jk2, Windows/2000 Pro). Make sure you have added index.html and index.jsp in the Properties--Documents tag of your default web site. Otherwise, try http://localhost/examples/jsp/index.html to see if that will work. /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- 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]
JK2 and IIS configuration
Hello, I have spent a the last few days playing with IIS/workers2.properties, and JK2.properties. No luck getting the connector to work. Does any one successfully get this working. Where Do I fine the log file assocation of JK2 ativitity? My system has Tomcat 4.18, JDK1.4.1, W2K Any help is appreciated. -D
Re: JK2 and IIS configuration
The log intries for JK2 on IIS is EventViews, and I found this error Error: [jk_shm.c (333)]: shm.init(): No file Any suggestion? I am user JK2 in 2.0.2 directory - Original Message - From: Dan Tran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 11:59 PM Subject: JK2 and IIS configuration Hello, I have spent a the last few days playing with IIS/workers2.properties, and JK2.properties. No luck getting the connector to work. Does any one successfully get this working. Where Do I fine the log file assocation of JK2 ativitity? My system has Tomcat 4.18, JDK1.4.1, W2K Any help is appreciated. -D -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat + commons-logging + log4j
Your way is working fine right now, so why changing it? Use Tomcat log interface will make your code depending on Tomcat appserver. What if you want run your app on other servers in the future? I just happen to move all logging to use common-log so that it will run on multiple appservers. Just my 2Cents advice -Dan - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 09, 2002 11:45 AM Subject: Tomcat + commons-logging + log4j I need help with logging. I have just today convinced commons-logging and log4j to work together, and now I would like to do logging from my webapp. My first question is whether I really need commons-logging and log4j at all. I see that tomcat is already producing some logs in /path/to/tomcat/logs. However, I can't figure out how to get one of those for my own webapp. I only see logs for admin, examples, and a generic log. I have read 'The Logger Component' in the docs, but it doesn't have any info on configuration. I don't see any references to logging in server.xml or the global web.xml or the web.xml in the examples webapp. If I do use commons-logging+log4j and want to write my own logs to that same tomcat logs directory, what's the best [cross-platform] way to specify the location? I'm currently using: log4j.appender.rolling.File=../../../logs/myWebApp.log which backs up out of WEB-INF/classes and moves down into the logs directory. I'm very new at this, so please tell me if I'm going about it all wrong! -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat + commons-logging + log4j
Wendy, The container surely will have its own mechanism. I definitely dont want my trace messages sharing with the container itself. Why? I ran into a confuse problem where my app logs it messages with other APPS, and I had a hard time reading it. By using my own, it is surely less confusing. If you use the common-logging without configure any specific implementation (Log4J, JDK1.4 log, etc), it will be default to a simple interface which is your stdout. If you start appserver in a shell, the message are sent to console. However If you appsever are under a NT services or Unix backgroup, stdout message are sent to a log file. Location of file should be documented with your Appserver. Hope this helps -D - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 09, 2002 1:47 PM Subject: RE: Tomcat + commons-logging + log4j Jacob wrote: Set up your Context ... entry to look something like this: Context path=/myapp docBase=myapp debug=5 Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_myapp_servlet_log. suffix=.txt timestamp=true / /Context Wow, nothing like it being right there in front of my face. The context tag for the examples does have a Logger tag-- I must have been searching for 'Logging' instead. Thanks! Dan wrote: Use Tomcat log interface will make your code depending on Tomcat appserver. What if you want run your app on other servers in the future? I take it logging isn't in the servlet spec? From another message, I got the impression that the container would want to send some messages itself. If there is no Logger configured for the webapp, does it just send them to the console? -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: admin username
- Original Message - From: Peter [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 09, 2002 4:49 PM Subject: RE: admin username Then you should login as tomcat user since it has 'admin' role -D Thanks...but, I made the following changes and restarted apache and tomcat. Still no luck. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=admin/ role rolename=manager/ user username=tomcat password=tomcat roles=admin/ user username=poo password=tomcat roles=manager/ user username=role1 password=tomcat roles=role1/ /tomcat-users What next? Thanks, Peter Laxmikanth M.S. [EMAIL PROTECTED] wrote: admin user name and password should be added in tomcat-users.xml file in /catalina_home/conf directory and restart the server Regards Laxmikanth M S Off* : 91-80-6610330 extn 1256 Res* : 91-80-5267150 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 6:23 AM To: [EMAIL PROTECTED] Subject: admin username I just installed Tomcat, can someone tell me the admin username and password? Thanks, -Peter __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- 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: admin username
It is in conf/tomcat-users.xml -D - Original Message - From: Peter O'Reilly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 08, 2002 4:53 PM Subject: admin username I just installed Tomcat, can someone tell me the admin username and password? Thanks, -Peter __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- 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: Tomcat 4.1, DBCP and Oracle
Did you configure Oracle DataSource thru the web interface of Admin app in Tomcat 4.1? If you did, you will need to link the Global datasource to your webapp in server.xml. Please look up ResourceLink tag -D - Original Message - From: Campano, Troy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 07, 2002 7:43 PM Subject: RE: Tomcat 4.1, DBCP and Oracle Oh sorry, i meant i have the problem with 4.1.16-beta as well. thank you! -Original Message- From: Campano, Troy To: Jacob Kjome; [EMAIL PROTECTED] Sent: 12/7/02 10:38 PM Subject: RE: Tomcat 4.1, DBCP and Oracle Hi, I've done this. I renamed zip to jar. put it in /common/lib. When I bounce tomcat...it doesn't automatically recognize the file in its classpath, so I hard code it in /bin/setclasspath.sh, then it sees it. I've set this up before. I have no problems setting this up with tomcat 4.0.X. It works like a charm. I've had the problem with 4.1.12 and not 4.1.16-beta. I was working with someone on the Apache Bug database (is that the tomcat-dev mailing list?). We didn't get anywhere. So that's why I was wondering if there has been anyone who has successfully able to hook up tomcat 4.1.12, DBCP and Oracle. Were you able to do it? thank you for your help...it's greatly appreciated. ~ Troy Campano ~ -Original Message- From: Jacob Kjome To: Tomcat Users List Sent: 12/7/02 2:57 PM Subject: RE: Tomcat 4.1, DBCP and Oracle 1. Rename classes12.zip to classes12.jar. You don't have to repackage the classes, simply rename the file. 2. Put classes12.jar in CATALINA_HOME/common/lib. That is the *only* place it can go because both the server and the application require access to it. Libraries under the common (jars in /lib or /endorsed and class files in /classes) directory are seen by both the appserver and webapps unlike stuff under /shared or stuff under /server. Then follow the docs for configuration: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Jake At 12:45 PM 12/7/2002 -0500, you wrote: Oh yeah...the error I get is: java.sql.SQLException: Cannot load JDBC driver class 'null' ~ t r o y ~ -Original Message- From: Campano, Troy Sent: Saturday, December 07, 2002 12:44 PM To: '[EMAIL PROTECTED]' Subject: Tomcat 4.1, DBCP and Oracle Has anyone been able to get Tomcat 4.1.12 or Tomcat 4.1.16 working with DBCP and Oracle (classes12.zip)? I've tried a billion combinations of configurations and nothing works. I've see other people on the web have also had this problem. I've tried for months to figure this out and I've opened bug cases, but nothing seems to work. Anyone able to do it? thank you! ~ Troy Campano ~ -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0x and JCE 1.2 problem
Hello all I use JBuider7, and integrated Tomcat 4.03 to develop and test my application which eventually deploy on JRUN4 customer system. My startup servlet constructs a java class which uses JCE 1.2 API. I have no problem with my servlet when run under tomcat 3.3 and Jrun3/4, except Tomcat4 I am unable to search on the mail archive to find and answer for this. Can some one help me on this? If you are able to get TomCat 4 to work with JCE, please tell me where do you place the JCE jar files? If you happen to use JB7, could you tell me how did you get it to work? I placed my JCE files at diffierent place (WEB-INF/lib, JRE/lib/ext, etc) so far no luck Please help -Dan -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org