2018-10-21         Odelette

Enabling User Roles in Hawtio through TomCat Authentication

I have an instance of Hawtio-offline deployed on a TomCat server which is authenticated through TomCat authentication (so, for example, the users are defined in the conf/tomcat-users.xml file). I was wondering if there is a way to enforce user roles and permissions solely through TomCat authentication. For example, I would like to have a guest user that can only view each tab but not change anything. Or have a role that can only start or pause camel contexts and cannot destroy contexts.Is this possible? If so what is the best way to implement this? Thank you! At this mom...

 tomcat                     1 answers                     94 view
 2018-10-21         Nathaniel

What is the difference between ‘catalina.out’ and ‘catalina.YYYY-MM-DD.log’ log files in tomcat webapp server?

In a tomcat server, logs folder contains files like theselocalhost.YYYY-MM-DD.log: the log of the hosthost-manager.YYYY-MM-DD.log and manager.YYYY-MM-DD.log: the logs of the related web applications catalina.YYYY-MM-DD.log:: the container log filecatalina.out: ??I have an understanding about all the log files other than "catalina.out". I was looking for an explanation in the documentation but couldn't find different between "catalina.out" and "catalina.YYYY-MM-DD.log". When I go through the content, both seem similar. Can someone please help me to differentiate them?Note: R...

 tomcat                     1 answers                     80 view
 2018-10-21         Hedy

Unable to post data to Apache tomcat server using POSTMAN

I am trying to post some data to apache tomcat server from POSTMAN. I am able get data from the server but unable to post(the endpoints are different). For example when I do Get from the endpoint :http://coreapi.imagin8ors.org:8080/v1/child/140df552-eba9-42c3-8c9e-6d478637925f/learningpods_new/ But when I am trying to post with some data to the another end point: http://coreapi.imagin8ors.org:8080/v1/parent/ I get 405 response code(method not allowed).The HTML response.<!DOCTYPE html><html><head> <title>Apache Tomcat/8.5.9 - Error report</title...

 tomcat                     1 answers                     33 view
 2018-10-21         Simon

Tomcat does not undeploy one jar

I am using Tomcat 5. And I am using manager application to undeploy a war file from remote.It deletes war file and all extracted files. But it does not delete one jar (lib/struts.jar) file. I do not know what the reason is. I need to delete all the files even if Tomcat is running. Thanks. We had this problem with Struts 1.3.8 but it was fixed in 1.3.10. If you are using the old Struts, please upgrade.Here is the related bug,http://issues.apache.org/struts/browse/STR-3143Add antiResourceLocking="true" to your Context may help also. [XXX]

 tomcat                     1 answers                     54 view
 2018-10-21         Nathan

remote deploy on tomcat with CARGO fails with TIMEOUT

I'm running into a problem when doing a remote deploy with cargo-maven2-plugin (1.0.6). The war I'm deploying is rather large and the default 20 seconds are not enough to do the full deploy. The actual exception is (after 20 seconds): Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:deploy (default-cli) on project myproject: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.0.6:deploy failed: Failed to deploy [path/myproject.war]: Connection timed out: connect -> [Help 1]I have cargo configured as follows: <plugin><groupId...

 tomcat                     1 answers                     77 view
 2018-10-21         Levi

Can I manipulate tomcats answer on request.getServerName() or request.getLocalAddr() by configuration in server.xml

and if so: How?I need this because the server is known under different IPs in different sub-networks. As far as I know, it is not possible to change the value returned by ServletRequest.getServerName() or ServletRequest.getLocalAddr() just with a simple config change in web.xml.But you could write a ServletRequest/HttpServletRequest wrapper which just delegates all method calls to the original request, execept those you want to return non-standard values. To wrap all requests coming to your application, you could implement a Filter, which just wraps the incoming request ...

 tomcat                     2 answers                     88 view
 2018-10-21         Edison

ApacheTomcat - 301 Redirect

I m using Tomcat server for web application. Please let me know how do i implement 301 redirection code in tomcat server to resolve url conanicalization(Non www to www)?For Apache server we can place seo friendly 301 redirection code in .htaccess file, But what about in Tomcat server how and where to insert 301 permanent redirection code.ex: (xyz.com) TO (www.xyz.com)TIA You can do like this in your Servlet. Set 301 status and new location url into HttpServletResponse.response.setStatus(301);response.setHeader("Location", "http://www.example.com/redirect-to-here.html" )...

 tomcat                     1 answers                     64 view
 2018-10-21         Heloise

Cookie issue when switching between HTTP and HTTPS on Tomcat

I am working on a scenario where site is present on both HTTP & HTTPS.When user has logged-in to HTTPS site, "secure" cookies for JSESSIONID is stored in browser. If user closes browser, and comes back - and this time wishes to use HTTP login - the user is not able to login, as browser would not store the new "insecure" JSESSIONID in browser, and also won't send the previously stored secure cookie to server.My question is:Is there a way that when user logs in using HTTP, the server can send new "insecure" cookie in a way that it will convert the existing "secure" cooki...

 tomcat                     2 answers                     98 view
 2018-10-21         Malcolm

How to apply a free third party CA and set up Tomcat SSL with it

These days I tried to apply a free third pary CA ( www.cacert.org & www.freeca.cn ) and then set up Tomcat SSL with the CA. My purpose is to eliminate the "Certificate Error" page when accessing https://... from a client browser. But it's a little hard for me to get around it. My steps to apply a free CA, from www.freeca.cnI used keytool to generate a cer file with command: keytool -genkey ... // Generate a key keytool -certreq ... // Generate a cert file and then I got some code from the cert file, and paste onto www.freeca.cn to generate a cer file. Then I importe...

 tomcat                     1 answers                     20 view
 2018-10-21         Mavis

Configuring Tomcat to consume webservice over SSL

Which steps should be taken to consume a web service on a remote server over SSL? The application is a Java application using Axis WS Framework running on Tomcat 6.I'm aware of e.g. the instruction on http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html, which, however seem to mainly describe how to configure the server to accept SSL requests. For client connections, it's just like SSL for any other Java application. The fact that it's running in Tomcat doesn't make a difference.You'll need to specify the correct "https:" endpoint for the web service. If this wasn't th...

 tomcat                     2 answers                     51 view
 2018-10-21         Roderick

Serve different certs for same Tomcat application via connectors?

For a limited time, we have to serve the same Tomcat 6 web application from two different domain names. Both domains need to be served HTTPS - is it technically possible to handle serving different certs for the same app using connectors (or other method)?The other option (which we are trying to avoid) is to handle the cert delivery upstream of the application. TIA,Geoff There are 3 ways to do this,Get 2 IPs for the same host and set up 2 connectors bound to each IP. This is cleanest solution.Get a cert with SAN (Subject Alternative Name). This is basically a cert with 2...

 tomcat                     1 answers                     53 view
 2018-10-21         Zara

Video file download over SSL is 10 times slower on my Tomcat server

When loading a video files over SSL, speed is 10 times slower than if not using SSL. I am using Tomcat 6 on Windows 7. What can I do to fix that? This answer might not be popular, or what you want to hear, but especially as you mention encryption: Stay on top of the current technology. Tomcat 6 requires Java 5, and both are long outdated. You might not be running on Java 5 any more, but you don't state the JRE version. You're running Tomcat 6 though, which has seen its end of life in 2016.Once you have updated: Measure. Try alternatives. There are multiple ways to set up...

 tomcat                     1 answers                     83 view
 2018-10-22         Jean

Silent authentication with Tomcat and Active Directory

Possible Duplicate: Detect user logged on a computer using Java web app I need to do that with tomcat and a J2EE Web App. I don't want a pop up window asking the user for credentials.I must use the user logged on Windows to authenticate him on my web app.How can I do it?Thanks! I don’t believe Tomcat natively supports integrated authentication, however it does support custom authentication modules. Give these URL's a try:http://appliedcrypto.com/files/tomcat_spnego.pdf http://jcifs.samba.org/src/docs/ntlmhttpauth.html [XXX]Tomcat doesn't support NTLM authentication,...

 tomcat                     2 answers                     54 view
 2018-10-22         Fabian

tomcat and dynamic dns

I configured a dynamic DNS with no-ip.com. I have on my remote machine a Tomcat Application server. I also configured a Virtual Server on the router both on 8080 and 8443 ports and I edited "server.xml" to work with SSL. Typing http://localhost:8080 and https://localhost:8443 everything works fine. On another machine if I type http://mydomainname.noipdomainname:8080 it works, but if I type https://mydomainname.noipdomainname:8443 it doesn't works. Please help me configuring the server!In addition: the error is 111(net::ERR_TUNNEL_CONNECTION_FAILED) We have had something...

 tomcat                     1 answers                     66 view
 2018-10-22         Jeffrey

how to start tomcat in Jenkins job using shell script?

I have jenkins installed in my linux machine, in that under > Build > Execute shellI added sh -x /opt/WebService/7.9SP2_Airtel/bin/startup.sh to make tomcat up.but tomcat not coming up but if I run same command in linux machine terminal directly tomcat coming up !Jenkins console output log :os400=falsedarwin=falsecase "uname" in++ unamePRG=/opt/WebService/7.9SP2_Airtel/bin/startup.sh'[' -h /opt/WebService/7.9SP2_Airtel/bin/startup.sh ']'++ dirname /opt/WebService/7.9SP2_Airtel/bin/startup.shPRGDIR=/opt/WebService/7.9S...

 tomcat                     1 answers                     100 view
 2018-10-22         Newman

Tomcat: two context paths for one webapp

The problem is:I have a web app and this web app is deployed to the $TOMCAT_HOME/webapps/XXX directory.I can reach that on the http://localhost:8080/XXX addressBUT, I would like to reach the web app on the http://localhost:8080/YYY address too.I added the following to the server.xml:<Server> <Service> <Engine> <Host> ....... <Context path="/YYY" docBase="XXX"></Context> </Host> </Engine> </Service></Server>It helped but the Tomcat started two w...

 tomcat                     2 answers                     63 view

Page 1 of 75  |  Show More Pages:  Top Prev Next Last