Win a copy of Head First Android this week in the Android forum!

Matthew Hersee

Greenhorn
+ Follow
since Dec 19, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matthew Hersee

Hi,

We are running IIS5, JK and Tomcat 6.

I need to review the IIS logs to see commonly hit pages but because they are being handed over to tomcat the real URL is not logged, instead I get

...GET /jakarta/isapi_redirect.dll - 200...

What I want to see in the log is

...GET /real-url-of-page.htm - 200...

This is running successfully in another one of our environments so I know it is possible, I just can't work out what to change!

Does anyone know where it is configured to log the real URL rather than just "/jakarta/isapi_redirect.dll"?

Thanks in advance

Matt

11 years ago
Hi all,

After routing around in the registry settings i think i have found the right place for these variables. In HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\tomcatqasdotcom\Parameters\Java\Options.

OK, when i try and start tomcat via the windows service i now get the following errors in my stdout



The weird thing is that when i run tomcat from a command prompt i get no such errors

I have literally no idea how to proceed from here so any help would be much welcomed.

Thanks

Matt
14 years ago
Hi,

Thanks very much for getting back to me.

(I need to run tomcat as a windows service)

IT say that its not an option to reinstall the service! So if anyone can help me out by telling me the exact entry i need to hardcode into regedit then that would be great.

Many thanks in advance

Matt
14 years ago
hi,

I was googling this exact problem.

I dont have access to the tomcat UI. Can somebody tell me which file i need to put those two lines.

Much appreciated

Thanks

Matt
14 years ago
thanks for the response

i looked in the errorstream and it was permissions that were stopping the final statement of my bat file from running. Hence no output

this is signed off
14 years ago
Hi,

I am running a local (localhost) web application that needs to access a VSS installation on a remote machine via a DOS command line on my local machine.

I have written the java (Runtime.exec etc) to run the DOS command. But evidently I get an "access is denied" error when the command line tries to access the remotely installed VSS ini file.

My question is this - how can i work out what user my java web app is running as? Or is there a way of making the webapp impersonate my user rights for this connection?

if i can find this out then i can get my IT department to give this user rights to access the remote machine.

Thanks in advance

Matt
14 years ago
Hi,

I am running the VSS command line from a java app.

I run the runtime.exec, this executes a bat file.

I need to read the output of the process - which is the contents of a file from VSS.

However my reader only shows me the that it has run each line from the bat file, not any of the ouput. I kept thinking i should be using the p.getOutputStream() method, but i can only write to that. I am most confused.

At present i have the following code



I am sure i am missing something obvious here.

Thanks in advance

Matt
14 years ago
Hi there,

Thanks for the response

1 - my catalina_home variable is set to "C:\apache-tomcat", all of my logs live in C:\apache-tomcat\logs

2 - Tomcat version is 5

3 - apache.log - i think this comes back to my ignorance about logs and how they are configured, i have no idea why that file has that name. We arent doing anything clever using Apache - we use IIS as our webserver

4 - yep, i think it is the filters, but my problem is that i have no log that gives further detail about the reason the filter failed to load correctly. Can i change log4j/web.xml somehow to get more detail about these errors?

Ta

Matt
14 years ago
Hi all,

(I hope you can help and that i have posted this in the best place)

When i restart tomcat my web application generates the following errors

Apache.log



Stdout




I cannot find any more debug information in any of the logs so am at a loss as to where to look next. I have checked the xml files and they all seem fine and have worked previously. We are using log4j to manage our logs

1 - is there a way to get more information about these errors?

2 - i dont have a catalina.log file anywhere, can someone tell we how to configure this? will this log file contain any useful info?

3 - is log4j restricting the amount of logs i can see? can i turn it off somehow to enable me to see absolutely everything in a stdout?


Sorry for so many questions but i have been looking into this for hours now and my patience is long gone,

Thanks in advance for any help

Matt
14 years ago