Re: UnauthorizedAccessException error while running WMI in tomcat
Thanks a lot Popo..It worked :-) Mr Popo Sama wrote: > > HI agn, to change the privilegies try doing this, > in vista: go to control panel > administrative tools > Services , then > look for Apache tomcat service , then go to properties (right click on the > service) > Log on (tab) > this account. and you the spaces in with a super > user name and pass. then you'll have to restart the service (or the > machine, don't know). > > in xp... don't know but must be preety much like in vista > > Bye! > > > > - Mensaje original > De: Tommy Pham <[EMAIL PROTECTED]> > Para: Tomcat Users List > Enviado: lunes 8 de septiembre de 2008, 4:28:29 > Asunto: Re: UnauthorizedAccessException error while running WMI in tomcat > > --- On Mon, 9/8/08, new_bie_tomcat <[EMAIL PROTECTED]> wrote: > >> From: new_bie_tomcat <[EMAIL PROTECTED]> >> Subject: Re: UnauthorizedAccessException error while running WMI in >> tomcat >> To: users@tomcat.apache.org >> Date: Monday, September 8, 2008, 3:06 AM >> Hi Mark, >> Thanks a lot for your reply. I am not able to find out >> exactly where to >> change the permission. I am using Tomcat 5.5. I have logged >> in to the >> machine, using the same user login as the remote machine. >> Both of the >> machine are in the same domain. In tomcat Properties Log on >> Tab i have >> logged in as the same login ID of the local/ remote >> machine. But still i am >> getting the same error.Please let me know where exactly i >> need to configure >> properly. >> >> Thanks again.. >> > > Hi, > > Since you're in the domain and if my memory serves correctly (it's been a > while since I worked w/ windows domains), you'll need to have proper > access rights to access the registry. Not all WMI commands will work with > User/Power User rights. You'll need full Administrator's rights on the > target system if you want to use WMI to it's fullest. You may want to > check your domain policy and the local systems' policy (if any is > defined). Logging into a machine does not mean that account have the > appropriate access rights, especially if you're trying access HKLM, HKCR, > and HKUSERS. You may want to look into impersonation to lessen the > security risk of unwanted full domain access ;) > > Regards, > Tommy > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Yahoo! Cocina > Recetas prácticas y comida saludable > http://ar.mujer.yahoo.com/cocina/ > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > :clap::clap::clap::clap::clap::clap::jumping::jumping::clap::clap::clap::clap::clap::clap::clap::clap::clap::clap::clap: -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19406260.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Xmx being ignored
Hello - I am trying to restrict the heap available to Tomcat 6. It is running on Fedora 8. I have tried to set -Xmx every way that I can think of and yet Tomcat grows to 3 times the heap allotted. While I understand that -Xmx != total memory commitment, 3X makes me think that I'm not getting this. Help with the following questions would be appreciated: 1. Is there a way to check if the flag has been set (ps shows the -Xmx as part of the command and catalina.sh throws no exception, but...). 2. Is 3X -Xmx normal? If so, what's the outer limit? 3. Other than via the command line, bash_profile and catalina.sh is there some fool proof way to set Xmx. 4. Is there another way to restrict memory use (ulimit and limits.conf have been tried without success). Thanks for the help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: relative paths in web.xml
Hmm... I tried this, and it looks as though Tomcat still pre-pends the "/home/myuser/public_html/" to my XML file. My servlet throws the error: java.io.FileNotFoundException: /home/myuser/public_html/path/to/tomcat/conf/myservlet/myxmlfile.xml and my file is really located at: /path/to/tomcat/conf/myservlet/myxmlfile.xml I have multiple sites that need to have access to this same servlet with the same XML file passed to it, and it would be great if I didn't have to copy this file to each site for each HOST entry... IE: The way Tomcat is working now, I would have to copy that XML file that I need to pass to the servlet to each user's "public_html" directory in order for the servlet to use it (which would also make the file web-accessible - not at all what I want). Is there a way to tell Tomcat to not use the docbase when passing this file to the servlet? Thanks to all of you who responded both on-list and off. =) I really appreciate your help! Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Bill Barker wrote: > "Jordan Michaels" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I'm trying to set up a "init-param" in Tomcat's main web.xml file (the >> one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: >> >> >>myServlet >>path.to.my.Servlet >> >>SOME_XML_FILE >>./conf/myservlet/myxmlfile.xml >> >>0 >> >> >> and in my $CATALINA_HOME/conf/server.xml file, I have the following: >> >> >unpackWARs="true" autoDeploy="true" >>xmlValidation="false" xmlNamespaceAware="false"> >> >> >> >> My XML file is in $CATALINA_HOME/conf/myservlet/myxmlfile.xml, but >> whenever I load this up, Tomcat looks for the file under the >> /home/myuser/public_html/ folder. >> >> Is there a way that I can tell tomcat to look for a file that's relative >> to the $CATALINA_HOME folder instead of my Context Docbase value? It >> would be ideal if the Param-Value had no relation to the Context Docbase >> value at all. >> >> Is this even possible with Tomcat? >> > > This feature is specific to Tomcat, but yes you can do it. You would use: >${catalina.home}/conf/myservlet/myxmlfile.xml > > When Tomcat parses your web.xml file, it will substitute the value for the > System property catalina.home. Of course, this works for any System > property. > > >> Thanks in advance for any help anyone can offer. >> >> -- >> Warm regards, >> Jordan Michaels >> Vivio Technologies >> http://www.viviotech.net/ >> Open BlueDragon Steering Committee >> Adobe Solution Provider >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [newbie] connectionTimeout value for AJP Connector
"Stacey Jones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I am a new member on tomcat mailing list. > > For tomcat 5.5 - Is there a recommended value for connectionTimeout > attribute? How to decide this value? > > The documentation says : The number of milliseconds this Connector will > wait, after accepting a connection, for the request URI line to be > presented. The default value is infinite (i.e. no timeout). > Thanks for your help! > Like most configuration options, the recommended value depends on your setup :). For small to medium sized applications on systems like Windows or Solaris the default value is reasonable (which is why it is the default). For Linux systems with newer kernals, this should be alright as well. On these systems the cost is fairly low to have lots of threads blocking on i/o. It is Linux systems with older kernals that cause problems. Also if you are using the APR or (experimental) NIO AJP connector it should be fine on most o/s, since there is no relation between the number of connections and the number of threads. If there isn't a firewall between Apache/IIS and Tomcat I would set it to be pretty high on well-behaved systems (at least 5min for a medium sized app). If there is a firewall, then it should be probably slightly less than the firewall setting to close idle connections. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: relative paths in web.xml
"Jordan Michaels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to set up a "init-param" in Tomcat's main web.xml file (the > one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: > > >myServlet >path.to.my.Servlet > >SOME_XML_FILE >./conf/myservlet/myxmlfile.xml > >0 > > > and in my $CATALINA_HOME/conf/server.xml file, I have the following: > > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > > > > My XML file is in $CATALINA_HOME/conf/myservlet/myxmlfile.xml, but > whenever I load this up, Tomcat looks for the file under the > /home/myuser/public_html/ folder. > > Is there a way that I can tell tomcat to look for a file that's relative > to the $CATALINA_HOME folder instead of my Context Docbase value? It > would be ideal if the Param-Value had no relation to the Context Docbase > value at all. > > Is this even possible with Tomcat? > This feature is specific to Tomcat, but yes you can do it. You would use: ${catalina.home}/conf/myservlet/myxmlfile.xml When Tomcat parses your web.xml file, it will substitute the value for the System property catalina.home. Of course, this works for any System property. > Thanks in advance for any help anyone can offer. > > -- > Warm regards, > Jordan Michaels > Vivio Technologies > http://www.viviotech.net/ > Open BlueDragon Steering Committee > Adobe Solution Provider > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Replaceing RequestFacade
Your facade has to extend (Http)ServletRequestWrapper from the standard servlet-api. According to the spec, that is the only valid way to wrap a request. As you've seen, Tomcat enforces this restriction :). "George Baxter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, For various and sundry reasons, I need to wrap the original HttpServletRequest with a facade of my own. I know that the HttpServletRequest exposed by Catalina is a RequestFacade object. I simply wrap my facade around this puppy. And... when my jsp attempts to render... boom: java.lang.ClassCastException: com.xxx.request.MyTestRequestFacade at org.apache.catalina.core.ApplicationDispatcher.unwrapRequest(ApplicationDispatcher.java:814) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:401) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) I tried to extend the RequestFacade, but cannot because the constructor requires a org.apache.catalina.connector.Request, and I cannot get a hold of that. Is there anything I can do to encourage tomcat to instantiate my request facade instead its own? Using Tomcat 5.5 at present. Thanks, - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
relative paths in web.xml
I'm trying to set up a "init-param" in Tomcat's main web.xml file (the one in $CATALINA_HOME/conf/web.xml) that looks similar to the following: myServlet path.to.my.Servlet SOME_XML_FILE ./conf/myservlet/myxmlfile.xml 0 and in my $CATALINA_HOME/conf/server.xml file, I have the following: My XML file is in $CATALINA_HOME/conf/myservlet/myxmlfile.xml, but whenever I load this up, Tomcat looks for the file under the /home/myuser/public_html/ folder. Is there a way that I can tell tomcat to look for a file that's relative to the $CATALINA_HOME folder instead of my Context Docbase value? It would be ideal if the Param-Value had no relation to the Context Docbase value at all. Is this even possible with Tomcat? Thanks in advance for any help anyone can offer. -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preventing File Access
All, Can someone point me to where I can read how to prevent/redirect access to a particular file in the Tomcat/webapp context. Specifically, all of my directories have the OS X DS_Store file. I would like to redirect users to an error page when this file is directly accessed. Thank you, Stephen Caine CommonGround Softworks, Inc. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Piggybacking HTTP with binary protocol
Different OS's can do this in different ways. Just Google it. For Linux, here's a quick How-To: http://www.oclc.org/us/en/support/documentation/ezproxy/technote/2l.htm HTH Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Darryl Pentz wrote: > Hi Hassan, pardon my stupidity, but how exactly do you do what you're > suggesting? > > - DP > > > - Original Message > From: Hassan Schroeder <[EMAIL PROTECTED]> > To: Tomcat Users List ; Darryl Pentz <[EMAIL > PROTECTED]> > Sent: Tuesday, September 9, 2008 9:25:07 PM > Subject: Re: Piggybacking HTTP with binary protocol > > On Tue, Sep 9, 2008 at 1:10 PM, Darryl Pentz <[EMAIL PROTECTED]> wrote: > >> Thanks for that suggestion - I'll definitely look into it. In the meantime >> what we've done is to solve our problem in the hardware, by using 2 network >> cards (i.e. 2 IP addresses) > > Uh, you don't need multiple NICs to handle multiple IP addresses -- > just configure your system to respond to them :-) > > FWIW, > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
HI agn, to change the privilegies try doing this, in vista: go to control panel > administrative tools > Services , then look for Apache tomcat service , then go to properties (right click on the service) > Log on (tab) > this account. and you the spaces in with a super user name and pass. then you'll have to restart the service (or the machine, don't know). in xp... don't know but must be preety much like in vista Bye! - Mensaje original De: Tommy Pham <[EMAIL PROTECTED]> Para: Tomcat Users List Enviado: lunes 8 de septiembre de 2008, 4:28:29 Asunto: Re: UnauthorizedAccessException error while running WMI in tomcat --- On Mon, 9/8/08, new_bie_tomcat <[EMAIL PROTECTED]> wrote: > From: new_bie_tomcat <[EMAIL PROTECTED]> > Subject: Re: UnauthorizedAccessException error while running WMI in tomcat > To: users@tomcat.apache.org > Date: Monday, September 8, 2008, 3:06 AM > Hi Mark, > Thanks a lot for your reply. I am not able to find out > exactly where to > change the permission. I am using Tomcat 5.5. I have logged > in to the > machine, using the same user login as the remote machine. > Both of the > machine are in the same domain. In tomcat Properties Log on > Tab i have > logged in as the same login ID of the local/ remote > machine. But still i am > getting the same error.Please let me know where exactly i > need to configure > properly. > > Thanks again.. > Hi, Since you're in the domain and if my memory serves correctly (it's been a while since I worked w/ windows domains), you'll need to have proper access rights to access the registry. Not all WMI commands will work with User/Power User rights. You'll need full Administrator's rights on the target system if you want to use WMI to it's fullest. You may want to check your domain policy and the local systems' policy (if any is defined). Logging into a machine does not mean that account have the appropriate access rights, especially if you're trying access HKLM, HKCR, and HKUSERS. You may want to look into impersonation to lessen the security risk of unwanted full domain access ;) Regards, Tommy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Cocina Recetas prácticas y comida saludable http://ar.mujer.yahoo.com/cocina/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Replaceing RequestFacade
Hello, For various and sundry reasons, I need to wrap the original HttpServletRequest with a facade of my own. I know that the HttpServletRequest exposed by Catalina is a RequestFacade object. I simply wrap my facade around this puppy. And... when my jsp attempts to render... boom: java.lang.ClassCastException: com.xxx.request.MyTestRequestFacade at org.apache.catalina.core.ApplicationDispatcher.unwrapRequest(ApplicationDispatcher.java:814) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:401) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) I tried to extend the RequestFacade, but cannot because the constructor requires a org.apache.catalina.connector.Request, and I cannot get a hold of that. Is there anything I can do to encourage tomcat to instantiate my request facade instead its own? Using Tomcat 5.5 at present. Thanks,
Re: Piggybacking HTTP with binary protocol
Hi Hassan, pardon my stupidity, but how exactly do you do what you're suggesting? - DP - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List ; Darryl Pentz <[EMAIL PROTECTED]> Sent: Tuesday, September 9, 2008 9:25:07 PM Subject: Re: Piggybacking HTTP with binary protocol On Tue, Sep 9, 2008 at 1:10 PM, Darryl Pentz <[EMAIL PROTECTED]> wrote: > Thanks for that suggestion - I'll definitely look into it. In the meantime > what we've done is to solve our problem in the hardware, by using 2 network > cards (i.e. 2 IP addresses) Uh, you don't need multiple NICs to handle multiple IP addresses -- just configure your system to respond to them :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting OpenBlueDragon and Tomcat to traverse directories
Hi Shawn, My apologies, but I didn't see this message until just now. Alan did put out a pretty simple instance of OpenBD on Jetty that makes it pretty dang simple to use Jetty with OpenBD and VirtualHosts. However, I realize this is not what the majority of the community was wanting, so I've been doing my own research and time into this issue. (Hence my revisit to this thread honestly). So far, I've been able to come up with a method that is fairly simple but requires a "normal" CFML developer to do some things that they are probably not familiar with. The process would go something like this: 1) Set up mod_jk connector to apache. 2) Configure Apache VirtualHosts 3) Update tomcat server.xml file with "host" and "context" entries that match the Apache VirtualHost entries 4) Install an instance of OpenBD for EACH VirtualHost. This setup would be great for a Shared hosting environment, but not so great for a single server administrator managing several different sites. It also differs from how typical CFers are used to doing it with CF7 and CF8. However, it does get the job done and (IMO) is simpler then the "proxy" method when using server control panel software. So... I've been struggling to set up OpenBD in a similar way to that of "Jasper", the tomcat JSP processor. However, my knowledge in that area is still pretty weak, so I've been using any extra time I've had to learn what I can on how that works. I've also considered just making Jetty the default engine for the installer, but I like the popularity of Tomcat in that most server control panels come with a Tomcat management function. So.. if I can get it to work with Tomcat... then we're golden. I'll be keeping the OpenBD mailing list updated if I ever figure something out that's production worthy. (Even if it does make Jetty the default engine). HTH Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Shawn_Usry wrote: > Hi Jordan - > > Was just following this thread and I'm wondering if there's an update on the > Open BD - httpd connector you elude to below? I'm getting ready to deploy > several OS images for development servers and wonder if I need to stick with > CF or if I can make the plunge to OBD! > > Thanks- > > > Jordan Michaels wrote: >> Hi Ross, >> >> Alan Williamson, the chair of the OpenBlueDragon Steering Committee has >> stated that he will blog about how to set up OpenBD in a way that most >> CFML developers are familiar with very soon. (I've been pestering him >> about it as well - since I haven't been able to get OpenBD/Tomcat to >> work how I want it to either.) >> >> When he does, I will be releasing a Linux installer that should automate >> *most* of the installation process. OpenBD users still may have to get >> their hands dirty and modify some config files when setting up their >> sites, but the basic install should be covered. I'll automate as much as >> I can. >> >> The installer will support CentOS to start with and branch out to other >> distros as I have time to adapt the installer to them. >> >> FYI >> >> Warm regards, >> Jordan Michaels >> Vivio Technologies >> http://www.viviotech.net/ >> Open BlueDragon Steering Committee >> Adobe Solution Provider >> >> >> [EMAIL PROTECTED] wrote: > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: RE: Getting OpenBlueDragon and Tomcat to traverse directories > I thought the use of handlers (JKMount and JKUnMount) would > direct the requests properly. I believe that if you're very, very careful, you can get away with it, but your risk factor goes way up. > What if I plan on having only one webapp, OpenBlueDragon? The directory (or war file) that contains the webapp should be named ROOT (case sensitive), and be placed immediately under whatever directory the appBase attribute points to. In your case, that would be: /var/www/html/mysite/ROOT or /var/www/html/mysite/ROOT.war >>> I tried this and it seems to work, kinda. It forces everything that's >>> handled by Tomcat to be rooted at /var/www/html/mysite/ROOT, while >>> everything else that's not (HTML, JPEG, etc.) is rooted under >>> /var/www/html/mysite. I wish they could both point to the same >>> directory, >>> though. >>> >>> Ross >>> - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and
Re: Piggybacking HTTP with binary protocol
On Tue, Sep 9, 2008 at 1:10 PM, Darryl Pentz <[EMAIL PROTECTED]> wrote: > Thanks for that suggestion - I'll definitely look into it. In the meantime > what we've done is to solve our problem in the hardware, by using 2 network > cards (i.e. 2 IP addresses) Uh, you don't need multiple NICs to handle multiple IP addresses -- just configure your system to respond to them :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Piggybacking HTTP with binary protocol
Hi Raymond, Thanks for that suggestion - I'll definitely look into it. In the meantime what we've done is to solve our problem in the hardware, by using 2 network cards (i.e. 2 IP addresses) in situations where dual port 443 usage is required. This keeps the code a helluva lot cleaner, and hardware is cheap cheap these days. But I will have a look at the Apache client nonetheless. Thanks, Darryl - Original Message From: Raymond Kroeker <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, September 9, 2008 5:41:20 PM Subject: Re: Piggybacking HTTP with binary protocol Darryl, One thing I might suggest is instead of rolling your own http client; is to use the http client from apache http://hc.apache.org. I use it myself for various projects including binary data transfer. It will let you focus on your protocol instead of having to implement http. Raymond On Mon, Sep 8, 2008 at 06:50, Darryl Pentz <[EMAIL PROTECTED]> wrote: > Last time I mailed the list, I was inquiring about implementing a custom > connector or something along those lines to support a binary protocol along > with HTTP. This approach proved flawed for various reasons, if not virtually > impossible to do with the connector, processor, handler architecture etc.. > > So the approach I was wanting to try next was to amend our in-house protocol > slightly and include initial HTTP headers so as to make use of the standard > Http11Processor etc and then continue (after initial servlet mapping) with > the current binary protocol. My question is, is this possible using say a > POST to then continue comms on the input and output streams using binary? > > I have tried to implement this approach but any read I do from the input > stream after the request is forwarded to the servlet service method, throws > an EOFException, which I haven't quite figured out. I wrote a simple socket > client that writes the POST, a host header, and a blank line, I then write 2 > int's and a String, but I am unable to read the ints and the String from the > input stream in the service method without encountering the EOFException. > > Does anybody know what might cause this? I can't quite isolate any code > within Tomcat that might be causing this issue. > > - Darryl > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- - Raymond Kroeker - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat with JRE?
- Original Message - From: "Bai Shen" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, September 09, 2008 6:41 PM Subject: Running Tomcat with JRE? Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have JAVA_HOME pointing at JRE 1.6.0_07. However, when I go to start tomcat, it tells me that the JAVA_HOME variable needs to point at a JDK, not a JRE. Am I missing something or is this a leftover from the previous versions? TIA. Bai, not sure, we always use JDK but heres what I think... JAVA_HOME must always point at a JDK... if you have one installed... Its convention... because IDE's and the like look at it and they most definitely need JDK If you have a JRE installed you need to set this property... JRE_HOME Thats what seperates them Most times its not set because devs tend to use JDK's Tomcat most definitely runs on either... but I think if the scipts cant find JRE, they look at JAVA HOME If you running a windows service, it doesnt look at these... the location of the JRE/JDK is specified in the tab Another interesting thing... in Netbeans, Tomcat will run under the JDK you use in the environment, not sys params, or the service tabs These TC developers a clever people ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat with JRE?
Hi Baishen the container needs a jasper compiler to compile the jsps would'nt it be great if ALL webapps had precompiled jsps??? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Tue, 9 Sep 2008 12:41:43 -0400 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Running Tomcat with JRE? > > Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE > instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have JAVA_HOME > pointing at JRE 1.6.0_07. However, when I go to start tomcat, it tells me > that the JAVA_HOME variable needs to point at a JDK, not a JRE. > > Am I missing something or is this a leftover from the previous versions? > TIA. _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
RE: Running Tomcat with JRE?
Bai, to run using the JRE you need to set JRE_HOME not JAVA_HOME. Note: in our startup file we also set JAVA_HOME to null incase it was set elsewhere. I.e: set JAVA_HOME= set JRE_HOME=%VARIABLE%\java Regards -Original Message- From: Bai Shen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 12:42 PM To: Tomcat Users List Subject: Running Tomcat with JRE? Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have JAVA_HOME pointing at JRE 1.6.0_07. However, when I go to start tomcat, it tells me that the JAVA_HOME variable needs to point at a JDK, not a JRE. Am I missing something or is this a leftover from the previous versions? TIA. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat with JRE?
On 9 Sep 2008 at 12:41, Bai Shen wrote: > Looking at the tomcat site, it says that I can run Tomcat 6 with a > JRE > instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have > JAVA_HOME > pointing at JRE 1.6.0_07. However, when I go to start tomcat, it > tells me > that the JAVA_HOME variable needs to point at a JDK, not a JRE. > > Am I missing something or is this a leftover from the previous > versions? > TIA. > set your JRE_HOME not JAVA_HOME -Steve O. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: undo undeploying in Tomcat?
> From: Cristina Manzano García-Muñoz [mailto:[EMAIL PROTECTED] > Subject: undo undeploying in Tomcat? > > is the application still stored somewhere in the server after > undeploying it? Depends on how the webapp was deployed. If it was placed under the appBase directory, it will be deleted during undeployment (assuming Tomcat has permission to do so). If it's outside of the appBase, only the conf/Catalina/[host]/[appName].xml file will be removed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Denying IP Addresses
Edward Song wrote: > Hi all, > > > > Just soliciting some feedback on how to effectively, thwart data mining on > our server. > > > > We have a reactive solution when it comes to screen scraping and data mining > on Tomcat 5.5. > > We simply find the offending IP's and add them to the deny rules using the > Valve - org.apache.catalina.valves.RemoteAddrValve > >>From what I understand, for changes to take effect, requires a restart of > Tomcat. > > I was thinking to override the RemoteAddrValve to retrieve offending IP's > from a file as well, so as not requiring a restart everytime an offending IP > is found. > > Our applications then would be able to identify offending IP's, and based on > their own rules, add them to the file. it could be expensive to check the file for every request. if you're going to do that, then consider caching the file and using an internal thread to reload it periodically. p > > > > Is this a viable strategy? > > > > Thanks in advance, > > Ed > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat with JRE?
Looking at the tomcat site, it says that I can run Tomcat 6 with a JRE instead of a full JDK. So I downloaded Tomcat 6.0.18 and I have JAVA_HOME pointing at JRE 1.6.0_07. However, when I go to start tomcat, it tells me that the JAVA_HOME variable needs to point at a JDK, not a JRE. Am I missing something or is this a leftover from the previous versions? TIA.
Re: Piggybacking HTTP with binary protocol
Darryl, One thing I might suggest is instead of rolling your own http client; is to use the http client from apache http://hc.apache.org. I use it myself for various projects including binary data transfer. It will let you focus on your protocol instead of having to implement http. Raymond On Mon, Sep 8, 2008 at 06:50, Darryl Pentz <[EMAIL PROTECTED]> wrote: > Last time I mailed the list, I was inquiring about implementing a custom > connector or something along those lines to support a binary protocol along > with HTTP. This approach proved flawed for various reasons, if not virtually > impossible to do with the connector, processor, handler architecture etc.. > > So the approach I was wanting to try next was to amend our in-house protocol > slightly and include initial HTTP headers so as to make use of the standard > Http11Processor etc and then continue (after initial servlet mapping) with > the current binary protocol. My question is, is this possible using say a > POST to then continue comms on the input and output streams using binary? > > I have tried to implement this approach but any read I do from the input > stream after the request is forwarded to the servlet service method, throws > an EOFException, which I haven't quite figured out. I wrote a simple socket > client that writes the POST, a host header, and a blank line, I then write 2 > int's and a String, but I am unable to read the ints and the String from the > input stream in the service method without encountering the EOFException. > > Does anybody know what might cause this? I can't quite isolate any code > within Tomcat that might be causing this issue. > > - Darryl > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- - Raymond Kroeker - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Httpd & Tomcat error pages
Exactly ! I've checked it out and it does work like you said. Cheers Johnny ! Pierre On Tue, Sep 9, 2008 at 5:45 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > - Original Message - From: "Pierre Goupil" <[EMAIL PROTECTED] > > > To: "Tomcat Users List" > Sent: Tuesday, September 09, 2008 4:54 PM > Subject: Apache Httpd & Tomcat error pages > > > > Hi all, >> >> We've got an Httpd 2.0 server sitting in front of a Tomcat 5.5 with >> mod_jk. >> Tomcat has several set up, amongst which HTTP 404, and so has >> Httpd. >> >> When the user tries & retrieve an inexistent page, he or she receives the >> page from Tomcat, with a 404 error-code. Can anyone explain me why the >> error >> page doesn't come from Httpd ? Is it expected behavior from mod_jk ? >> >> Cheers, >> >> Pierre >> > > Pierre, I think its just the mapping in your JK files... > > eg: > JkMount /theWebApp/*.jsp lb > > Means any jsp file under /theWebApp > even ones that dont exist... so TC does 404's > > but > > JkMount /theWebApp/myFile.jsp lb > > would mean > > /theWebApp/IDontExist.htm > > would be 404'd by apache > > ... I think ;) > --- > HARBOR : http://www.kewlstuff.co.za/index.htm > The most powerful application server on earth. > The only real POJO Application Server. > See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm > --- > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
undo undeploying in Tomcat?
hi, is it possible to undo the undeploying of applications in Tomcat? I mean, is the application still stored somewhere in the server after undeploying it? thanks.
Re: Apache Httpd & Tomcat error pages
- Original Message - From: "Pierre Goupil" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, September 09, 2008 4:54 PM Subject: Apache Httpd & Tomcat error pages Hi all, We've got an Httpd 2.0 server sitting in front of a Tomcat 5.5 with mod_jk. Tomcat has several set up, amongst which HTTP 404, and so has Httpd. When the user tries & retrieve an inexistent page, he or she receives the page from Tomcat, with a 404 error-code. Can anyone explain me why the error page doesn't come from Httpd ? Is it expected behavior from mod_jk ? Cheers, Pierre Pierre, I think its just the mapping in your JK files... eg: JkMount /theWebApp/*.jsp lb Means any jsp file under /theWebApp even ones that dont exist... so TC does 404's but JkMount /theWebApp/myFile.jsp lb would mean /theWebApp/IDontExist.htm would be 404'd by apache ... I think ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[newbie] connectionTimeout value for AJP Connector
Hi, I am a new member on tomcat mailing list. For tomcat 5.5 - Is there a recommended value for connectionTimeout attribute? How to decide this value? The documentation says : The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is infinite (i.e. no timeout). Thanks for your help!
Denying IP Addresses
Hi all, Just soliciting some feedback on how to effectively, thwart data mining on our server. We have a reactive solution when it comes to screen scraping and data mining on Tomcat 5.5. We simply find the offending IP's and add them to the deny rules using the Valve - org.apache.catalina.valves.RemoteAddrValve >From what I understand, for changes to take effect, requires a restart of Tomcat. I was thinking to override the RemoteAddrValve to retrieve offending IP's from a file as well, so as not requiring a restart everytime an offending IP is found. Our applications then would be able to identify offending IP's, and based on their own rules, add them to the file. Is this a viable strategy? Thanks in advance, Ed
Apache Httpd & Tomcat error pages
Hi all, We've got an Httpd 2.0 server sitting in front of a Tomcat 5.5 with mod_jk. Tomcat has several set up, amongst which HTTP 404, and so has Httpd. When the user tries & retrieve an inexistent page, he or she receives the page from Tomcat, with a 404 error-code. Can anyone explain me why the error page doesn't come from Httpd ? Is it expected behavior from mod_jk ? Cheers, Pierre
RE: SSL https clientAuth debugging assistance
Thank you Martin for your reply. I installed the log4j and it is logging information when I shutdown tomcat, but no other time. I have also tried messing with the java.util.logging but an getting nowhere with that. I am using the default log4j.properties as mentioned on the tomcat web pages. I expected more stuff in the log file and was hoping for SSL connection information. Am I off base? Tim -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 12:43 PM To: Tomcat Users List Subject: RE: SSL https clientAuth debugging assistance implement a logger so you can trace whats going on http://tomcat.apache.org/tomcat-5.5-doc/logging.html also in %TOMCAT_HOME/conf/server.xml crankup the debug attribute on your http://tomcat.apache.org/tomcat-4.0-doc/config/http11.html and you'll see lots of messages in tomcat console HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: SSL https clientAuth debugging assistance > Date: Mon, 8 Sep 2008 11:49:04 -0500 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > > We have just started using Tomcat. We are using version 5.5.26. > > I was able to set up Tomcat and get it running with our application. I > also have enabled SSL: >maxThreads="150" minSpareThreads="25" > maxSpareThreads="75" >enableLookups="false" disableUploadTimeout="true" >acceptCount="100" scheme="https" secure="true" >clientAuth="false" sslProtocol="TLS" >keystoreFile="conf/keystore" keyAlias="tomcat" /> > > I have one user that needs use to authenticate their client. I have > this working on our development system (added their certificate to our > keystore) but following the same process to our test box is failing. > The client (which I don't have access to) is giving a very generic error > message. > > Is there a way that I can see why the client is failing the connection > (i.e. certificate doesn't match client, certificate expired, ...) or get > more debugging information from the Tomcat side? > > Thanks > Tim _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as a Service on Non-default port
Kamal Sheikh wrote: Hi, I am using Tomcat v 5.5.23 and want to run the server as a Windows service (tomcat5.exe) on a port other than the default port of 8080. Is it possible to install Tomcat as a service and configure it so that it runs on a different port? While we can configure Tomcat and run it on a different port when we are in console mode (startup.bat or catalina run), but as a service it doesn't seem possible to change the default port. Any help will be appreciated. Thanks. That's a really easy one, even I can answer : In your Tomcat installation directory, look for the subdirectory "conf", and in it the file "server.xml". Locate this bit : and change it to : (i.e. the port= attribute, whatever it is and whatever you want). Then start (or restart) the Tomcat service. André - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat as a Service on Non-default port
> From: Kamal Sheikh [mailto:[EMAIL PROTECTED] > Subject: Running Tomcat as a Service on Non-default port > > Is it possible to install Tomcat as a service and > configure it so that it runs on a different port? Ports are configured in the element(s) in conf/server.xml; a restart of Tomcat is required when changing port numbers. If the service doesn't reflect what you're editing, then the service is using a Tomcat installation different from what you think. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat as a Service on Non-default port
Hi, I am using Tomcat v 5.5.23 and want to run the server as a Windows service (tomcat5.exe) on a port other than the default port of 8080. Is it possible to install Tomcat as a service and configure it so that it runs on a different port? While we can configure Tomcat and run it on a different port when we are in console mode (startup.bat or catalina run), but as a service it doesn't seem possible to change the default port. Any help will be appreciated. Thanks.
Re: stupid tomcat/eclipse question
>> The error clearly indicates that servlet-api.jar is missing from the classpath. It should be located under CATALINA_HOME\lib in case of TC 6. You would think so but it's not the case. NoClassDefFoundErrors are seldom so clear. They do a nice job of hiding the root cause. In this case it was two copies of some totally unrelated class needed by a servlet that caused the error. I posted on the solution yesterday, [EMAIL PROTECTED] wrote: The error clearly indicates that servlet-api.jar is missing from the classpath. It should be located under CATALINA_HOME\lib in case of TC 6. -Original Message- From: Steve Cohen <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Mon, 8 Sep 2008 11:03 pm Subject: stupid tomcat/eclipse question I've had a stable development environment running Tomcat 6.0 within Eclipse 3.3. I did something stupid to configuration and now I can't get away from this error as soon as the server starts. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... In spite of trying putting everything I can think of onto the runtime classpath I can't make this go away. Where is Tomcat supposed to find javax/servlet/Servlet and why was this so easy before and so difficult now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You are invited to Get a Free AOL Email ID. - http://webmail.aol.in - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The requested resource (/manager/) is not available.
> From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] > Subject: Re: The requested resource (/manager/) is not available. > > Check to see if your webapps directory contains the /manager and > /tomcat-docs folders. Also make sure your server.xml file is pointing > to the /webapps directory as its starting place. Don't respond to this thread - it dates from over a year ago and was answered within a very short time of the question being asked. Some clown was browsing techienuggets and responded to the initial message without ever reading any of the responses. It's unfortunate that techienuggets works so poorly. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The requested resource (/manager/) is not available.
yes .. specifically Date: Tue, 9 Sep 2008 08:08:02 -0400 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: The requested resource (/manager/) is not available. > > Check to see if your webapps directory contains the /manager and > /tomcat-docs folders. Also make sure your server.xml file is pointing > to the /webapps directory as its starting place. > > [EMAIL PROTECTED] wrote: > > See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf > > of a User > > > > try: > > /manager/html instead! > > > > > > In Response To: > > > > Hi list, > > > > I'm trying to use the manager webapp for the custom Ant tasks on Tomcat > > 6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and > > created a username/password admin/admin that has the manager role. > > However, when I try to connect to the manager webapp by pointing my > > browser to http://localhost:port/manager, I get the error: > > > > _The requested resource (/manager/) is not available. > > > > _I know I must be missing something obvious. I've searched Google for > > suggestions and I've read the Manager How-To online but to no avail. > > Perhaps I am missing some directories in my Tomcat installation? When I > > try to navigate to http://localhost:port/tomcat-docs I receive the same > > error. > > > > Is it possible I have a directory in the wrong place? I doubt that would > > be the case because I simply downloaded the Tomcat 6.0.9 core > > distribution and followed the instructions. Do I need the deployer or > > something? > > > > Thanks, > > Dan > > > > - > > To start a new topic, e-mail: [EMAIL PROTECTED] > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > . > > > > > > -- > Robert K. Vanderhoek > (603) 772-2305 > Computer Technician > IT Department > Connor & Connor > 16 Kingston Rd Unit #5 > Exeter, NH 03833 > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Re: The requested resource (/manager/) is not available.
Check to see if your webapps directory contains the /manager and /tomcat-docs folders. Also make sure your server.xml file is pointing to the /webapps directory as its starting place. [EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf of a User try: /manager/html instead! In Response To: Hi list, I'm trying to use the manager webapp for the custom Ant tasks on Tomcat 6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and created a username/password admin/admin that has the manager role. However, when I try to connect to the manager webapp by pointing my browser to http://localhost:port/manager, I get the error: _The requested resource (/manager/) is not available. _I know I must be missing something obvious. I've searched Google for suggestions and I've read the Manager How-To online but to no avail. Perhaps I am missing some directories in my Tomcat installation? When I try to navigate to http://localhost:port/tomcat-docs I receive the same error. Is it possible I have a directory in the wrong place? I doubt that would be the case because I simply downloaded the Tomcat 6.0.9 core distribution and followed the instructions. Do I need the deployer or something? Thanks, Dan - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Robert K. Vanderhoek (603) 772-2305 Computer Technician IT Department Connor & Connor 16 Kingston Rd Unit #5 Exeter, NH 03833 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with user/password data when trying to connect to DBs - Tomcat sees '' as username instead of the given one
You have an error in your Resource definition. The attribute for username is 'username', not 'user'. The corrected version is below: See the JNDI Datasource docs for your version of tomcat at tomcat.apache.org. --David Daniele Development-ML wrote: Hello, I have a WS deployed on Tomcat and querying a DB. The JDBC and JNDI configurations should be fine but I still have some problems. When loading the WS (actually starting Tomcat) I got the following exception. It doesn't recognise the user and password I set in the context.xml. I searched for similar problems, but in the net there are only example exceptions that indeed see the username they set. In my case, the program doesn't consider the username "me" and indeed tries to estabilish the connection with username ' ' . The account perfectly works when accessing through the MySQL Query Browser. Any hints on what I'm doing wrong? Thanks! Dan Tomcat Exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost' (using password: YES)) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at uk.ac.ox.comlab.combio.euhart.db.DBAccess.connect(DBAccess.java:96) at uk.ac.ox.comlab.combio.euhart.db.DBAccess.(DBAccess.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.xml.ws.api.server.InstanceResolver.createNewInstance(InstanceResolver.java:215) at com.sun.xml.ws.api.server.InstanceResolver.createDefault(InstanceResolver.java:180) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:123) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:342
Problems with user/password data when trying to connect to DBs - Tomcat sees '' as username instead of the given one
Hello, I have a WS deployed on Tomcat and querying a DB. The JDBC and JNDI configurations should be fine but I still have some problems. When loading the WS (actually starting Tomcat) I got the following exception. It doesn't recognise the user and password I set in the context.xml. I searched for similar problems, but in the net there are only example exceptions that indeed see the username they set. In my case, the program doesn't consider the username "me" and indeed tries to estabilish the connection with username ' ' . The account perfectly works when accessing through the MySQL Query Browser. Any hints on what I'm doing wrong? Thanks! Dan Tomcat Exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost' (using password: YES)) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at uk.ac.ox.comlab.combio.euhart.db.DBAccess.connect(DBAccess.java:96) at uk.ac.ox.comlab.combio.euhart.db.DBAccess.(DBAccess.java:37) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.xml.ws.api.server.InstanceResolver.createNewInstance(InstanceResolver.java:215) at com.sun.xml.ws.api.server.InstanceResolver.createDefault(InstanceResolver.java:180) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:123) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:910) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3923) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1273) at com.mysql.jdbc.ConnectionImpl.createNewIO(Conne
Re: Tomcat 6 and images
Mathias P.W Nilsson wrote: > Can this be hacked? like http://localhost/files/../../somefile No. There have been some recent vulnerabilities with particular configurations in this area but these are fixed in the latest 5.5.x and 6.0.x releases. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [NEWBIE] Separate tomcat engines on the same physical server
> From: Jon Camilleri [mailto:[EMAIL PROTECTED] > Hence, is it feasible to have: > > - Server 1 installed with Tomcat instance #1 and > Tomcat instance #2 over JVM #1 > > - Server 2 installed with Tomcat instance #1 and > Tomcat instance #2 over JVM #2 If by JVM you mean "the files installed to support Java on the computer", yes. One Java installation can support many concurrent processes running Java. If by JVM you mean "one process running Java", no. Each Tomcat must run in its own process. > What are your views on this? I've successfully run up to three Tomcats on the same machine, as three processes, all with the same JAVA_HOME. It's a good way of providing isolation between applications, or even Tomcat versions (I was running two 5.0.x, one 5.5.x). > Any relevant documentation on configuring them this way? See the file RUNNING.txt in the Tomcat zip you download. There's a section at the end on running multiple Tomcats on the same box. Setup can get a little interesting if you're running on Windows and want both processes to start as services, but even that's entirely possible to configure. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]