Re: Custom jars, where to put them?
Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom jars, where to put them?
Marcin Okraszewski wrote: Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. You should put your jars into WEB-INF/lib. If you're using Tomcat, stick 'reloadable=true' attribute onto the Context node for your webapp in $tomcat/conf/server.xml, and you should see Tomcat reload your jar (or classes in WEB-INF/classes) a few seconds after you change them. Regards, Upayavira I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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: Custom jars, where to put them?
Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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: Custom jars, where to put them?
[EMAIL PROTECTED] wrote: Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? To get the manager working you need to have a /manager/ context configured in your server.xml, and you need to have added a username/password to your tomcat-users.xml. Regards, Upayavira Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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: Custom jars, where to put them?
Yes, Marcin already gave the instructions and later I found them in an html file as well. I added a context for the manager to tomcat server.xml and added a line with username, password and manager role to the tomcat-users.xml (also added a role manager). Before I started fiddling around to get the manager app working I got a login dialog when I clicked on the link tomcat manager in index.jsp, but afterward the above modifications and a restart of tomcat I don't get the login dialog any more, but immediately a tomcat error page with '/manager/html/ not available'. Bye, Helma -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 11:38 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? [EMAIL PROTECTED] wrote: Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? To get the manager working you need to have a /manager/ context configured in your server.xml, and you need to have added a username/password to your tomcat-users.xml. Regards, Upayavira Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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: Custom jars, where to put them?
[EMAIL PROTECTED] wrote: Could it be possible that it is not allowed for one user to have both admin and manager roles? No. I routinely logon as a user that has both the manager and admin roles. Ugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom jars, where to put them?
All posters thank you for your input and thoughts. I finally nailed it down to a faulty docbase line in the Context. I used a Linux style /jakarta-tomcat-4.1.29/ while working on a Windows XP machine. When I changed it to D:\jakarta-tomcat-4.1.29\. it worked flawlessly. Bye, Helma -Original Message- From: Ugo Cei [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? [EMAIL PROTECTED] wrote: Could it be possible that it is not allowed for one user to have both admin and manager roles? No. I routinely logon as a user that has both the manager and admin roles. Ugo - 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: Custom jars, where to put them?
Hi, I'm afraid that reloading whole Tomcat or at least a webapp (when the jar is in WEB-INF/lib) is the only way to make server notice changes in classes or jars. But I might be wrong. Regards, Marcin Okraszewski Hello, I'm trying to build a Java class I can use as a wrapper to be used in an XSP page. I put it in a jar, but what is the correct place to put the jar? If I put it in tomcat/shared/lib I have to restart tomcat after each change in the jar. Bye, Helma - 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: Custom jars, where to put them?
How do I reload a webapp? I haven't found that yet. Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 23:07 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I'm afraid that reloading whole Tomcat or at least a webapp (when the jar is in WEB-INF/lib) is the only way to make server notice changes in classes or jars. But I might be wrong. Regards, Marcin Okraszewski Hello, I'm trying to build a Java class I can use as a wrapper to be used in an XSP page. I put it in a jar, but what is the correct place to put the jar? If I put it in tomcat/shared/lib I have to restart tomcat after each change in the jar. Bye, Helma - 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: Custom jars, where to put them?
You should call fallowing address: http://your-server/manager/html and there is a HTML interface to manage your webapps. If it doesn't work, you need to add fallowing line: Context path=/manager debug=0 privileged=true docBase=/opt/jakarta-tomcat-5.0.16/server/webapps/manager/ in Host tag in /opt/jakarta-tomcat-5.0.16/conf/server.xml As a second issue, you will have to login to manager. You need to have a user in role manager. You define it at /opt/jakarta-tomcat-5.0.16/conf/tomcat-users.xml ; For instance it may look like this: user username=tomcat password=tomcat roles=tomcat,manager,admin/ Regards, Marcin Okraszewski How do I reload a webapp? I haven't found that yet. Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 23:07 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I'm afraid that reloading whole Tomcat or at least a webapp (when the jar is in WEB-INF/lib) is the only way to make server notice changes in classes or jars. But I might be wrong. Regards, Marcin Okraszewski Hello, I'm trying to build a Java class I can use as a wrapper to be used in an XSP page. I put it in a jar, but what is the correct place to put the jar? If I put it in tomcat/shared/lib I have to restart tomcat after each change in the jar. Bye, Helma - 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: Custom jars, where to put them?
Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I added the Context tag (modified the path) and restarted tomcat, but the same result. Any idea what could be wrong? Thanks. Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 23:58 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? You should call fallowing address: http://your-server/manager/html and there is a HTML interface to manage your webapps. If it doesn't work, you need to add fallowing line: Context path=/manager debug=0 privileged=true docBase=/opt/jakarta-tomcat-5.0.16/server/webapps/manager/ in Host tag in /opt/jakarta-tomcat-5.0.16/conf/server.xml As a second issue, you will have to login to manager. You need to have a user in role manager. You define it at /opt/jakarta-tomcat-5.0.16/conf/tomcat-users.xml ; For instance it may look like this: user username=tomcat password=tomcat roles=tomcat,manager,admin/ Regards, Marcin Okraszewski How do I reload a webapp? I haven't found that yet. Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 December 2003 23:07 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I'm afraid that reloading whole Tomcat or at least a webapp (when the jar is in WEB-INF/lib) is the only way to make server notice changes in classes or jars. But I might be wrong. Regards, Marcin Okraszewski Hello, I'm trying to build a Java class I can use as a wrapper to be used in an XSP page. I put it in a jar, but what is the correct place to put the jar? If I put it in tomcat/shared/lib I have to restart tomcat after each change in the jar. Bye, Helma - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]