RE: can't send request over my network ip
You are using the port when trying from the pricate network also, right? Andrew -Original Message- From: Sebastian Kerekes [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 9:17 AM To: Tomcat Users List Subject: can't send request over my network ip I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172 (private network). I'm using Tomcat 5.0.27. I haven't changed any of Tomcat's settings. Do I have to change some settings or is this problem not related to Tomcat? - 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: Rotation of Catalina.out
If you remove the stdout references then the output will only go to your file. See below: <<<<<<<<<<<<<<<< # Sample properties to initialise log4j #log4j.rootCategory=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=logtags.log log4j.appender.R.MaxFileSize=100KB # Keep one backup file <-- really keeping 2, you know that right? log4j.appender.R.MaxBackupIndex=2 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n <<<<<<<<<<<<<<<< Hope that helps, Andrew -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 8:47 AM To: Tomcat Users List Subject: Re: Rotation of Catalina.out Well actually I am using Log4j (under the covers) I think. I am using the JSP tags, and they have log4j as a pre-req. But obviously somehow the default config for log4j is writing to stdout rather than a log file. The default log4j.properties file that ships with the log tags is:- <<<<<<<<<<<<<<<< # Sample properties to initialise log4j #log4j.rootCategory=debug, stdout, R log4j.rootCategory=debug, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%5p - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=logtags.log log4j.appender.R.MaxFileSize=100KB # Keep one backup file log4j.appender.R.MaxBackupIndex=2 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n <<<<<<<<<<<<<<<< Obviously I need to modify this to get it to put the output somewhere else and to rotate it. But reading the log4j manual on the apache site I am not sure I know what I need to modify. TIA David On Friday 03 September 2004 13:55, Andrew Janian wrote: > Here is a couple links that should explain the lack of rotation of > catalina.out: > > 1) http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out > > This one is from the tomcat website and is just the question you are > asking. It says that you should not be using stdout (System.out.println) > because you should be using a logging package like log4j (good > recommendation). > > 2) http://marc.theaimsgroup.com/?t=10554447261&r=1&w=2 > > As reference by the above link, this one is a thread about rotating > catalina.out. > > Hope this helps, > > Andrew Janian > > -Original Message- > From: David Goodenough [mailto:[EMAIL PROTECTED] > Sent: Friday, September 03, 2004 7:49 AM > To: [EMAIL PROTECTED] > Subject: Rotation of Catalina.out > > > I am running Tomcat 5.0.27 on a Debian Unstable system > in /usr/local/share/tomcat5. Under this directory is the logs directory > and that contains lots of localhost_log.-mm-dd.txt files (one for > each day) but only one catalina.out file. > > In server.xml there are two Logger tags:- > > > prefix="catalina_log." suffix=".txt" > timestamp="true"/> > > directory="logs" prefix="localhost_log." suffix=".txt" > timestamp="true"/> > > and I guess that the latter is responsible for all the daily logs. > > The former however is obviously not responsible for the > catalina.out as the file name is wrong. > > So I assume that Catalina.out is coming from > StandardErrLogger and/or StandardOutLogger. > > My question is how to get daily files for Catalina.out? > > David > > - > 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: Rotation of Catalina.out
Here is a couple links that should explain the lack of rotation of catalina.out: 1) http://jakarta.apache.org/tomcat/faq/misc.html#catalina.out This one is from the tomcat website and is just the question you are asking. It says that you should not be using stdout (System.out.println) because you should be using a logging package like log4j (good recommendation). 2) http://marc.theaimsgroup.com/?t=10554447261&r=1&w=2 As reference by the above link, this one is a thread about rotating catalina.out. Hope this helps, Andrew Janian -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 7:49 AM To: [EMAIL PROTECTED] Subject: Rotation of Catalina.out I am running Tomcat 5.0.27 on a Debian Unstable system in /usr/local/share/tomcat5. Under this directory is the logs directory and that contains lots of localhost_log.-mm-dd.txt files (one for each day) but only one catalina.out file. In server.xml there are two Logger tags:- and I guess that the latter is responsible for all the daily logs. The former however is obviously not responsible for the catalina.out as the file name is wrong. So I assume that Catalina.out is coming from StandardErrLogger and/or StandardOutLogger. My question is how to get daily files for Catalina.out? David - 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]
Recursion in JSP
Does anyone know if I am able to use recursion to traverse a tree but then to use a tag inside the recursive method? If that was unclear, I want to know if I can do this: <%! void dfs(Node root){ %> <%! Vector children = root.getChildren(); for(int i=0; i <%! } %> Thanks, Andrew Janian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does the deploy descriptor work?
If it is not a typo then your problem is here: --> myRoot (missing a >) and then the next one too. Andrew -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 3:11 PM To: [EMAIL PROTECTED] Subject: How does the deploy descriptor work? I thought I understood this, but clearly I don't! (Or at least my app doesn't work.) So, if I may, I would like to explain my understanding of how you create the deploy descriptor, and how it works in Tomcat. Just to get some clarity. OK, so I have a website, hosted as the context /mywebsite in Tomcat. So the localhost syntax to the root of this application is: http://localhost/mywebsite/ Now as I understand it, to get this URL to execute a servlet called Index (ie the class WEB-INF\classes\com\mywebsite\Index.class -- assumes Windows) I need to add this to the deployment descriptor: com.mywebsite.Index / That is straight forward. Now what if I want /Login, /Register, /Catalogue, etc? What is the url-pattern for these? If I enter /Login, for example, will this the call that servlet when I use this URL: http://localhost/mywebsite/Login If not, and I have to use a url-pattern of /mywebsite/Login, what happens if I decide to change the context path, or even to host it as a virtual server? Do I have to re-edit the web.xml file to reflect these changes? One final question. If the url-pattern for Login is /mywebsite/Login.something, does this mean the user has to type: http://localhost/mywebsite/Login.something for this to trigger? In short, is it the URL that is all important, and not the underlying filenames? (God knows how the wildcards work, so I've been trying to use 'full paths' as I thought this was easier. But I get no output even though I have lines writing to the ServletConfig log, to standard out and to the PrintWriter output!) If anyone can comment on the above -- such as it is totally accurate, or it is all rubbish -- that would be useful! Joe. _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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]
Tomcat fails to start
I am using Eclipse with MyEclipseIDE to run Tomcat. If I use the startup.bat for tomcat everything works fine. However, if I use eclipse to start tomcat i get the error below. Any ideas? The version of server.xml that you see below is near identical to server-minimal.xml. This has been happening for about a day now. There were no changes made when it started to occur, but since then I have reinstalled the JDK, Eclipse, and MyEclipseIDE. Thanks in advance, Andrew factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml Thread [main] (Suspended (exception EOFException)) XMLEntityScanner.load(int, boolean) line: not available XMLEntityScanner.skipSpaces() line: not available XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(boolean) line: not available XMLDocumentScannerImpl(XMLDocumentFragmentScannerImpl).scanDocument(boolean) line: not available XML11Configuration.parse(boolean) line: not available XML11Configuration.parse(XMLInputSource) line: not available SAXParser(XMLParser).parse(XMLInputSource) line: not available SAXParser(AbstractSAXParser).parse(InputSource) line: not available CatalinaDigester(Digester).parse(InputSource) line: 1548 Catalina.load() line: 489 Catalina.load(String[]) line: 528 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object[]) line: 324 Bootstrap.load(String[]) line: 247 Bootstrap.main(String[]) line: 421 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to "start" a web app?
That looks about right. It is re-deploying the app after the context is removed (why it is removed at all i do not know). Everything looks fine. -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 2:10 PM To: Tomcat Users List Subject: Re: How to "start" a web app? On Thursday 08 July 2004 11:50 am, Andrew Janian wrote: > Are you sure that Tomcat itself is running? Would I not have trouble getting the Home page and logging into the Administration page were it not? Also, I can install, run and use JSP pages deployed to $CATALINA_HOME/webapps. I'm pretty sure it's running. > Did the manager webapp get > loaded. You should see in the logs that the manager webapp, administraion > app, and a couple other examples get loaded if you are using Tomcat out of > the box and have not disabled it. The log file shows these lines: Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /manager Jul 8, 2004 11:24:19 AM org.apache.catalina.core.StandardHostDeployer remove INFO: Removing web application at context path /admin Jul 8, 2004 11:24:19 AM org.apache.catalina.logger.LoggerBase stop INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost Jul 8, 2004 11:24:29 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/manager.xml Jul 8, 2004 11:24:26 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/etc/tomcat/Catalina/localhost/admin.xml > Did you provide a username and password > when the box popped up? What was the result if so? Yes, I did but it was the wrong ones and I was denied access at that time. I haven't had another chance. tomcat-users.xml looks like this: My username is "mel". -- Michael - 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: How to "start" a web app?
Are you sure that Tomcat itself is running? Did the manager webapp get loaded. You should see in the logs that the manager webapp, administraion app, and a couple other examples get loaded if you are using Tomcat out of the box and have not disabled it. Did you provide a username and password when the box popped up? What was the result if so? Andrew -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:19 PM To: Tomcat Users List Subject: Re: How to "start" a web app? On Thursday 08 July 2004 11:14 am, Andrew Janian wrote: > You don't get a login screen, you get a login popup. Not getting that > either? Nope, not getting that either. I did see it once, yesterday. Ever since, nothing. I have even reinstalled Tomcat without benefit. -- Michael - 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: How to "start" a web app?
You don't get a login screen, you get a login popup. Not getting that either? Andrew -Original Message- From: Michael Labhard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 1:12 PM To: Tomcat Users List Subject: Re: How to "start" a web app? > Long story short: Tomcat does not search the "webapps" directory > recursively for webapps; it loads contexts that are immediate children > of the "webapps" directory. > > -QM QM: Thank you. That was it. I thought I could create subfolders at will. I must put all apps only one folder below. Any ideas about the problem with the Manager? I still cannot use it. Shouldn't I get a login screen as I do with the Administration option? -- Michael - 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]