Re: JDBCRealm
On Sat, Oct 23, 2004 at 07:05:58PM +0200, Roland Carlsson wrote: : In the memoryRealm I can define groups with a set of roles so that I don't : have to give every user the same set over and over again. Is this possible : so solve with the built-in JDBCRealm? I can't say for certain, but I see no notion of a "group" column/setup in the JDBCRealm docs... so likely not. : Is it possible to use the Admin-tool to administer a JDBCRealm? I don't use the admin app, so I can't answer this. Why not try it? btw, please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
401 error
hi, i just installed tomcat 5.0.28 and java 1.5. when i go to localhost:8080 i get the tomcat default page, when i go to my ip like xxx.xxx.xxx.xxx:8080 i can a 401 error. my router is forwarding port 8080 to the right ip and i'm baffled as to what could be going on. i'm a total newbie at this so any help would be appreciated. thanks, joe - Do you Yahoo!? vote.yahoo.com - Register online to vote today!
Re: BASIC authentication without Popup Verification window
Nevermind. I had a 401 page defined in web.xml, so it was being sent there instead of the browser. My mistake. - Original Message - From: "e-Denton Subscriber" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 4:06 PM Subject: BASIC authentication without Popup Verification window > Hi! > > I can't figure out why my BASIC authorization isn't working for my app. The > pages show up as 401 Not Authorized, but no popup authorization window pops > up! Further, the admin and manager apps are working using my JDBCRealm > (:Enter Password" window does pop up). Help appreciated. > > server.xml: > --- > > > className="org.apache.catalina.realm.JDBCRealm" > debug="99" > driverName="com.mysql.jdbc.Driver" > connectionURL="jdbc:mysql://127.0.0.1:3306/myDB" > connectionName="myUser" > connectionPassword="myPassword" > userTable="users" userNameCol="user_name" userCredCol="user_pass" > userRoleTable="user_roles" roleNameCol="role_name" /> > > web.xml: > > > > Maintenance > /maint/* > /maintenance.do > > > manager > > > > > BASIC > Portal > > > > manager > manager > > > > - > 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]
Multiple Hosts, multiple Root apps, path="/" -- Is it possible?
Can I setup my server.xml to have multiple "root" webapps, each with path="/" in its Context tag, if I use multiple Host descriptors? Has anyone done this who could share some server.xml configuration code? I mostly want to do this so that my session cookies don't have to have the webapp name in them... Thanks, Brendan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BASIC authentication without Popup Verification window
Hi! I can't figure out why my BASIC authorization isn't working for my app. The pages show up as 401 Not Authorized, but no popup authorization window pops up! Further, the admin and manager apps are working using my JDBCRealm (:Enter Password" window does pop up). Help appreciated. server.xml: --- web.xml: Maintenance /maint/* /maintenance.do manager BASIC Portal manager manager - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test, ignore it!
test Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New User needing urgent help
>Perhaps someone knows a way I can leave it outside the root and save me >some extra work? This should help: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html On Sat, 2004-10-23 at 14:14, Steven R. Christensen wrote: > Originally this app was setup to be located outside of the webapp directory in it's > own > directory. I had it working for the Tomcat 3.3.2 by setting the context on it with > no > problems. > > I wanted to make sure I had the latest Tomcat install to ensure that I wouldn't have > to upgrade too soon so I did that but couldn't find where I could get it deployed on > an absolute path instead of the relative so I set it up in the webapp to make things > simpler but then ran into this problem. > > The support for this software is pretty meager so I am working through it so I can > support it myself. From what I see in the software the mapping servlets and such > look like they are all in place. Just the location of the whole thing has been > beating > me up. > > Perhaps someone knows a way I can leave it outside the root and save me some > extra work? > > Thanks for the help. > > > > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: Sat 10/23/2004 1:06 PM > To: Tomcat Users List > Subject: RE: New User needing urgent help > > > > You'll probably have other problems later if you don't get your classes > into packages (mapping servlets etc..). > > > > > On Sat, 2004-10-23 at 14:01, Steven R. Christensen wrote: > > >From this I gathered that the import code isn't required and it looks > > like that fixed the problem. One thing I should have said was sun-java newbie as > > well so I am vastly ignorant on how all of this works. Only been trying to use > > it the last day or two. > > > > Appreciate the expert advice and very fast response everyone have given on this. > > > > You guys ROCK! > > > > Hopefully I will be able to get this operational without bothering everyone > > again. > > > > Thanks, > > Steve > > > > > > > > From: Steffen Heil [mailto:[EMAIL PROTECTED] > > Sent: Sat 10/23/2004 12:52 PM > > To: 'Tomcat Users List' > > Subject: AW: New User needing urgent help > > > > > > > > Hi > > > > > import Account; > > > > No. No. No. > > Import is used to make classes of foreign packages available. > > Classes in the same package are always available. > > > > And you should never have any package-less class, hence no problems. > > > > Regards, > > Steffen > > > > > > > > > > __ > > - > > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New User needing urgent help
Originally this app was setup to be located outside of the webapp directory in it's own directory. I had it working for the Tomcat 3.3.2 by setting the context on it with no problems. I wanted to make sure I had the latest Tomcat install to ensure that I wouldn't have to upgrade too soon so I did that but couldn't find where I could get it deployed on an absolute path instead of the relative so I set it up in the webapp to make things simpler but then ran into this problem. The support for this software is pretty meager so I am working through it so I can support it myself. From what I see in the software the mapping servlets and such look like they are all in place. Just the location of the whole thing has been beating me up. Perhaps someone knows a way I can leave it outside the root and save me some extra work? Thanks for the help. From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 1:06 PM To: Tomcat Users List Subject: RE: New User needing urgent help You'll probably have other problems later if you don't get your classes into packages (mapping servlets etc..). On Sat, 2004-10-23 at 14:01, Steven R. Christensen wrote: > >From this I gathered that the import code isn't required and it looks > like that fixed the problem. One thing I should have said was sun-java newbie as > well so I am vastly ignorant on how all of this works. Only been trying to use > it the last day or two. > > Appreciate the expert advice and very fast response everyone have given on this. > > You guys ROCK! > > Hopefully I will be able to get this operational without bothering everyone > again. > > Thanks, > Steve > > > > From: Steffen Heil [mailto:[EMAIL PROTECTED] > Sent: Sat 10/23/2004 12:52 PM > To: 'Tomcat Users List' > Subject: AW: New User needing urgent help > > > > Hi > > > import Account; > > No. No. No. > Import is used to make classes of foreign packages available. > Classes in the same package are always available. > > And you should never have any package-less class, hence no problems. > > Regards, > Steffen > > > > > __ > - > 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: New User needing urgent help
You'll probably have other problems later if you don't get your classes into packages (mapping servlets etc..). On Sat, 2004-10-23 at 14:01, Steven R. Christensen wrote: > >From this I gathered that the import code isn't required and it looks > like that fixed the problem. One thing I should have said was sun-java newbie as > well so I am vastly ignorant on how all of this works. Only been trying to use > it the last day or two. > > Appreciate the expert advice and very fast response everyone have given on this. > > You guys ROCK! > > Hopefully I will be able to get this operational without bothering everyone > again. > > Thanks, > Steve > > > > From: Steffen Heil [mailto:[EMAIL PROTECTED] > Sent: Sat 10/23/2004 12:52 PM > To: 'Tomcat Users List' > Subject: AW: New User needing urgent help > > > > Hi > > > import Account; > > No. No. No. > Import is used to make classes of foreign packages available. > Classes in the same package are always available. > > And you should never have any package-less class, hence no problems. > > Regards, > Steffen > > > > > __ > - > 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: New User needing urgent help
>From this I gathered that the import code isn't required and it looks like that fixed the problem. One thing I should have said was sun-java newbie as well so I am vastly ignorant on how all of this works. Only been trying to use it the last day or two. Appreciate the expert advice and very fast response everyone have given on this. You guys ROCK! Hopefully I will be able to get this operational without bothering everyone again. Thanks, Steve From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 12:52 PM To: 'Tomcat Users List' Subject: AW: New User needing urgent help Hi > import Account; No. No. No. Import is used to make classes of foreign packages available. Classes in the same package are always available. And you should never have any package-less class, hence no problems. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New User needing urgent help
Correct. When you import w/o a package like you have, it will import from the current package - that is org.apache.somethingorother. Put them in a package, and change the imports. Larry >>> [EMAIL PROTECTED] 10/23/04 11:47 AM >>> Hi Steve! I don't belive that you can import at root-level. You have to put your classes in a package (folder) that you then put in the web-inf/classes. Regards Roland - Original Message - From: "Steven R. Christensen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 7:42 PM Subject: New User needing urgent help Hello, I am new to using Tomcat and am having difficulty getting an application to work. Any help would be greatly appreciated. I have a web app that is giving me the following errors and can't seem to find why. Thanks in advance for your help. org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:6: '.' expected import Account; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:7: '.' expected import Banner; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:8: '.' expected import CalDate; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:9: '.' expected import Campaign; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:10: '.' expected import Dates; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:11: '.' expected import DB; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:12: '.' expected import DetectOSBrowser; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:13: '.' expected import Environment; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:14: '.' expected import GetAdServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:15: '.' expected import GetLinkServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:16: '.' expected import Javamail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:17: '.' expected import Keys; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:18: '.' expected import LicenseCheck; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:19: '.' expected import LogError; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:20: '.' expected import LogonValidation; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:21: '.' expected import LogsCutover; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:22: '.' expected import Msgsend; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:23: '.' expected import Popwindow; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:24: '.' expected import Region; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:25: '.' expected import Sendmail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:26: '.' expected import servletUpload; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:27: '.' expected import SmartHello; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:28: '.' expected import Stats; ^ Gen
AW: New User needing urgent help
Hi > import Account; No. No. No. Import is used to make classes of foreign packages available. Classes in the same package are always available. And you should never have any package-less class, hence no problems. Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: New User needing urgent help
Hi Steve! I don't belive that you can import at root-level. You have to put your classes in a package (folder) that you then put in the web-inf/classes. Regards Roland - Original Message - From: "Steven R. Christensen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 7:42 PM Subject: New User needing urgent help Hello, I am new to using Tomcat and am having difficulty getting an application to work. Any help would be greatly appreciated. I have a web app that is giving me the following errors and can't seem to find why. Thanks in advance for your help. org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:6: '.' expected import Account; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:7: '.' expected import Banner; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:8: '.' expected import CalDate; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:9: '.' expected import Campaign; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:10: '.' expected import Dates; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:11: '.' expected import DB; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:12: '.' expected import DetectOSBrowser; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:13: '.' expected import Environment; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:14: '.' expected import GetAdServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:15: '.' expected import GetLinkServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:16: '.' expected import Javamail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:17: '.' expected import Keys; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:18: '.' expected import LicenseCheck; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:19: '.' expected import LogError; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:20: '.' expected import LogonValidation; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:21: '.' expected import LogsCutover; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:22: '.' expected import Msgsend; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:23: '.' expected import Popwindow; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:24: '.' expected import Region; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:25: '.' expected import Sendmail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:26: '.' expected import servletUpload; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:27: '.' expected import SmartHello; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:28: '.' expected import Stats; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:29: '.' expected import Subscriber; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setu
New User needing urgent help
Hello, I am new to using Tomcat and am having difficulty getting an application to work. Any help would be greatly appreciated. I have a web app that is giving me the following errors and can't seem to find why. Thanks in advance for your help. org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:6: '.' expected import Account; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:7: '.' expected import Banner; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:8: '.' expected import CalDate; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:9: '.' expected import Campaign; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:10: '.' expected import Dates; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:11: '.' expected import DB; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:12: '.' expected import DetectOSBrowser; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:13: '.' expected import Environment; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:14: '.' expected import GetAdServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:15: '.' expected import GetLinkServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:16: '.' expected import Javamail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:17: '.' expected import Keys; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:18: '.' expected import LicenseCheck; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:19: '.' expected import LogError; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:20: '.' expected import LogonValidation; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:21: '.' expected import LogsCutover; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:22: '.' expected import Msgsend; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:23: '.' expected import Popwindow; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:24: '.' expected import Region; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:25: '.' expected import Sendmail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:26: '.' expected import servletUpload; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:27: '.' expected import SmartHello; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:28: '.' expected import Stats; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:29: '.' expected import Subscriber; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:30: '.' expected import Zone; ^ 25 errors org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332) org.apache.jasper.compiler.Compiler.generateC
JDBCRealm
Hi! I have to change realm from MemoryRealm to a JDBCRealm since we got the need to have everything in the database. So I have two questions that have arrised when trying out the JDBCRealm. In the memoryRealm I can define groups with a set of roles so that I don't have to give every user the same set over and over again. Is this possible so solve with the built-in JDBCRealm? Is it possible to use the Admin-tool to administer a JDBCRealm? Thanks in advance Roland Carlsson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enabling the admin webapp in Tomcat 5.5
Elam Daly wrote: Howdy all, I'm running 5.5 on a Windows Xp laptop and have installed the admin package by unzipping it to the Tomcat home directory, but I am still getting the 'no longer installed by default' message. Can someone explain or point me to documentation that explains what else I need to do to get it running? Thanks, Elam Daly Oops! Was a browser cache problem. Elam Daly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling the admin webapp in Tomcat 5.5
Howdy all, I'm running 5.5 on a Windows Xp laptop and have installed the admin package by unzipping it to the Tomcat home directory, but I am still getting the 'no longer installed by default' message. Can someone explain or point me to documentation that explains what else I need to do to get it running? Thanks, Elam Daly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Oracle 9i thin jdbc driver work in Tomcat 5?
using tomcat 5.0.28, oracle 9.2.1.0 on windows 2000 (sp4) having a nightmare here, upgraded from oracle 8i to 9i, downloaded & installed ojdbc14.jar file in Tomcat's common\lib directory. Now all I get when trying to create a connection pool is this exception - 2004-10-22 17:04:22 StandardContext[/PRD]action: null java.lang.NullPointerException at org.apache.commons.dbcp.DelegatingConnection.close(DelegatingConnection.java :151) at org.apache.commons.dbcp.PoolableConnection.reallyClose(PoolableConnection.ja va:95) at org.apache.commons.dbcp.PoolableConnectionFactory.destroyObject(PoolableConn ectionFactory.java:301) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataS ource.java:883) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:851) etc... from my web.xml file - Oracle Datasource example PRDConnectionPool javax.sql.DataSource Container from my app xml file - factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:[EMAIL PROTECTED]:1521:dev91 Worked fine under 8.1i but now I've hit a brick wall with this one - is it possible to get these to work together? Probably doing something really stupid, any ideas? many thanks harry
CLASSPATH & Classloaders - Embedded Tomcat
What are the CLASSPATH and Classloaders used when attempting to use the Embedded class to get a Tomcat 5 working? On a regular bundled Tomcat5, the catalina/common/lib, catalina/server/lib, catalina/common/endorsed are automatically searched for jars and loads them. Furthermore environment variables such as CATALINA_HOME, JAVA_HOME and others set in catalina.sh. How are these handled with Embedded? "embedded" is not even an option to catalina.sh of Tomcat 5 anymore? fyi, I have tomcat 5.0.28. Embedded api docs then is wrong as it mentions this option to catalina.sh Furthermore, the "-security" option, takes a different path in the script catalina.sh and one can not use these features with embedded? I am just trying to clarify. If one got a code to share how to programmatically use this Embedded class and deploy a war file, please post it so we can learn from you. Please Help. Thanks. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Slightly OT] coercing AWT/image libraries to release resources
I've got a servlet that produces thumbnail images on-the-fly (using TC 5.0.25, JDK 1.4.2). Once the servlet becomes active, it gobbles about 30mb per servlet/instance. I've gone through and tried to apply as many flush()/dispose()/gc()/etc. methods as I could find, but still, the memory remains allocated. Has anyone found a way to coerce the AWT (or appropriate Java imaging class) into releasing the memory? The code (from doGet( request, response) method): ImageIcon imgIcon = null; Image img = null; try { imgIcon = new ImageIcon( jpegFile );// this is the point at which memory swells to like 30mb. } catch ( Exception e ) { e.printStackTrace(); response.sendError( HttpServletResponse.SC_NOT_FOUND, filename ); } img = imgIcon.getImage(); imgIcon = null; // Determine the scale. double scale = Math.min( (double) h / (double) img.getHeight( null ) , (double) w / (double) img.getWidth( null ) ); // Determine size of new image. int scaledW = (int)( scale * img.getWidth( null ) ); int scaledH = (int)( scale * img.getHeight( null ) ); BufferedImage thumb = new BufferedImage( scaledW, scaledH, BufferedImage.TYPE_INT_RGB ); // Set the scale. AffineTransform tx = new AffineTransform(); if ( scale < 1.0d ) tx.scale( scale, scale ); // Paint image. Graphics2D g2d = thumb.createGraphics(); g2d.drawImage( img, tx, null ); g2d.dispose(); g2d = null; img.flush(); img = null; OutputStream out = response.getOutputStream(); ImageIO.write( thumb, ext, out ); thumb.flush(); thumb = null; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Session ID in URL
Hi > How do I deal with a situation where a user logged in and found something interesting on my site and decided to give the URL address (with jsessionid) of the page to his/her friend? Since the URL has the session id of the sender, the receiver clicks on the link and will have access to the sender account details. You can do some things: 1. If the remote ip changes, drop the session. 2. If referer of the request is not set, drop the session. Both have their drawbacks tough: 1. will fail if the dynamic ip changes: The legitimate user will be logged out. 2. will fail if the browser or a proxy removes the referer: The user will not be able to login. Also, this will no secure everything: Two users behind one proxy will not be destinguishable, therefor if they copy urls, the problem recurs. Obviously, there is another solution: Switch to cookies instead of SID in urls. And on the other hand: Warn the user upon login not to share urls. It is their liability not to share their password, so if they are warned, it can be their liability not to share session ids. Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: which one is a stable version of tomcat
On Fri, 22 Oct 2004 11:48:10 -0700 (PDT), Linux Guru <[EMAIL PROTECTED]> wrote: > > Hello, > > I tried that too. No luck. almost every day I have to > suffer the same problem. You mean you have correctly set LD_ASSUME_KERNEL=2.4.1, and it still doesn't work ? This would be the first time I hear this doesn't fix that particular problem. -- x Rémy Maucherat Developer & Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session ID in URL
Hi Is there a way to validate the session id? How do I deal with a situation where a user logged in and found something interesting on my site and decided to give the URL address (with jsessionid) of the page to his/her friend? Since the URL has the session id of the sender, the receiver clicks on the link and will have access to the sender account details. How does Amazon.com solve this problem? Their URL addresses always have the session id. If I go to Amazon.com and copy and paste the URL address to a new browser, their system will give me a new session id. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]