Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Prateek Gupta

Greenhorn
+ Follow
since May 31, 2010
Prateek likes ...
Tomcat Server
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 Prateek Gupta

Hi,
I have been using Struts2 for a while. So now, I wanted to integrated my Struts2 applications with Spring Security framework to deliver secure applications. Kindly guide me how to integrate them.
Any help would be really appreciated
10 years ago
Hi,
I am trying to integrate IIS 7 with Tomcat 6 in Windows 2008 64 bit using the isapi_redirect.dll.
However, the IIS is not able to redirect the JSP requests to Tomcat and I am not even able to see any log files for the isapi_redirect.

Can anybody help me on this issue.



Regards,
Prateek Gupta
10 years ago
Hi,
I am trying to integrate IIS 7 with Tomcat 6 in Windows 2008 64 bit using the isapi_redirect.dll.
However, the IIS is not able to redirect the JSP requests to Tomcat and I am not even able to see any log files for the isapi_redirect.

Can anybody help me on this issue.



Regards,
Prateek Gupta
10 years ago
Yup.. I've checked the server logs... Server is listening on port 1434......

Also, I only encounter the above mentioned problem sometimes in a day.. Otherwise everything works fine...
Hi,

When I try to connect to SQL Server 2005 using JDBC, sometimes , the following error occurs and the connection fails..

" Prelogin error: host localhost port 1434 Error reading prelogin response: Connection reset "

I cant understand the reason behind this.. Please Help !!
Hi,
I am using the access valve in tomcat which creates an access log in the logs folder.
When a visitor who is behind a proxy, visits my site, then the IP of his proxy gets logged in the access log.

However, I am interested in logging the actual IP of that visitor.
Is there a workaround for this problem in Tomcat???


Cheers,

Prateek Gupta

11 years ago
Thanks for the reply

Im using Windows OS so this approach dose not seem to be secure...

I am currently using an adhoc approach by creating jsp pages with the following names
1) EFile 2) Efile 3) efile 4) eFile.
and then redirecting them all to one page.

Kindly suggest some better and secure approach if possible...

11 years ago
Hi,

Is there some configuration in Tomcat 5 so that the file search can be made case-insensitive...

Eg. localhost:8080/EFile should point to the same page as localhost:8080/efile ???




Regards,

Prateek
11 years ago
Thanks for your reply
However, Using both these methods, I will not be able to see the tomcat homepage anywhere.
My requirement is that the page should not be visible to any remote computer, however at the same time, it should be visible to me as I need it for uploading web apps using Tomcat Manager.
Is there a way by which I can allow only certain IPs to view this page???
11 years ago
Hi,
I have deployed a site using Tomcat 5. However, one problem im facing is that when i type the URL http://sitename:8080 from a remote machine, then the default Apache page gets opened.. How can I disable this??? Kindly help...
11 years ago
Finally, my war file got deployed on tomcat.
It seems the war file being created was corrupt...
I was using the following command to create the war file.
jar cvf Sample.war C:\Sample\

Still cant understand why it was creating corrupt WAR files.
Now, I created the WAR file using the deploytool of J2EE Application Server and the file got executed perfectly.

Thanks for all your help.....
11 years ago
Its still giving the same error...
Actually, the error occurs only when I create the WAR file and try to deploy it on the server....
When I use the exploded form, then it works fine and Im able to access it using the URL localhost:8080/Sample
11 years ago
I was just going through the error and the first few lines are as follows :

SEVERE: Exception fixing docBase for context [/Sample]
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)



Can it be some problem with the Windows File System??? Im using Windows 7 64-bit OS....
11 years ago
No. Actually, i havn't created a server.xml file.
I created a context.xml file and stored it under META-INF folder.

Can you please elaborate on what should be included in the context.xml file??
11 years ago
I defined the docBase in context.xml file which is as follows

<context docBase="C:\apache-tomcat-6.0.26\webapps\Sample.war">

<WatchedResource>WEB-INF\web.xml</WatchedResource>

</context>
11 years ago