db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Gorylenko <n0...@ussr.ntu-kpi.kiev.ua>
Subject [Cloudscape 10, Tomcat 5.0.29] sample running problem
Date Thu, 13 Jan 2005 16:07:00 GMT
Hello!

I downloaded samples for
"Integrating Cloudscape and Tomcat,
   A cookbook for adding the database manager into the servlet container"
(www-128.ibm.com/developerworks/db2/library/techarticle/dm-0408bader/).
I'm trying to compile Cloudscape 5 samples to run under Cloudscape 10
under FreeBSD 5.2.1, linux-sun-jdk-1.4.2.05.

There is file
./ServerListener/com/ibm/db2j/tomcat/ServerLifecycleListenerWithNetworkServer.java
in fixme.zip
(http://www3.software.ibm.com/ibmdl/pub/software/dw/dm/db2/dm-0408bader/fixme.zip)
archive.

It contains:
<Cut>
package com.ibm.db2j.tomcat;
import  com.ibm.db2j.drda.DB2jServer;
public class ServerLifecycleListenerWithNetworkServer
      extends ServerLifecycleListener
{
[...]
      private DB2jServer fldNetworkServer;
</Cut>

Usage of fldNetworkServer:
<Usage>
      private Thread     fldNetworkServerThread;
[...]
      private DB2jServer fldNetworkServer;
[...]
              this.fldNetworkServer = new DB2jServer();
[...]
          if (this.fldNetworkServer != null) {
[...]
              this.fldNetworkServerThread = new NetworkServerThread();
[...]
              this.fldNetworkServerThread.start();
[...]
                      this.fldNetworkServer.testConnection(
[...]
              this.fldNetworkServer.shutdown(
[...]
                  this.fldNetworkServerThread.join();
[...]
                     this.fldNetworkServer.start(PORT_NUMBER, false);
[...]
</Usage>


Certainly, package name is invalid and has to be renamed to
"org.apache.derby.tomcat".

I set up Cloudscape 10; running tomcat 5.0.29.
The question is: what's the name of DB2jServer in Derby?

The page "Migrating IBM Cloudscape"
(http://publib.boulder.ibm.com/epubs/html/c1894710.html):
knows about "Network Server changes" and DB2jServer only
-----------------------------------------------------------------------------
"Table 18. Command line changes"

Version 10.0:
java org.apache.derby.drda.NetworkServerControl
Version 10.0 Beta
java com.ihost.cs.drda.NetworkServerControl
Version 5.1
java com.ibm.db2j.drda.DB2jServer
-----------------------------------------------------------------------------


The compile error i receive:
-----------------------------------------------------------------------------
  > ./Build.sh

set SourcePath=./

set
SourceFiles=com/ibm/db2j/tomcat/ServerLifecycleListenerWithNetworkServer.java
set DestinationDir=./classes
set ClassPath=./classes
set ClassPath="$ClassPath;$CLOUDSCAPE_INSTALL/lib/derbynet.jar"
set ClassPath="$ClassPath;$CATALINA_HOME/server/lib/catalina.jar"
$JAVA_HOME/bin/javac -classpath $ClassPath -sourcepath $SourcePath -d
$DestinationDir $SourceFiles
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
location
com/ibm/db2j/tomcat/ServerLifecycleListenerWithNetworkServer.java:3:
package com.ibm.db2j.drda does not exist
import  com.ibm.db2j.drda.DB2jServer;
                            ^
-----------------------------------------------------------------------------



Mime
View raw message