This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes OC4J not configured with Port 1521 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "OC4J not configured with Port 1521" Watch "OC4J not configured with Port 1521" New topic

OC4J not configured with Port 1521

bob reilly
Ranch Hand

Joined: Jan 22, 2007
Posts: 44
This is an Oracle 10g environment.

When starting OC4J on my workstation (for development) I get the following messages:

10/09/23 09:41:51 log4j:WARN No appenders could be found for logger (com.workbrain2.platform.util.Copyright).
10/09/23 09:41:51 log4j:WARN Please initialize the log4j system properly.
10/09/23 09:42:47 Oracle Application Server Containers for J2EE 10g ( initialized

I run 'netstat -an' to confirm that port 1521 is established for the database and its there. I can bring up the application - everything is working - great.

I had a colleague copy my OC4J directory onto their workstation - use my startup script but configure to their directory setup. They get the same messages for OC4J initializing however:
1 - their startup (initialization) is a lot quicker (mine takes about a miinute - theirs about 30 seconds, probably less)
2. port 1521 is NOT established.

Net result is they cannot bring up the application via browser ("page cannot be displayed" 500 error code). Oracle client is installed on our workstations but the tnsnames.ora is does NOT reside there. I checked

That is one area of confusion for me. Where is the reference to it? I check for a mapped drive via environmental variable - nothing.

Anyone have any ideas on what is going wrong here. I've mentioned two issues however I believe they're related.

Any suggestions are appreciated. Thanks.
I agree. Here's the link:
subject: OC4J not configured with Port 1521
It's not a secret anymore!