• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

https in Jboss 5.0.1

 
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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



 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help on this please
 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any idea on this
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you saying that you want to serve both https and http on the same 8080 port?
 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes that's correct.

If not how else can i do it. Please let me know i am new to this configuration.
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.....
 
Abhishek Kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just forgot to mention I am using JBOSS 4.0.5
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic