problem with restarting platform and jdbc [message #245010] |
Wed, 27 June 2007 02:32  |
Eclipse User |
|
|
|
Originally posted by: ****.*****.com
Hi, i wonder if somebody got the same problem and maybe solved it.
i create java-app with birt reports. i use birt2.2 RC3 engine.
when i starts engine at first time to create a report with data from
database at remote server (using jdbc driver) it working properly.
after that i do
birtEngine.shutdown();
Platform.shutdown(); // to clear cache and images
and after that restart it to make another report.
The problem is that after restarting i get an exception
+ Cannot open the connection for the driver:
org.eclipse.birt.report.data.oda.jdbc
or
INFO: Loading JDBC driver class: net.sourceforge.jtds.jdbc.Driver
26.06.2007 16:26:14
org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager
loadAndRegisterDriver
INFO: Driver class not in class path: net.sourceforge.jtds.jdbc.Driver.
Trying to locate driver in drivers directory
26.06.2007 16:26:14
org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager$Driv erClassLoader
refreshURLs
INFO: JDBCDriverManager: found JAR file drivers/derby.jar.
URL=bundleentry://35/drivers/derby.jar
26.06.2007 16:26:14
org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager$Driv erClassLoader
refreshURLs
INFO: JDBCDriverManager: found JAR file drivers/jtds-1.2.jar.
URL=bundleentry://35/drivers/jtds-1.2.jar <-----------HERE---------
26.06.2007 16:26:14
org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager
loadAndRegisterDriver
WARNING: Failed to load JDBC driver class: net.sourceforge.jtds.jdbc.Driver
But just before this all have worked properly.
Please, tell me, what am i doing wrong!
|
|
|
|
|
Re: problem with restarting platform and jdbc [message #245690 is a reply to message #245554] |
Sat, 30 June 2007 13:57  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Ire,
You may want to log a bugzilla entry for this, but you should be able to
shutdown the platform. I just do not recommend it. It is expensive to
stop and start. As far as the temp directory, the sampledb uses
System.getProperty( "java.io.tmpdir" );
To store the db, so set that system property, or if you do not need it
remove the sample db plugin.
Jason
Ire wrote:
> Hello, Jason!
> Thanks for answering!
>
> I stop Platform to clean cashe made by SampleDb Plugin.
> And... if I cant't stop Platform I have next question.
>
> Could I set up temp directory for SampleDbPlugin programmatically?
> Now all temp files and folders (like folder
> "BIRTSampleDB_1183102858021_1bbea67" or file "jar_cache10690.tmp")
> creates in Apache Software FoundationTomcat 5.5temp, if i could create
> subdirectories for each report and delete it after all, it would be great.
>
> I tried this
>
> config.setTempDir(config.getTempDir()+ File.separator+"lalalalala");
>
> but there was no effect...
>
> Ire.
>
|
|
|
Powered by
FUDForum. Page generated in 0.24511 seconds