Link to home
Start Free TrialLog in
Avatar of itaakashcom
itaakashcom

asked on

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.
Avatar of Am P
Am P
Flag of India image

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/
OC4J is EOL... Just like Java 1.4 it uses. You can upgrade it to WebLogic offering easily.
Avatar of itaakashcom
itaakashcom

ASKER

@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?
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.
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)
.....................
...................
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.
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.
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.
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.
ASKER CERTIFIED SOLUTION
Avatar of itaakashcom
itaakashcom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Either product is EOL & obsolete.
SSL on it is easily broken, so it is equivalent of no encryption.
Good luck.
The problem did not get solved.

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