Wednesday, December 1, 2010

Start OC4J with -userThreads

I have an application deployed on OC4J. It uses quartz to schedule a job. The job connects to the database through JNDI. The JNDI is defined through Enterprise Manager. When started, the log showed the following error.

Javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads

It turns out that I need to add "-userThreads" to OC4J options to overcome this. I did this through EM > Administration > Server properties, and then add "-userThreads" to OC4J options. The error was gone after a restart.

No comments:

Post a Comment