Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to config when use Oracle in J2EE?

 
kunchi wang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who can tell me the detail about config step? Thanks!!
when I run (j2ee -verbose)
following display:
J2EE server listen port:1050
Naming service started:1050
Error loading J2EE resource file
java.lang.NullPointerException at com.sun.enterprise.resource.ResourceInstaller.<init><ResourceInstaller.java:95>
........
I have config as follow:
1. (run) jar cf Oracle.jar d:\oracle(the directory of Oracle driver)
and reside Oracle.jar in J2EEHOME\lib\system;
set J2EE_CLASSPATH = J2EEHOME\lib\system\Oracle.jar
2. (run) j2eeadmin -addJdbcDriver
3. resource.properties
jdbcDataSource.0.name=jdbc/Oracle
jdbcDataSource.0.url=jdbc:sequelink://remotehost:1521 rcl/
jdbcDriver.0.name=com.merant.sequelink.jdbc.SequeLinkDriver
jdbcXADataSource.0.name=jdbc/Merant
jdbcXADataSource.0.classname=com.merant.sequelink.jdbcx.datasource.
SequeLinkDataSource
jdbcXADataSource.0.dbpassword=education
jdbcXADataSource.0.dbuser=mde
jdbcXADataSource.0.prop.serverName=remotehost
jdbcXADataSource.0.prop.portNumber=1521
jmsCnxFactory.0.name=QueueConnectionFactory
jmsCnxFactory.0.isQueue=true
jmsCnxFactory.1.name=TopicConnectionFactory
jmsCnxFactory.1.isQueue=false
jmsCnxFactory.2.name=jms/QueueConnectionFactory
jmsCnxFactory.2.isQueue=true
jmsCnxFactory.3.name=jms/TopicConnectionFactory
jmsCnxFactory.3.isQueue=false
jmsDestination.0.name=jms/Queue
jmsDestination.0.isQueue=true
jmsDestination.1.name=jms/Topic
jmsDestination.1.isQueue=false

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic