aspose file tools*
The moose likes JBoss/WildFly and the fly likes https in Jboss 5.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "https in Jboss 5.0.1" Watch "https in Jboss 5.0.1" New topic
Author

https in Jboss 5.0.1

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202

I have two different applications deployed in jboss-5.0.1 application server. The WAR files available in my default/deploy folder are myapp1.war, myapp2.war

I have a requirement to access one of the application with secure https protocol. So i need to access my applications as

https://localhost:8080/myapp1 while using myapp1 application and

http://localhost:8080/myapp2 while using myapp2 application files.

Please suggest and guide me how to execute this requirement.

Thanks in advance



Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202
Any help on this please
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202
Any idea on this
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Are you saying that you want to serve both https and http on the same 8080 port?


[My Blog] [JavaRanch Journal]
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202
yes that's correct.

If not how else can i do it. Please let me know i am new to this configuration.
Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
I think both http and https are different protocols and cant be run on same port.

I achieved running two different applications on 2 different ports though with http and https.

something as

http://localhost:8080/app1
https://localhost:8080/app2


I did it by having two server configuration say default and default1. But the problem is I had to run two instances of JBOSS(I ran through ECLIPSE plugin)

I ran 1 jboss with server configuration as "default" and ran the other one "default1".

app1 was deployed in "default". The server-config.xml of this configuration was configured for http at port 8080
app2 was deployed in "default1". The server-config.xml of this configuration was configured for https at port 8443.


My requirement is to run both the apps with one instance of JBOSS and it will be best inside the same JBOSS configuration.

Any help.....


Thanks and Regards,

Abhishek Kumar
Software developer (Apps),
Arbor Networks.
Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
just forgot to mention I am using JBOSS 4.0.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: https in Jboss 5.0.1
 
Similar Threads
Tomcat Configuration with more than 2,000 apps
Jboss hibernate service
Setting Document Root for SSL in Jboss
SSL configuration problem in Jboss 5.1.0
Context Path Problem