How can I force Tomcat to use my own implementation of Authenticator, and not the existing one like FORM, BASIC, DIGEST, etc? I know if I add my authentication class name in org.apache.catalina.startup.Authenticators.properties it would work. I need an alternative for this.
I want to be able to access a folder from my tomcat webapps folder so that I can give someone a URL like:
http://localhost:8080/myFolder/myFile.f
And in a web browser if they point to this they should start downloading the file.
But in reality I get a 404 error when I try to point to this location.
How can I solve this or get around it.
Alright, this is a very simple question. I just installed Tomcat 6 on my Mac to play around with it, and every tutorial I look at says the first thing to do to create a new web application is to add a line to the server.xml file with defines a new Context. Fair enough. However, my question is, I don't see a line in there for the example web applications, so how do those work?
How to have resource handler in tomcat, which simply check resource like js or css and append an ?[last-modified-date] to it's url, so we enable cache, and be sure that client-browser use right resource?
thanks in advance...
I'm creating a Spring-WS based webservice and running it in tomcat. I made some change and now get a fault with OperationUnsupportedException.
I'd like to see the entire stack trace that Spring-WS is getting, but cannot figure out how to have it logged.
Does anybody know how to have this stack trace logged somewhere?
For a company that has their stack built on ApacheTomcat and JSP what would be the best web service platform to be leveraged by that infrastructure that would be consumed by .NET client.
From the .NET side I know the answer would be Windows Communication Foundation (WCF) but I'm not sure from the other side.
I just upgraded to hibernate 3.51 and I get an error now saying:
java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval () Z.
This only happens with Tomcat not with Jetty.
I've checked and I don't have any conflict and this method definitely exists. I have hibernate-jpa-2.0-api-1.0.0.Final.jar on the class path, and dont have any conflicting classes.
Any suggestions?
I'm deploying my application to Tomcat, which currently involves uploading a ~40MB war file to a remote server.
Often the changes within the war only affect jars and static content which account for maybe 2 - 3MB's. Is there some tooling I can integrate with my Ant script that can accurately detect the changes to the war and give me a smaller subset to upload?
Which one is better way of using MySQL in Tomcat :
A) assign a DB connection for user as long as it's session is valid. [OR]
B) open connection to DB, on every request come to server and when it's done close that.
?
Hello,
I have successfully deployed an instance of SOLR 1.4 into Tomcat6 on a Redhat server.
My question is, how do I configure it to log SOLR events? When I was using it previously on Jetty everything was getting logged to jetty/logs. However in Tomcat it doesn't seem to show up anywhere.
Any ideas?
Thanks!
that's how the session factory should be gotten:
protected SessionFactory getSessionFactory() {
try {
return (SessionFactory) new InitialContext()
.lookup("SessionFactory");
} catch (Exception e) {
}
}
Please provide a simple solution for Tomcat6 to be able to get SessionFactory
thru simple jndi lookup in Java code.
What should be written in what file on the side of Tomcat ?
I am writing a tomcat app, and have a need to do authentication within the URL like this:
https://user:[email protected]
Except for the life of me i'm not sure how to set it up or able to find the docs to read up on it, clearly my google skills need work.
Can anyone tell me where i should be looking for this kind of info or where to start?
Cheers
Andy
Hello,
I'm creating a java web application runing on a Tomcat server.
One of the functions fill in a StringBuffer variable with data.
At the end, I would like to propose the user to download the generated content packaged in a text file. This without having to store the file on the server.
I've been searching for a code snippet but couldn't find anything corresponding ...
I hope I've been clear enough on my problem.
Thanks in advance,
Hi,
I'm using a singleton class for a PostgresSQL connection inside a servelet. The problem is that once it is open it works for a while (I guess until some timeout), and then it starts throwing a I/O exception. Any idea what is happening to the singleton class inside Tomcat VM?
Thanks
Hello Experts,
I need to run two web application in tomcat 6.0(Windows). My requirement is both applications should be in root folder to work.
Any clue where do I need to make changes to setting files ?
I'm using a LifecycleListener in tomcat to initialize some objects required by contexts in my web server. Within LifecycleListener I would like to have access to GlobalNamingResources Environment variables to keep the configuration for the server inside the server.xml file. When trying various approaches I get the following error:
javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
I'm assuming that the jndi is not initialized by this stage of the server startup process. Any ideas on how to tackle this?
how can I force tomcat to use my own implementation of Authenticator, and not the existing one like [FORM, BASIC, DIGEST,, etc]. I know if I added my authentication class name in org.apache.catalina.startup.Authenticators.properties it would work,,, any help please... I need an alternative for this...
Hi,
I have a web-service endpoint and a http connector on port X.
At some point this endpoint needs to switch to https, but on the same port!
(I know this is not the normal way of doing things, but this is what my clients expect from an old server they are using...)
Is there a way to do it in tomcat?
when i start tomcat from eclipse v3.3.1.1 it start but then if i try to access a web application from a browser it does not detect that the server is started...i need to stop the server from eclipse and then restart it by running start.bat and then the web app works fine...can any one tell me why is this happening ..?
I want to put my images to db but i want to have a link on each image.
So I have the idea to copy the image to the temp dir of tomcat (or weblogic).
But I must map the tempdir to a virtual path.
How do it ?
I am running Eclipse with Tomcat 5.5.
My dynamic web site project includes some JAVA code that needs external jar files. Where should I place those jar files so Apache will not giving me errors such as java.lang.ClassNotFoundException ?
Thanks on this.
I have deployed my project to tomcat root, and it works fine without any problem. To acheive this I created a ROOT file TOMCAT_HOME/conf/Catalina/localhost/ROOT.xml with content below:
<Context
docBase="/home/user/project.war"
path=""
reloadable="true" />
So right now I can see my project under localhost:8080/ without any problem.. but I don't know where my project has been extracted, there is even no ROOT directory under TOMCAT_HOME/webapps, any idea?