[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

How to configure SSL port on oc4j

I have deployed a struts application on oc4j standalone container. I have also configured the SSL port to 4443. But when a request is made for a secure url, it doesn't work as if OC4J is not listening on that port.
0
itaakashcom
Asked:
itaakashcom
  • 6
  • 5
  • 2
1 Solution
 
Amitkumar PSr. ConsultantCommented:
Can you please explain.. What error are you getting ? What steps you followed to configure ssl with oc4j ?

Also refer http://technology.amis.nl/2004/11/21/quick-and-easy-ssl-in-oc4j-standalone/
0
 
gheistCommented:
OC4J is EOL... Just like Java 1.4 it uses. You can upgrade it to WebLogic offering easily.
0
 
itaakashcomAuthor Commented:
@Amit - I'm getting error - This page can't be displayed
I followed the steps as mentioned in the URL that u suggested.

@gheist
OC4J is EOL... Just like Java 1.4 it uses?? what does it mean  
which version of weblogic shall I use?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
gheistCommented:
First OC4j was re-badged Ironserver JEE server
Then came Oracles own OC4J v10
Then they acquired BEA and retired 2nd completely by end 2009.

Migration involves programming either on their suggested path to current weblogic, or to open-source app servers like jboss, jetty or tomcat.
0
 
itaakashcomAuthor Commented:
Also.. when I deploy this project on Tomcat Server.. I get following error:

org.apache.jasper.JasperException: Unable to compile class for JSP:


.....................
...................
An error occurred at line: 130 in the jsp file: /mod/jog/abc.jsp
The method setValue(String) in the type CompareTagBase is not applicable for the arguments (Object)
.....................
...................
0
 
gheistCommented:
That is the programming part I was talking about.
As you see Java 1.4 casted object with one string value to string, In java7 you need to do explicit cast.
0
 
Amitkumar PSr. ConsultantCommented:
itaakashcom,

org.apache.jasper.JasperException: Unable to compile class for JSP:

This should not be related to SSL. I am sure this error must be there earlier before SSL. What is at line: 130 in the jsp file: /mod/jog/abc.jsp ?

Also share the details about the environment. Like, OS version, java version, oc4j version, IDE version and so on.

This will help us to solve your problem quickly.
0
 
itaakashcomAuthor Commented:
I'm sorry, I mixed up 2 problems, I'll explain in detail:

Scenario 1:
   Environment: Oc4j (standalone container), Jdk1.4/1.5, Struts application,
<sslext> struts tag used.
I have configured SSL in oc4j using the link:
    http://technology.amis.nl/2004/11/21/quick-and-easy-ssl-in-oc4j-standalone/   (on port 4443)
The error I get is:
   This page can't be displayed

Oc4j doesn't serve the SSL request

Scenario 2:
  When the same application is deployed on Tomcat Server (6.0 or 7.0), I get following error (error doesn't belong to SSL) --

org.apache.jasper.JasperException: Unable to compile class for JSP:


.....................
...................
An error occurred at line: 130 in the jsp file: /mod/jog/abc.jsp
The method setValue(String) in the type CompareTagBase is not applicable for the arguments (Object)
.....................
...................




The above are issues i faced on 2 different servers.
0
 
gheistCommented:
Since you never used java SSL on that system you must install jsse.jar which now archived , and even worse will provide extremely vulnerable encryption only.
Download here:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html

What tomcat says are generational changes in java. You can use Eclipse java compiler (ecj.exe) instead and it will roll over compile errors and app will fail when reaching half-compiled code path (but odds are high it just works after)
ecj will also have side effect of telling almost all eventual compile errors instead of failing on first.
Even you might succeed with JSSE above, I would suggest to follow this path in parallel to get your business application in supportable state.
0
 
itaakashcomAuthor Commented:
This problem did not get solved.

We moved on to Oracle Apps Server!!!
0
 
gheistCommented:
Either product is EOL & obsolete.
SSL on it is easily broken, so it is equivalent of no encryption.
Good luck.
0
 
itaakashcomAuthor Commented:
The problem did not get solved.

We changed the server and moved on to Oracle Apps Server. That solved our problem.
0
 
gheistCommented:
You cannot get BW tv to show colours, no matter how hard you push it.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 6
  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now