Nikita Manohar

Greenhorn
+ Follow
since Jan 06, 2010
Merit badge: grant badges
For More
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 Nikita Manohar

Hi,

Using java code, we are able to use the "removeConnector" method. We can successfully remove/disable the http or https connector. Now we want to enable it. However, we are not able to figure out how to use createConnector method.

private String createConnector(String parent, String address, int port,boolean isAjp,boolean isSSL) throws Exception

What do we pass as the parent here? We are passing the address as localhost and port as 8080. I hope atleast these two parameters are correct?

Thanks,

nikita
13 years ago
Hi Marco,

We have a web application coded in Java and deployed on Tomcat. Right now by making changes in the web.xml, the entire web app runs on HTTPS. Now we need to give the user an option of toggling the entire web app to http and vice-versa.

So now we need to access Tomcat through our code and make changes to toggle between http/https. We need to access the http-connector (in web.xml) through mbean that will allow to enable and disable the connector at runtime.

Could you please help us. We're at our wits end.
14 years ago
Hi,

We would like to know what do you exactly mean by "Why not just implement a solid configuration mechanism and make it accessible via MBeans?"
Please elaborate.
14 years ago
Hi..

Actually we need to toggle our entire web application from http to https dynamically. So we were thinking if we could make modifications to web.xml in the security constraint and we wanted to access the web.xml using mbeans. Do you think this is possible?

Thanks
14 years ago
Hello,

We are working on a project and need to run Mbeans with tomcat. what we want to do is actually make config changes in web.xml at runtime using mbeans. Is it possible to do so? could anyone give an idea?

Thank you
14 years ago
Hi,

Our web application is running on https except the java pages. ie. *.html and *.jsp pages are running over https.
The code as below:


<security-constraint>
<web-resource-collection>
<web-resource-name>survey1</web-resource-name>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>*.java</url-pattern>

</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

</web-app>

Thanks
14 years ago
Hi,

Our web application is running on https except the java pages. ie. *.html and *.jsp pages are running over https.
The code as below:


<security-constraint>
<web-resource-collection>
<web-resource-name>survey1</web-resource-name>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>*.java</url-pattern>

</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>

</web-app>

Thanks
14 years ago
Hi,

We are trying to write a filter to force http pages to https automatically. We have added a security constraint in web.xml for <url pattern>/*</url pattern>

But the web application that we have developed does not run on https. Could you please help us?
14 years ago