RE: {Spam?} Using Oracle for the Shark tables
"Dahl, Greg (BLM) - contr" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <A8155E0D38B9D84D88EAC58C2D8F47BA0541D108@blmms060.accounts.root.corp> |
Well, I think I did all these steps correctly.
When I run trying to use the run.bat scripts from the bin directory of
Shark-1.1, I get the following stack trace:
2005-06-21 13:39:25,733: SharkEngineManager -> Can't work - Problems
while configuring AuthenticationManager!
com.lutris.appserver.server.sql.DatabaseManagerException: Could not
create logical database sharkdb: can't load JDBC dri
ver class: oracle.jdbc.driver.OracleDriver
at
com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatab
ase(StandardDatabaseManager.java:541)
at
com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(StandardD
atabaseManager.java:345)
at
org.enhydra.shark.utilities.dods.DODSUtilities.init(DODSUtilities.java:2
04)
at
org.enhydra.shark.authentication.DODSAuthenticationManager.configure(DOD
SAuthenticationManager.java:43)
at
org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:214)
at org.enhydra.shark.Shark.init(Shark.java:297)
at org.enhydra.shark.Shark.configure(Shark.java:120)
at org.enhydra.shark.Shark.configure(Shark.java:82)
at
org.enhydra.shark.corba.SharkCORBAServer.main(SharkCORBAServer.java:238)
Caused by: java.sql.SQLException: can't load JDBC driver class:
oracle.jdbc.driver.OracleDriver
at
com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.initCon
f(StandardLogicalDatabase.java:254)
at
com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.init(St
andardLogicalDatabase.java:190)
at
com.lutris.appserver.server.sql.standard.StandardLogicalDatabase.<init>(
StandardLogicalDatabase.java:176)
at
com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatab
ase(StandardDatabaseManager.java:538)
... 8 more
Yet, Shark was able to find the driver when I ran the configure.bat
because I placed the ojdbc14_9.2.0.5.jar in the
C:\Shark-1.1\lib\contrib\ext directory. The Run script sets the Path to
include this directory.
Also, when I run my application, which executes the following code
(using the same Shark.conf file the run.bat script is trying to use):
FileInputStream in;
Properties sharkProperties = new Properties();
in = new FileInputStream("C:/Shark-1.1/conf/Shark.conf");
sharkProperties.load(in);
in.close();
System.out.println(sharkProperties);
Shark.configure(sharkProperties);
Shark sharkInstance = org.enhydra.shark.Shark.getInstance();
Properties properties = sharkInstance.getProperties();
setupSharkServer(sharkInstance, properties);
sharkExecutionAdministration =
sharkInstance.getAdminInterface().getExecutionAdministration();
workflowConnection = sharkInstance.getSharkConnection();
it seems to work fine, and I get the following output:
2005-06-21 13:06:24,284: SharkEngineManager -> Working with
'org.enhydra.shark.CallbackUtil' implementation of core
CallbackUtilities API
2005-06-21 13:06:24,284: SharkEngineManager -> Working with
'org.enhydra.shark.SharkObjectFactory' implementation of core
SharkObjectFactory API
2005-06-21 13:06:24,284: SharkEngineManager -> Working with
'org.enhydra.shark.ToolAgentManagerImpl' implementation of core
ToolAgentManager API
2005-06-21 13:06:24,284: SharkEngineManager -> Working with
'org.enhydra.shark.logging.StandardLoggingManager' implementation of
Logging API
2005-06-21 13:06:24,284: SharkEngineManager -> Working with
'org.enhydra.shark.assignment.StandardAssignmentManager' implementation
of Assignment API
2005-06-21 13:06:24,694: SharkEngineManager -> Working with
'org.enhydra.shark.authentication.DODSAuthenticationManager'
implementation of Authentication API
2005-06-21 13:06:24,714: Process Cache configured - max. size is 100
2005-06-21 13:06:24,714: Resource Cache configured - max. size is 100
2005-06-21 13:06:24,714: SharkEngineManager -> Working with
'org.enhydra.shark.caching.LRUCacheMgr' implementation of Caching API
2005-06-21 13:06:30,683: DODSPersistentManager -> manager configured -
working with DB "<Connection URL is here correct>"
2005-06-21 13:06:30,683: DODSPersistentManager -> -
using DB Driver "oracle.jdbc.driver.OracleDriver"
2005-06-21 13:06:30,683: SharkEngineManager -> Working with
'org.enhydra.shark.instancepersistence.DODSPersistentManager'
implementation of InstancePersistence API
2005-06-21 13:06:36,431: SharkEngineManager -> Working with
'org.enhydra.shark.eventaudit.DODSEventAuditManager' implementation of
EventAudit API
2005-06-21 13:06:36,441: SharkEngineManager -> Working with
'org.enhydra.shark.limitagent.StandardLimitAgentManager' implementation
of Limit API
2005-06-21 13:06:36,712: SharkEngineManager -> Working with
'org.enhydra.shark.processlocking.DODSLockMaster' implementation of
ProcessLocking API
2005-06-21 13:06:36,902: SharkEngineManager -> Working with
'org.enhydra.shark.partmappersistence.DODSParticipantMappingMgr'
implementation of ParticipantMapPersistence API
2005-06-21 13:06:37,212: SharkEngineManager -> Working with
'org.enhydra.shark.appmappersistence.DODSApplicationMappingMgr'
implementation of ApplicationMapPersistence API
2005-06-21 13:06:37,222: SharkEngineManager -> Working without
ScriptMapPersistence API implementation - ScriptMapPersistenceManager is
not specified.
2005-06-21 13:06:37,252: SharkEngineManager -> Working with
'org.enhydra.shark.repositorypersistence.DODSRepositoryPersistenceManage
r' implementation of RepositoryPersistence API
2005-06-21 13:06:37,262: SharkEngineManager -> Working with
'org.enhydra.shark.scripting.StandardScriptingManager' implementation of
Scripting API
2005-06-21 13:06:37,262: SharkEngineManager -> Working with
'org.enhydra.shark.security.StandardSecurityManager' implementation of
Security API
2005-06-21 13:06:37,272: SharkEngineManager -> Working with
'org.enhydra.shark.toolagent.ToolAgentFactoryImpl' implementation of
ToolAgent API
2005-06-21 13:06:37,272: SharkEngineManager -> Working with
'org.enhydra.shark.transaction.DODSTransactionFactory' implementation of
Transaction API
2005-06-21 13:06:37,302: SharkEngineManager -> Working with
'org.enhydra.shark.usergroup.DODSUserGroupManager' implementation of
UserGroup API
2005-06-21 13:06:37,312: SharkEngineManager -> Working with
'org.enhydra.shark.usertransaction.DODSUserTransactionFactory'
implementation of UserTransaction API
2005-06-21 13:06:37,342: The repository EXTERNAL_PACKAGES_REPOSITORY
does not exist - trying to create one!
2005-06-21 13:06:37,342: The repository EXTERNAL_PACKAGES_REPOSITORY
can't be created!
2005-06-21 13:06:37,413: SharkUtilities -> synchronizing XPDL cache
Shark -> shark engine initialization is finished, it lasted 14 [s]
Shark -> Shark ready and waiting ...
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, June 21, 2005 12:45 PM
To: [email protected]
Subject: Re: {Spam?} [shark] Using Oracle for the Shark tables
Greg:
I had trouble getting shark to speak to another (non hsql) database too.
In fact I got all the errors you have reported so far. ;) Anyways,
here's what i finally did:
1. Delete everything under shark-1.1 to start afresh.
2. Unzip the downloaded archive into C:\shark1.1
3. Run configure.bat *as is* from C:\shark1.1\
4. Run make.bat from C:\shark1.1\
5. After a bit you will see C:\shark1.1\output folders.
6. Now go into C:\shark1.1\output\Shark\ and edit configure.properties
according to this link:
http://shark.objectweb.org/doc/1.1/HowTo/how_to.html#d0e11
This is important: if you want your oracle tables to be created afresh
make sure the un/pw you supply here in configure.properties has
permission to delete and create tables.
Also configure.properties is where you can set the path to your oracle
jdbc drivers.
7. (not sure if you need to do this just yet but I had to do it later
anyways..) Edit Shark.conf in C:\shark1.1\output\Shark\conf. I only
editted db un, pw, jdbc driver, Connection.url. Also I set the cache
sizes to 0 (since I wanted a client app to talk to my db too). Do this
just by uncommenting the following:
#DatabaseManager.defaults.cache.maxCacheSize=0
#DatabaseManager.defaults.cache.maxSimpleCacheSize=0
#DatabaseManager.defaults.cache.maxComplexCacheSize=0
8. Now run configure.bat (in C:\shark1.1\output\Shark).
9. When it is done all your tables will be recreated (and empty!) and
you should be ready.
10. Access your admin client app by running runSA.bat in
C:\shark1.1\output\Shark\bin
Shark should now be talking to the database of your choice now.
Also, remember if you want a client app to also talk to this db, make
sure the Shark.conf for your client has a different engine name than the
one the admin client is talking to ("Shark" is the default) and the
caches are set to 0.
Hope this helps!
kind regards,
Geeta
"Dahl, Greg (BLM) - contr" <[email protected]>
06/21/2005 01:22 PM
Please respond to
[email protected]
To
[email protected]
cc
Subject
{Spam?} [shark] Using Oracle for the Shark tables
Sorry for all the questions. Maybe I'll document what I did so you
folks never see this stuff again.
I've gotten the configure.bat to run and can see the shark tables in my
database.
When I to start the shark server, my SharkExecutionFlow.log simply says:
2005-06-21 11:24:45,229: SharkEngineManager -> Can't work - Problems
while configuring AuthenticationManager!
It appears the command window has some sort of stack trace, but I'm
obviously not bright enough to figure out how to capture that output in
a XP environment. Running the "run" script from a cmd window still
opens up another window which closes upon error.
I've updated my Shark.conf file with the following changes:
DatabaseManager.DB.sharkdb.JdbcDriver="oracle.jdbc.driver.OracleDriver"
DatabaseManager.DB.sharkdb.Connection.Url="jdbc:oracle:thin:@server:port
:database"
DatabaseManager.DB.sharkdb.Connection.User="validuserid"
DatabaseManager.DB.sharkdb.Connection.Password="validpassword"
and
DatabaseManager.DB.sharkdb.ClassType=Oracle (added per some recent
emails from Ben)
All of the values match what I supplied as part of the
configure.properties file.
Is there some where else I can look for a log file????
Thanks (again)
Greg
[email protected]
******* Confidentiality Notice *******
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information. This
information is intended solely for use by the individual or entity to
whom it is addressed. If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
You receive this message as a subscriber of the [email protected]
mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
CONFIDENTIALITY NOTICE:This email is intended solely for the person or
entity to which it is addressed and may contain confidential and/or
protected health information. Any duplication, dissemination, action
taken in reliance upon, or other use of this information by persons or
entities other than the intended recipient is prohibited and may violate
applicable laws. If this email has been received in error, please
notify the sender and delete the information from your system. The
views expressed in this email are those of the sender and may not
necessarily represent the views of IntelliCare.