Ojdbc6dms.jar in OC4J
Anyone knows if it is possible to swap to ojdbc6dms.jar in OC4J ?
Thanks
Per J
Hi,
Great, but will it not conflict with the existing jdbc/lib/ojdbc14dms.jar ?
Thanks
Per J
Similar Messages
-
Replace Orion.jar with Oc4j.jar, Changing the container
Hi
I'll be really appreciate any help.
My application( web-based application based on Forms6i) is working fine with Orion.jar. I would like to upgrade this structure to Oracle9iDS using Oc4j.jar instead of orion. I have a main.jsp ( http://www.bmhub.com) file that after getting username/password, opens another window to show the main menu including all options(forms6i).With "Orion.jar" it works fine, I get message "Login ok" and so on.
I installed Oracle9iDS and I changed application.xml in "C:\oracle\Forms9i\j2ee\Oracle9iDS\config". After starting startinst.bat ( contains oc4j.jar), I entered username/password but I get message that "some fileds are blanks" and "Login Failed". when I changed the oc4j.jar to orion.jar, the sartinst.bat disappeared after 1 second.
Also I tried to replace most of the files in "C:\oracle\Forms9i\j2ee\Oracle9iDS\config" with my old configuration ( Orion configuration), the startinst with orion.jar works fine and I'm able to enter username/password. but nothing more. the forms9i dosent work anymore.(error HTTP 500).
Could you please help me?
regards,Hi,
It seems getParameter() just returns null. I use it in my User.java file to login from main.jsp page.
public void configure(HttpServletRequest request)
setUserName(request.getParameter(User.USER_NAME));
setPassword(request.getParameter(User.PASSWORD));
setCompany(request.getParameter(User.COMPANY));
if ( (request.getParameter(MODE)!=null) && !request.getParameter(MODE).trim().equals(""))
try
setPartnerTypeId(Integer.parseInt(request.getParameter(MODE).trim()));
catch(Exception e)
e.printStackTrace();
How come it works with Orion.jar but returns null with Oc4j.jar?
Thanks, -
Can admin.jar create oc4j users and connection pools that use those users
Hi
I have an ADF BC application written in jdev 10.1.3.3 deployed to standalone oc4j 10.1.3
When I deploy the application I use the enterprise manager to create the users on the security provider/realms tab. I then set up the connection pools in jdbc resources to use those users via the username and indirect password fields. I also set the minimum number of connections on the attributes tab.
I have read the following document but I cannot find any reference to setting up users, connection pools with indirect passwords or minimum number of connections.
http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#BABHJAFE
Is it possible to do using admin.jar?
thanks
paul schweigerI'm not sure about setting indirect passwords on the connection pool creation -- never tried it. It's probably treated purely as a lexical string, so may well be able to to issue the CP creation command with the "->USER" entry as the password.
To create realms, users, groups, etc. you need to use the $ORACLE_HOME/j2ee/home/jazn.jar utility: http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/admintool.htm#g1022417
The options for connection pool parameters such as min/max connections aren't directly expressable in the command. I'll need to look at the code and see if they can be passed in as non checked options via the factoryproperties. If not, then you can create a JMX client to use the MBeans that are created for the CP post deployment to change its behaviour.
-steve- -
OC4J - Adding jars to classpath
Hi,
Ive tried adding a new jar to oc4js classpath. Our application depends on this jar.
I couldnt.
Ive tried adding the jar as a 'library-path' tag within the server.xml. Then added it to the command line running oc4j ( -cp = .... ). It didnt do the trick.
Ive only made some progress when putting it straight into oc4js lib directory.
Im confused.
1. What does the 'library-path' tab enable?
2. Whats the difference between using it and supplying jars to the oc4js runtime classpath ( -cp ).
3. What is the recommended way, to simply add a jar upon my application depends of?
Any help would be apreceated,
Yuval.HI Yuval,
To include any Jar file in App server class path, you only have to copy the file in J2EE home\Lib\ folder. I also tried passing classpath to OC4J bUt to no use.
But its working fine.
Amit -
How Can I run Oracle 11g Form without OC4J
Dear All,
I was installed Oracle Data Base and Forms 11g but when I try to run the Form I can't because there's no OC4J.
Thanks
EyadThank you, but when I start weblogic
from { d:\Oracle\Middleware\user_projects\domains\ClassicDomain }, it's ask me about for username and password.
but Unfortunately forget it. How can I reset it ? or How can I make another username and pass word
JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=512m
WLS Start Mode=Production
CLASSPATH=D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;d
:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic
patch.jar;d:\Oracle\MIDDLE~1\patchocp371\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;D:\Oracle\MIDDL
E~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\l
ib\weblogic.jar;d:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3
.6.0.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;d:\Oracle\MIDD
LE~1\modules\ORGAPA~1.1/lib/ant-all.jar;d:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/
lib/ant-contrib.jar;D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;d
:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;d:\Oracle\Mi
ddleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;d:\Oracle\Midd
leware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;d:\Oracle\Middleware\o
racle_common\modules\oracle.odl_11.1.1\ojdl.jar;d:\Oracle\Middleware\Oracle_FRHo
me1\opmn\lib\nonj2eembeans.jar;d:\Oracle\Middleware\Oracle_FRHome1\jdbc\lib\ojdb
c6.jar;d:\Oracle\Middleware\Oracle_FRHome1\opmn\lib\optic.jar;d:\Oracle\Middlewa
re\Oracle_FRHome1\opmn\lib\iasprovision.jar;d:\Oracle\Middleware\oracle_common\m
odules\oracle.ldap_11.1.1\ldapjclnt11.jar;d:\Oracle\Middleware\oracle_common\jli
b\rcucommon.jar;d:\Oracle\Middleware\Oracle_FRHome1\opmn\lib\opmneditor.jar;d:\O
racle\Middleware\Oracle_FRHome1\opmn\lib\wlfullclient.jar;d:\Oracle\Middleware\o
racle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;d:\Oracle\Middleware
\Oracle_FRHome1\jlib\dfc.jar;d:\Oracle\Middleware\Oracle_FRHome1\dvt\lib\dvt-jcl
ient.jar;d:\Oracle\Middleware\Oracle_FRHome1\dvt\lib\dvt-utils.jar;d:\Oracle\Mid
dleware\oracle_common\jlib\ewt3.jar;d:\Oracle\Middleware\oracle_common\modules\o
racle.iau_11.1.1\fmw_audit.jar;d:\Oracle\Middleware\Oracle_FRHome1\oui\jlib\http
client.jar;d:\Oracle\Middleware\oraclecommon\modules\oracle.idm_11.1.1\identit
ystore.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.idm_11.1.1\identity
utils.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jaccprovi
der.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.ja
r;d:\Oracle\Middleware\Oracle_FRHome1\ord\jlib\jai_codec.jar;d:\Oracle\Middlewar
e\Oracle_FRHome1\ord\jlib\jai_core.jar;d:\Oracle\Middleware\oracle_common\module
s\oracle.oc4j-obsolete_11.1.1\jazn.jar;d:\Oracle\Middleware\oracle_common\module
s\oracle.oc4j-obsolete_11.1.1\jazncore.jar;d:\Oracle\Middleware\oracle_common\jl
ib\jewt4.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\jta.jar;d:\Oracle\Middlewa
re\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;d:\Oracle\Middleware
\Oracle_FRHome1\lib\mail.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\netcfg.jar
;d:\Oracle\Middleware\Oracle_FRHome1\jlib\oracle_ice.jar;d:\Oracle\Middleware\or
acle_common\jlib\share.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\zrclient.jar
;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\aolj.jar;d:\Oracle\Middleware\
Oracle_FRHome1\reports\jlib\confmbean.jar;d:\Oracle\Middleware\Oracle_FRHome1\re
ports\jlib\runtimembean.jar;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\rwa
dmin.jar;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\rwenv.jar;d:\Oracle\Mi
ddleware\Oracle_FRHome1\reports\jlib\rwrun.jar;d:\Oracle\Middleware\Oracle_FRHom
e1\reports\jlib\rwxdo.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\rts2.jar;d:\O
racle\Middleware\Oracle_FRHome1\common\wlst\lib\adf-share-mbeans-wlst.jar;d:\Ora
cle\Middleware\Oracle_FRHome1\common\wlst\lib\mdswlst.jar;d:\Oracle\Middleware\O
racle_FRHome1\common\wlst\resources\auditwlst.jar;d:\Oracle\Middleware\Oracle_FR
Home1\common\wlst\resources\jps-wlst.jar;d:\Oracle\Middleware\Oracle_FRHome1\com
mon\wlst\resources\jrf-wlst.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\
resources\oamap_help.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resourc
es\oamAuthnProvider.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resource
s\ossoiap_help.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\oss
oiap.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\sslconfigwlst
.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\wsm-wlst.jar;D:\O
racle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;D:\Oracle\MIDDLE~1\WLS
ERV~1.3\common\derby\lib\derbyclient.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\li
b\xqrl.jar
PATH=d:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\native;d:\Oracle\MIDDLE~1
\patch_ocp371\profiles\default\native;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\nativ
e\win\x64;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;d:\Oracle\MIDDLE~1\modules\OR
GAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\b
in;d:\Oracle\MIDDLE~1\ORACLE~2\BIN;d:\OracleDB\product\112~1.0\dbhome_1\BIN;C:\P
ROGRA~1\COMMON~1\MICROS~1\WINDOW~1;C:\PROGRA~2\COMMON~1\MICROS~1\WINDOW~1;C:\PRO
GRA~2\Intel\ICLSCL~1\;C:\PROGRA~1\Intel\ICLSCL~1\;C:\PROGRA~2\AMDAPP~1\bin\x86_6
4;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WI
NDOW~1\v1.0\;C:\PROGRA~2\ATITEC~1\ATI.ACE\CORE-S~1;C:\PROGRA~1\Intel\INTEL(~1\DA
L;C:\PROGRA~1\Intel\INTEL(~1\IPT;C:\PROGRA~2\Intel\INTEL(~1\DAL;C:\PROGRA~2\Inte
l\INTEL(~1\IPT;C:\PROGRA~1\Sony\VAIOIM~1\;C:\PROGRA~2\Sony\VAIOST~1;C:\PROGRA~2\
WIC4A1~1\Shared;d:\Oracle\MIDDLE~1\ORACLE~2\opmn\bin;d:\Oracle\MIDDLE~1\ORACLE~2
\opmn\lib;d:\Oracle\MIDDLE~1\ORACLE~2\perl\bin;D:\Oracle\MIDDLE~1\WLSERV~1.3\ser
ver\native\win\x64\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Starting WLS with line:
C:\PROGRA~1\Java\JDK17~1.0_1\bin\java -server -Xms256m -Xmx512m -XX:MaxPermSi
ze=512m -Dweblogic.Name=AdminServer -Djava.security.policy=D:\Oracle\MIDDLE~1\WL
SERV~1.3\server\lib\weblogic.policy -Dweblogic.ProductionModeEnabled=true -da
-Dplatform.home=D:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\Oracle\MIDDLE~1\WLS
ERV~1.3\server -Dweblogic.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Xms512m -
Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Doracle.home=d:\Oracle\Middlewa
re\Oracle_FRHome1 -Ddomain.home=d:\Oracle\Middleware\user_projects\domains\Class
icDomain -Djava.ext.dirs=d:\Oracle\Middleware\Oracle_FRHome1\jdk\jre\lib\ext -Do
racle.security.jps.config=d:\Oracle\Middleware\user_projects\domains\ClassicDoma
in\config\fmwconfig\jps-config.xml -Doracle.instance=d:\Oracle\Middleware\asinst
_1 -Doracle.instance.name=asinst_1 -Doracle.forms.weblogic=1 -Ddomain.name=Class
icDomain -Dcommon.components.home=D:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1
.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
-Ddomain.home=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1 -Djrockit.optfile=D:\
Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.
server.config.dir=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\s
ervers\AdminServer -Doracle.domain.config.dir=d:\Oracle\MIDDLE~1\USER_P~1\domain
s\CLASSI~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=d:\Oracle\MIDDLE~1\USER_P
~1\domains\CLASSI~1\config\FMWCON~1\carml -Digf.arisidstack.home=d:\Oracle\MIDD
LE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\arisidprovider -Doracle.security.
jps.config=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\fmwconfig\jps-con
fig.xml -Doracle.deployed.app.dir=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\s
ervers\AdminServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternat
eTypesDirectory=D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,D:\Ora
cle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.
pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwc.oracle.h
ome=D:\Oracle\Middleware\Oracle_FRHome1 -Dclassic.oracle.home=D:\Oracle\Middlewa
re\Oracle_FRHome1 -Dweblogic.management.discover=true -Dwlw.iterativeDev=false
-Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=d:\O
racle\MIDDLE~1\patch_wls1036\profiles\default\sysext_manifest_classpath;d:\Oracl
e\MIDDLE~1\patch_ocp371\profiles\default\sysext_manifest_classpath weblogic.Ser
ver
<Feb 4, 2013 6:20:47 PM AST> <Info> <Security> <BEA-090905> <Disabling CryptoJ J
CE Provider self-integrity check for better startup performance. To enable this
check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Feb 4, 2013 6:20:48 PM AST> <Info> <Security> <BEA-090906> <Changing the defaul
t Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable
this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Feb 4, 2013 6:20:48 PM AST> <Info> <WebLogicServer> <BEA-000377> <Starting WebL
ogic Server with Java HotSpot(TM) 64-Bit Server VM Version 23.6-b04 from Oracle
Corporation>
<Feb 4, 2013 6:20:49 PM AST> <Info> <Management> <BEA-141107> <Version: WebLogic
Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
WebLogic Server 10.3 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Feb 4, 2013 6:20:50 PM AST> <Info> <Security> <BEA-090065> <Getting boot identi
ty from user.>
Enter username to boot WebLogic server:
} -
Error while running web application through JDEV (10.1.3.0.3) in OC4J.
Here is the error message.
07/10/02 14:45:28 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: javax.xml.bind.JAXBContext
Dependent class: com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl
Loader: oc4j:10.1.3
Code-Source: /C:/jdev/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar
The missing class is not available from any code-source or loader in the server.
07/10/02 14:45:28 at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
at com.oracle.corba.ee.impl.orb.config.InternalSettingsORBConfigImpl.init (InternalSettingsORBConfigImpl.java:46) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.oracle.corba.ee.impl.orb.config.SunRIORBConfigImpl.init (SunRIORBConfigImpl.java:97) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.oracle.iiop.server.IIOPServerExtensionProvider.configureOrb (IIOPServerExtensionProvider.java:26) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.oracle.corba.ee.impl.orb.ORBServerExtensionProviderImpl.preInitApplicationServer (ORBServerExtensionProviderImpl.java:45) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.serverExtensionPreInit (ApplicationServer.java:1031) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:861) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:98) [C:/jdev/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]Hi,
The guide you were refering was pointing to 10.1.2 wizards.
For the latest 10.1.3 tutorial, please follow the below tutorial link :
http://www.oracle.com/technology/products/jdev/101/tutorials/WS/WSandAScontrol.htm
Hope this helps,
Sunil.. -
I'm a bit puzzled as to versioning of oc4j running applications created with Jdeveloper RC2 / BI Beans RC2 .
I downloaded a file called oc4j_extended.zip (of 25. March).
I would have thought this to be the latest distro of oc4j.
When I invoke the oc4j.jar, I receive a message like this:
"Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized"
I see other people are running version 9.0.3.0.0, and most Jdeveloper references are for this version as well.
Is there a later version (for Solaris) that I need to download/install?
If so, where can it be found?
Or am I fine running with the one I have?
(Reason for asking is that I am running into problems that could possibly be related to versioning.)
JensThanks for quick response, I am located in Norway, 6 hours in front of the US, so days can easily be "wasted" waiting for you guys. Maybe we'll manage to squeeze in 2 answers today ;-)
Here are the answers to your question:
myhost% java -version -jar oc4j.jar
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
myhost% java -jar oc4j.jar -version
Oracle9iAS (9.0.2.0.0) Containers for J2EE
myhost% java -jar ./oc4j.jar -version
Oracle9iAS (9.0.2.0.0) Containers for J2EE
This is a bit complicated, but here's a quick resume of what I did:
* Install Oracle 9.0.1.0.0, including the http-server.
* Patch to 9.0.1.2.0
* download oc4j_extended, unzip to a new $ORACLE_HOME/oc4j
* Source the following file:
myhost% more java131.sh
setenv PATH /usr/j2se/bin:/u01/app/oracle/product/901/bin:/bin:/usr/bin:/usr/cc
/bin:/etc:/opt/bin:/usr/ucb:.:/usr/openwin/bin:/usr/openwin/lib
setenv CLASS_PATH /usr/j2se/lib:/u01/app/oracle/jre/1.1.8/lib:/u01/app/oracle/p
oduct/901/jlib:/u01/app/oracle/product/901/wmt/jlib
setenv CLASSPATH /usr/j2se/lib:/u01/app/oracle/jre/1.1.8/lib:/u01/app/oracle/pr
duct/901/jlib:/u01/app/oracle/product/901/wmt/jlib
alias java="/usr/j2se/bin/java"
myhost%
* Check that the right java verson is running:
myhost% which java
/usr/j2se/bin/java
myhost%
* start the oc4j server with :
java -Xmx256m -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.COR
BA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -jar oc4j.jar
And it reports back v. 9.0.2.0.0
So what am I doing wrong?
Any input will be appreciated.
Jens -
Hello,
Could someone please assist me with the following error messages?
08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
08/08/12 10:25:32 Don't know how to map non-serializable type: interface javax.management.j2ee.statistics.Stats to Open MBean Type.
08/08/12 10:25:34 WARNING: J2EE JNDI-00002
08/08/12 10:25:34 WARNING: No javax.jms.ConnectionFactory found at null
08/08/12 10:25:38 Oracle Containers for J2EE 11g (11.1.1.0.0) initialized.
Obviously oc4j is installing, but these error messages are certainly a problem (for example, I can't successfully deploy applications).
When I used the previous version of oc4j none of these errors surfaced. I also have tried installing this new version in a new, clean directory, and still get the same error messages.
Please help,
JohnThank you for your quick response.
I hope that you are right, that these errors don't cause any other problems down the line, but I still have a problem trying to deploy applications.
For example, I tried to deploy mapviewer, using the following syntax --
java -jar admin_client.jar deployer:oc4j:localhost fmwadmin <admin_pwd>
-deploy
-file <path-to-ear-file>
-deploymentName <name>
-bindAllWebApps
-- and recieved the following errors, which I didn't get before when I was using the previous version of oc4j (Oracle Containers for J2EE 10g [10.1.3.1]):
08/08/13 08:49:30 WARNING: web: Servlet error
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:78)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:743)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Do you have any idea why I may be getting these error messages?
Thank you for your time and assistance!
John -
Error message when starting OC4J in JDeveloper 10.1.3.1
Hello,
I am new to Java Server Pages and OC4J. When I try to run a simple JSP page in JDeveloper 10.1.3.1, I get the following error message (edited):
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
...\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
[waiting for the server to complete its initialization...]
Error parsing internal-settings.xml: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: oracle.j2ee.ws.server.codegen.ServerArtifactGenerator
Depending class: com.evermind.server.ejb.compilation.Compilation
Loader: oc4j:10.1.3
Code-Source: ./j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar
Diese Load wurde um system.root:0.0.0 mit der Methode Class.forName() eingeleitet.
Die fehlende Klasse ist in keiner Code-Source oder keinem Loader in dem System verfügbar.
at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
at com.evermind.server.ejb.compilation.Compilation.generateWebServiceRefs (Compilation.java:1541) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.compilation.Compilation.compile (Compilation.java:189) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.compilation.Compilation.doGenerateCode (Compilation.java:264) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:898) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationStateRunning.initializeApplication (ApplicationStateRunning.java:217) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:413) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:314) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeSystemApplication (ApplicationServer.java:1557) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications (ApplicationServer.java:1544) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:974) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:131) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]
Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
Any idea, what's wrong with my configuration?
Thanks,
WolfgangTested JSP page in JDeveloper 10.1.3.1; JSP page does not generate an error.
Reinstall JDeveloper. -
Hi all
I have developed an application using jheadstart 10.1.3.1 and jdeveloper 10.1.3.2 and I want to deploy it in oc4j 10.1.3.3. I have installed Adf Runtime libiraties in oc4j home. during deploying my Application I get the following error:
Operation failed with error:
org/apache/log4j/Category
Deployment failed
I tried to copy log4j-1.2.15.jar,commons-logging.jar and commons-digester.jar to
oc4j\BC$J\lib directory ; this time my application was deployed in oc4j but i get the following Error :
07/09/25 14:43:44 log4j:WARN No appenders could be found for logger (com.sun.fac
es.config.ConfigureListener).
07/09/25 14:43:44 log4j:WARN Please initialize the log4j system properly.
Ps:
The Actual Error in ocgj is:
07/09/25 16:52:21 WARNING: DeployerRunnable.run java.lang.ExceptionInInitializer
Errororacle.oc4j.admin.internal.DeployerException: java.lang.ExceptionInInitiali
zerError
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:139
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
yerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ExceptionInInitializerError
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
stener.java:252)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:1141)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
741)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
ationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:5
70)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
ateHttpApplicationFromReference(HttpSite.java:1987)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
it>(HttpSite.java:1906)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:16
03)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:238)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:99)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
Deployer.java:547)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:202)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
lass;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lan
g.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons
.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Clas
s;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.N
oClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at com.sun.faces.config.beans.FacesConfigBean.<clinit>(FacesConfigBean.j
ava:48)
... 17 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@900079 for org.apache.commons.logging.impl.Log4J
Logger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:413)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:529)
... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:410)
... 22 more
Could any body tell me where the problem is or how can I resolve the problem?
Any help would highly be appreciated.
thank you in advance.
AlirezaIt is an old post, but I want to add and ask something anyway:
I had the same problem and solved it through similar steps (didn't get the same errors and added the log4j to my project also) but don't you have the navigation problem?
Now that I have deployed the application the first page that appears after launching the application is my Home.jspx which is not the same page that comes up when I use embedded OC4J to run the application. The Home.jspx is blank and when I enter a link manually:
http://farbod:8888/TestApp/faces/pages/Employees.jspx
instead of http://farbod:8888/TestApp/faces/pages/Home.jspx
I get this error:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
I also tried changing the initial address throughout the application:
<% response.sendRedirect("faces/pages/Home.jspx"); %>
but I still get the above error.
Thanks,
Farbod -
Executable JAR using ADF displays JBO-26061: Error while opening JDBC conn.
I'm trying to create a simple Java Desktop Application (ADF) in JDeveloper 11g (11.1.2.3.0) which will run on Windows XP (SP3) simply by clicking the JAR file. I have encountered many problems and found solutions but I am now completely stuck. Currently when I execute the JAR I get (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
Inside JDeveloper it runs perfectly but I want it to run without JDeveloper. If I run the executable string JDeveloper displays when you click run, this also works fine.
Here's what I've done -
Created a demo app using the 'Building a Java Swing application with Oracle ADF' tutorial as a proof of concept.
Created a deployment profile 'Client Jar Deployment Profile'
Create a new file group to include all the JAR files.
Create a manifest.mf listing all the JAR files - making sure not to exceed 70 bytes on each line and every new line starts with 2 spaces and at the end of the line there is no trailing spaces.
Made sure the jps-config.xml and cwallet.sso is included in the META-INF folder of the JAR.
I've deployed the JAR file to a folder which contains all the associated JAR files, made sure the manifest.mf is pointing to the correct files and executed my jar (double clicked it) after a short pause (2-3 seconds) that's when the error pops up.
Here is the error stack
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:61)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:968)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
Here is my manifest
Manifest-Version: 1.0
Class-Path: adf-controller-security.jar adf-dt-at-rt.jar adf-share-bas
e.jar adf-share-ca.jar adf-share-security.jar adf-share-support.jar a
dfdt_common.jar adflibrary.jar adflogginghandler.jar adfm.jar adfshar
embean.jar adftransactionsdt.jar bc4j-mbeans.jar bc4jimdomains.jar ca
che.jar commons-cli-1.0.jar commons-el.jar db-ca.jar dms.jar dvt-jcli
ent.jar dvt-utils.jar fmw_audit.jar forms-1.0.6.jar groovy-all-1.6.3.
jar identitystore.jar inspect4.jar jacc-spi.jar javatools-nodeps.jar
javax.activation_1.1.0.0_1-1.jar javax.jsp_1.2.0.0_2-1.jar javax.mail
_1.1.0.0_1-4-1.jar javax.management.j2ee_1.0.jar javax.management_1.2
.1.jar javax.security.jacc_1.0.0.0_1-1.jar javax.servlet_1.0.0.0_2-5.
jar jdev-cm.jar jdev-rt.jar jewt4.jar jmf.jar jmxframework.jar jmxspi
.jar jps-api.jar jps-common.jar jps-ee.jar jps-internal.jar jps-manif
est.jar jps-unsupported-api.jar jsp-el-api.jar ldapjclnt11.jar list.t
xt mdsrt.jar META-INF model ojdbc6dms.jar ojdl.jar ojmisc.jar oracle-
el.jar oracle.ucp_11.1.0.jar oraclepki.jar orai18n-mapping.jar orai18
n.jar oramds.jar ordhttp.jar ordim.jar osdt_cert.jar osdt_core.jar os
dt_ws_sx.jar osdt_xmlsec.jar resourcebundle.jar runtime12.jar share.j
ar xml.jar xmlef.jar xmlparserv2.jar
Main-Class: view.Form
All of these JARs are in the same folder as my JAR.
Here's the tutorial i followed - http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_19/jdtut_11r2_19.html
Any help would be greatly appreciated. Perhaps I'm misunderstanding and Java/ADF applications are not supposed to work without the WLS.
Many thanks,
Christian.
Edited by: ChrisDugdale on Nov 15, 2012 2:41 AMThat's excellent advice, changing the connection type, I tried this before, it still gives the same error so I didn't think it had much to do with my problem but what I didn't notice is it gives a more meaningful error stack - see below, compared to my original error stack, i think you're on to something good! So, clearly the password isn't being packaged into the JAR, now I thought this might be happening which is why I added "DeployPassword" in the connections.xml file but that hasn't made a difference. I can see the connections.xml in my JAR if i expand it in the META-INF folder, so I know that's included ok, along with jps-config.xml/adf-config.xml/adfm.xml/cwallet.sso/MANIFEST.MF also in the META-INF folder (inside the JAR)
I can see the password element contains no value, but I tried changing this before with no luck. I'll try again.
connections.xml -
<?xml version = '1.0' encoding = 'UTF-8'?>
<References xmlns="http://xmlns.oracle.com/adf/jndi">
<Reference name="FOD" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="FOD" xmlns="">
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
<RefAddresses>
<StringRefAddr addrType="sid">
<Contents>DEVSHED</Contents>
</StringRefAddr>
<StringRefAddr addrType="subtype">
<Contents>oraJDBC</Contents>
</StringRefAddr>
<StringRefAddr addrType="port">
<Contents>1521</Contents>
</StringRefAddr>
<StringRefAddr addrType="hostname">
<Contents>moe</Contents>
</StringRefAddr>
<StringRefAddr addrType="user">
<Contents>fod</Contents>
</StringRefAddr>
<SecureRefAddr addrType="password"/>
<StringRefAddr addrType="DeployPassword">
<Contents>true</Contents>
</StringRefAddr>
<StringRefAddr addrType="oraDriverType">
<Contents>thin</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
</References>
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
... 31 more
## Detail 0 ##
java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425)
----- Level 1: Detail 0 -----
java.sql.SQLException: ORA-01005: null password given; logon denied
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
at view.Form.setBindingContext(Form.java:370)
at view.Form.main(Form.java:425) -
Error whenever starting OC4J - 10.1.3 EA
I get the following error whenever I start my local OC4J server when I'm trying to run a ADF BC - based JSF/JSP in a new application:
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
C:\jdev10.1.3EA\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
\j2sdk1.4.2_01\bin\javaw.exe -ojvm -classpath C:\jdev10.1.3EA\j2ee\home\oc4j.jar;C:\jdev10.1.3EA\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev10.1.3EA\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
06/01/05 14:53:14 oracle.classloader.util.AnnotatedClassFormatError: MBeanServerEjbHome_StatefulSessionHomeWrapper1
Invalid class: MBeanServerEjbHome_StatefulSessionHomeWrapper1
Loader: system.root:0.0.0
Code-Source: /C:/jdev10.1.3EA/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/application-deployments/admin_ejb/deployment-cache.jar
Configuration: <ejb> in wrappers
Dependent class: com.evermind.server.ejb.deployment.SessionBeanDescriptor
Loader: oc4j:10.1.3
Code-Source: /C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar
06/01/05 14:53:14 at oracle.classloader.PolicyClassLoader.findLocalClass (PolicyClassLoader.java) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at oracle.classloader.SearchPolicy$FindLocal.getClass (SearchPolicy.java:165) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at oracle.classloader.SearchSequence.getClass (SearchSequence.java:92) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1676) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [C:/jdev10.1.3EA/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@4]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:302) [jre bootstrap, by jre.bootstrap]
at java.lang.Class.forName0 (Native method) [unknown, by unknown]
at java.lang.Class.forName (Class.java:219) [jre bootstrap, by jre.bootstrap]
at com.evermind.server.ejb.deployment.SessionBeanDescriptor.createHomeInstance (SessionBeanDescriptor.java:407) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstanceCore (EJBPackageDeployment.java:1048) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstance (EJBPackageDeployment.java:1101) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.bindRemoteHome (EJBPackageDeployment.java:500) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBPackageDeployment.bindHomes (EJBPackageDeployment.java:401) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:1015) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationStateRunning.initializeApplication (ApplicationStateRunning.java:206) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:392) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.Application.setConfig (Application.java:310) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeSystemApplication (ApplicationServer.java:1418) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications (ApplicationServer.java:1401) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:896) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:98) [C:/jdev10.1.3EA/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in C:\jdev10.1.3EA\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:534) [jre bootstrap, by jre.bootstrap]
In searching the forum I've only found a couple of things that look similar and they suggest the problem is caused when a project is upgraded. The suggested solution is running the project in JDK 1.5. (see Error Attempting to Run JSP with 10.1.3.0.3.3412
However, my project is a new project, created in 10.1.3, and in the project properties --> compiler settings, I've got the source and target set to 1.4. There hasn't been any upgrade to speak of, and my production environment is JDK 1.4.
I get the same error upon creating a new web application, creating a JSF, placing some Output Text on the page and then attempting to run it.
Does anyone have any idea how to fix this? If I can't run new applications, I'm in trouble...
Thanks,
AndyThanks for the response, Shay.
I was able to get the server to start up by changing the setting in Project Properties --> Libraries --> J2SE Version to 1.5.
Are you saying, then, that regardless of which version of JDK you use to compile your project (Project Properties --> Compiler --> Source & Target, both 1.4 in my case), in order to run it on the embedded OC4J server you have to use 1.5 in the setting above? I just want to understand this so that I can be sure that my app will run on my production app server, which runs JDK 1.4. That's what I was referring to as "my production environment" in my original post.
Thanks again,
Andy -
Hi all
I have developed an application using jheadstart 10.1.3.1 and jdeveloper 10.1.3 and I want to deploy it in oc4j 10.1.3.3. I have installed Adf Runtime libiraties in oc4j home. during deploying my Application I get the following error:
Operation failed with error:
org/apache/log4j/Category
Deployment failed
I tried to copy log4j-1.2.15.jar,commons-logging.jar and commons-digester.jar to
oc4j\BC$J\lib directory ; this time my application was deployed in oc4j but i get the following Error :
07/09/25 14:43:44 log4j:WARN No appenders could be found for logger (com.sun.fac
es.config.ConfigureListener).
07/09/25 14:43:44 log4j:WARN Please initialize the log4j system properly.
Could any body tell me where the problem is or how can I resolve the problem?
Any help would highly be appreciated.
thank you in advance.Ps:
The Actual Error in ocgj is:
07/09/25 16:52:21 WARNING: DeployerRunnable.run java.lang.ExceptionInInitializer
Errororacle.oc4j.admin.internal.DeployerException: java.lang.ExceptionInInitiali
zerError
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:139
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun
(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(Deplo
yerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ExceptionInInitializerError
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
stener.java:252)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
java:1141)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:
741)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applic
ationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:5
70)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.cre
ateHttpApplicationFromReference(HttpSite.java:1987)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<in
it>(HttpSite.java:1906)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:16
03)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:238)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplica
tionBinder.java:99)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(Application
Deployer.java:547)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDe
ployer.java:202)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
lass;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lan
g.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons
.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Clas
s;@900079 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.N
oClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at com.sun.faces.config.beans.FacesConfigBean.<clinit>(FacesConfigBean.j
ava:48)
... 17 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@900079 for org.apache.commons.logging.impl.Log4J
Logger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:413)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:529)
... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:410)
... 22 more -
JPA on OC4J 10.1.3.0
Hi,
Does anyone know which of the following options is preferred when using JPA/TopLink Essentials on OC4J 10.1.3.0:
1. Delete persistency.jar from the OC4J installation and include the latest TopLink Essentials jar-files to the libs of the application.
2. Use the persistency.jar of OC4J 10.1.3.0, which is an implementation of the draft version of JPA.
Thanks,
RonaldUsing TopLink Essentials now in 10.1.3.0 will require no changes to your application when you upgrade to 10.1.3.1 since you're not changing persistence providers, just containers. The only optional change you may want to make is switching to use container managed persistence instead of application managed as you'll have to do in 10.1.3.0 with Essentials. There are API and annotations in the preview that were changed in the final spec and so they differ from TopLink Essentials. If you use the preview you'll have to update your application to use the spec compliant APIs and annotations.
Again, there may be other issues that influence your decision but using TopLink Essentials now will give you a smooth upgrade path going forward to 10.1.3.1.
--Shaun -
Hi,
We run into different behavior of the Thread Context ClassLoader on OC4J 10.1.3.1.0 (which is OK) and OC4J 10.1.3.2.0 (here we have problems). It appeared in the Threads directly and indirectly (e.g. through Timer) created by our application. Threads, created by OC4j (e.g. the Thread, where our start-up servlet are running) are OK.
Thread Context ClassLoader (could be received from Thread.currentThread().getContextClassLoader()) on OC4J 10.1.3.1.0 in all threads is the same ClassLoader instance as the current ClassLoader (could be received from getClass().getClassLoader()). Actually the same is true for JBoss, WebLogic and WebSphere.
Thread Context ClassLoader on OC4J 10.1.3.2.0 is NOT the same ClassLoader instance as the current ClassLoader, it is even the instance of the different Class. This ClassLoader does not see classes, available at application level, which causes multiple problems.
Is it possible to configure OC4J 10.1.3.2.0 to behave similar to OC4J 10.1.3.1.0?
We tried to use “–userThreads”, but it did not help.
To investigate this problem we created a simple Web Application, which has Start-up Servlet, creates one thread and one Timer Task. From each point it is checking if Thread Context ClassLoader is the same ClassLoader instance as the current ClassLoader and printing Class Loaders if they are different. In addition it checks if correct parser accessed (should be xerces, which is in the Web App classpath and for which we added a shared library). Below you could see what we received on OC4J 10.1.3.1.0 (which is OK) and OC4J 10.1.3.2.0:
E:\OracleAS_1\j2ee\home>java -Xms128m -Xmx1024m -jar oc4j.jar -userThreads
07/04/30 10:33:00 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
07/04/30 10:39:31 ------In StartupServlet Init-----
07/04/30 10:39:31 +++++++ ++++++++++++++++++++++++++++++++++++ ++++++++
07/04/30 10:39:31 +++++++ Executing Code in the StrtServlet... ++++++++
07/04/30 10:39:31 +++++++ (this Thread created by App Server) +++++++++
07/04/30 10:39:31 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/04/30 10:39:31 fromThread =Thread.currentThread().getContextCla
ssLoader() = <TestLoaders.web.TestLoaders:0.0.0>*******<class oracle.classloader
.PolicyClassLoader
07/04/30 10:39:31 ******* THE SAME CLASSLOADER USED IN BOTH PLACES!!! *******
07/04/30 10:39:31 DocumentBuilderFactory = <org.apache.xerces.jaxp.DocumentBuild
erFactoryImpl@1908ba7>*******
07/04/30 10:39:31 C O R R E C T !!!
07/04/30 10:39:31 -CWD- =E:\OracleAS_1\j2ee\home; uer directory = E:\OracleAS_1\
j2ee\home
07/04/30 10:39:31 Constructing the Timer Task...
07/04/30 10:39:31 Starting some Timer...
07/04/30 10:39:31 Some Timer is started ...
07/04/30 10:39:31 ------All actions done Successfully--------
07/04/30 10:39:41 +++++++ +++++++++++++++++++++++++++++++++++ ++++++++
07/04/30 10:39:41 +++++++ Executing Code in the new Thread... ++++++++
07/04/30 10:39:41 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/04/30 10:39:41 fromThread =Thread.currentThread().getContextCla
ssLoader() = <TestLoaders.web.TestLoaders:0.0.0>*******<class oracle.classloader
.PolicyClassLoader
07/04/30 10:39:41 ******* THE SAME CLASSLOADER USED IN BOTH PLACES!!! *******
07/04/30 10:39:41 DocumentBuilderFactory = <org.apache.xerces.jaxp.DocumentBuild
erFactoryImpl@17e5e56>*******
07/04/30 10:39:41 C O R R E C T !!!
07/04/30 10:40:31 +++++++ +++++++++++++++++++++++++++++++++++ ++++++++
07/04/30 10:40:31 +++++++ Executing the Session Timer Task... ++++++++
07/04/30 10:40:31 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/04/30 10:40:31 fromThread =Thread.currentThread().getContextCla
ssLoader() = <TestLoaders.web.TestLoaders:0.0.0>*******<class oracle.classloader
.PolicyClassLoader
07/04/30 10:40:31 ******* THE SAME CLASSLOADER USED IN BOTH PLACES!!! *******
07/04/30 10:40:31 DocumentBuilderFactory = <org.apache.xerces.jaxp.DocumentBuild
erFactoryImpl@1c6988d>*******
07/04/30 10:40:31 C O R R E C T !!!
07/04/30 10:44:01 Shutting down OC4J...
07/04/30 10:44:01
E:\OracleAS_1\j2ee\home>
C:\oc4j\j2ee\home>java -Xms128m -Xmx1024m -classpath .;oc4j.jar;C:\oc4j\j2ee\hom
e\properties -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socke
t,address=3999,server=y,suspend=n -jar oc4j.jar -userThreads
07/05/01 21:14:33 ------In StartupServlet Init-----
07/05/01 21:14:33 +++++++ ++++++++++++++++++++++++++++++++++++ ++++++++
07/05/01 21:14:33 +++++++ Executing Code in the StrtServlet... ++++++++
07/05/01 21:14:33 +++++++ (this Thread created by App Server) +++++++++
07/05/01 21:14:33 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/05/01 21:14:33 fromThread =Thread.currentThread().getContextCla
ssLoader() = <TestLoaders.web.TestLoaders:0.0.0>*******<class oracle.classloader
.PolicyClassLoader
07/05/01 21:14:33 ******* THE SAME CLASSLOADER USED IN BOTH PLACES!!! *******
07/05/01 21:14:33 DocumentBuilderFactory = <org.apache.xerces.jaxp.DocumentBuild
erFactoryImpl@723c42>*******
07/05/01 21:14:33 C O R R E C T !!!
07/05/01 21:14:33 -CWD- =C:\oc4j\j2ee\home; uer directory = C:\oc4j\j2ee\home
07/05/01 21:14:33 Constructing the Timer Task...
07/05/01 21:14:33 Starting some Timer...
07/05/01 21:14:33 Some Timer is started ...
07/05/01 21:14:33 ------All actions done Successfully--------
07/05/01 21:14:33 Oracle Containers for J2EE 10g (10.1.3.2.0) initialized
07/05/01 21:14:43 +++++++ +++++++++++++++++++++++++++++++++++ ++++++++
07/05/01 21:14:43 +++++++ Executing Code in the new Thread... ++++++++
07/05/01 21:14:43 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/05/01 21:14:43 fromThread =Thread.currentThread().getContextCla
ssLoader() = <[ThreadContextLoader, current context: TestLoaders.web.TestLoaders
:0.0.0]>*******<class com.evermind.server.ApplicationContextClassLoader
07/05/01 21:14:43 ******************************************************
07/05/01 21:14:43 Chain of ClassLoaders from Class
07/05/01 21:14:43 --- TestLoaders.root:0.0.0 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:14:43 --- default.root:0.0.0 --- class oracle.classloader.PolicyCla
ssLoader
07/05/01 21:14:43 --- system.root:0.0.0 --- class oracle.classloader.PolicyClas
sLoader
07/05/01 21:14:43 --- oc4j:10.1.3 --- class oracle.classloader.PolicyClassLoade
r
07/05/01 21:14:43 --- api:1.4.0 --- class oracle.classloader.PolicyClassLoader
07/05/01 21:14:43 --- jre.extension:0.0.0 --- class oracle.classloader.PolicyCl
assLoader
07/05/01 21:14:43 --- jre.bootstrap:1.4.2_08 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:14:43 --- null ---
07/05/01 21:14:43 ********** End of Chain of ClassLoaders **************
07/05/01 21:14:43 ******************************************************
07/05/01 21:14:43 Chain of ClassLoaders from Thread
07/05/01 21:14:43 --- oc4j:10.1.3 --- class oracle.classloader.PolicyClassLoade
r
07/05/01 21:14:43 --- api:1.4.0 --- class oracle.classloader.PolicyClassLoader
07/05/01 21:14:43 --- jre.extension:0.0.0 --- class oracle.classloader.PolicyCl
assLoader
07/05/01 21:14:43 --- jre.bootstrap:1.4.2_08 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:14:43 --- null ---
07/05/01 21:14:43 ********** End of Chain of ClassLoaders **************
07/05/01 21:14:43 DocumentBuilderFactory = <oracle.xml.jaxp.JXDocumentBuilderFac
tory@74a138>*******
07/05/01 21:14:43 WRONG !!! Should be org.apache.xerces.jaxp.DocumentBuilderFact
oryImpl
07/05/01 21:15:33 +++++++ +++++++++++++++++++++++++++++++++++ ++++++++
07/05/01 21:15:33 +++++++ Executing the Session Timer Task... ++++++++
07/05/01 21:15:33 ClassLoaders: fromClass = getClass().getClassLoader() = <TestL
oaders.web.TestLoaders:0.0.0>*******<class oracle.classloader.PolicyClassLoader
07/05/01 21:15:33 fromThread =Thread.currentThread().getContextCla
ssLoader() = <[ThreadContextLoader, current context: TestLoaders.web.TestLoaders
:0.0.0]>*******<class com.evermind.server.ApplicationContextClassLoader
07/05/01 21:15:33 **************************************************
07/05/01 21:15:33 Chain of ClassLoaders from Class
07/05/01 21:15:33 --- TestLoaders.root:0.0.0 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:15:33 --- default.root:0.0.0 --- class oracle.classloader.PolicyCla
ssLoader
07/05/01 21:15:33 --- system.root:0.0.0 --- class oracle.classloader.PolicyClas
sLoader
07/05/01 21:15:33 --- oc4j:10.1.3 --- class oracle.classloader.PolicyClassLoade
r
07/05/01 21:15:33 --- api:1.4.0 --- class oracle.classloader.PolicyClassLoader
07/05/01 21:15:33 --- jre.extension:0.0.0 --- class oracle.classloader.PolicyCl
assLoader
07/05/01 21:15:33 --- jre.bootstrap:1.4.2_08 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:15:33 --- null ---
07/05/01 21:15:33 ********** End of Chain of ClassLoaders **********
07/05/01 21:15:33 **************************************************
07/05/01 21:15:33 Chain of ClassLoaders from Thread
07/05/01 21:15:33 --- oc4j:10.1.3 --- class oracle.classloader.PolicyClassLoade
r
07/05/01 21:15:33 --- api:1.4.0 --- class oracle.classloader.PolicyClassLoader
07/05/01 21:15:33 --- jre.extension:0.0.0 --- class oracle.classloader.PolicyCl
assLoader
07/05/01 21:15:33 --- jre.bootstrap:1.4.2_08 --- class oracle.classloader.Polic
yClassLoader
07/05/01 21:15:33 --- null ---
07/05/01 21:15:33 ********** End of Chain of ClassLoaders **********
07/05/01 21:15:33 DocumentBuilderFactory = <oracle.xml.jaxp.JXDocumentBuilderFac
tory@1d12d43>*******
07/05/01 21:15:33 WRONG !!! Should be org.apache.xerces.jaxp.DocumentBuilderFact
oryImpl
Any help will be greatly appreciated.
ThanksSorry for confusion, version of OC4J does not really meter, but jdk does. It happened that in the case where everything OK (OC4J 10.1.3.1.0) I accidentally used jdk 1.5. Now I tried both (OC4J 10.1.3.1.0 and OC4J 10.1.3.2.0) with j2sdk1.4.2_14 (besides I tried j2sdk1.4.2_09 and _08) and j2sdk1.5.0_06.
With JDK 1.5 everything is OK and with JDK 1.4 we have a problem, described in the previous posting. I believe now I should reformulate my initial question:
Is it possible to configure OC4J 10.1.3 running under j2sdk1.4.2_14 to force Thread Context ClassLoader to behave similar to OC4J 10.1.3 under j2sdk1.5.0_06? If yes, how we could do it?
Thanks
Maybe you are looking for
-
Business Object XI R2 - DotNet InfoView is not working
Hi, I am facing a problem viewing Infoview and the Central Management Console. I have just installed Business Object XI R2 Server on a Windows 2003 Server with .Net version 2, database is in SQL Server 2005 and when I go to Infoview or the CMC I get
-
Android mobile does not work with submit fdf format
I want to gather data by mobile device (Android) as JavaScript does not work well in this environment, I intend importing the gathered data into a report PDF form with JavaScript functions etc., however the Acrobat mobile reader does not appear to wo
-
Best way to share aperture library over network on two computers?
I've read several posts about doing this and most recommend using an external HD and just hot swapping. However, is their not a better alternative? Can I not share my library over the network, or just remote connect to the other computer? Thanks for
-
PB Displacement filter really slow with big images
hello; I am trying to make a Pixel bender displacement filter that will handle displacements bigger than 128 pixels, for flash. Right now flash only uses one 8 bit color channel to represent a displacement, which can not be bigger than 128 pixe
-
Clean access agent malfunction
Hi, I'm currently deploying a L2 OOB Virtual Gateway demo for a client. Trouble is, the agent won't prompt for user credentials. Double-clicking on its icon will only show that it has already started. There doesn't seem to be any logs from the CAM re