Cloudscape server!!
Hi!!
I'm trying to start a cloudscape server, but all the I get the following message:
Exception in thread "main" java.lang.NoClassDefFoundError: COM/cloudscape/tools/sysinfo .
I've checked the classpath and to me it seems correct.
Does anyone know what I do wrong??
Can you show us your CLASSPATH?
Similar Messages
-
How to use cloudscape server with imq plugin persistent
I succeed using embbed cloudscape to use JDBC plugin persistent store.
I found that the messge sending performance is acceptable(
20000 messages/27minutes), but the asynch message receiving is quite slow(20000message/82minutes).(My environment is a P4 256MRAM nodebook)
Now i am trying to use a standalone cloudscape server to serve as JDBC persisten.
but I fail to use imqdbmgr to create imqdb.
however, I can use cloudscape ij to create imqdb
at local machine using JDBC URL" jdbc:cloudscape:imqdb".
This cloudscape is provided by J2ee1.4 package.
but I failed while using following property in imq's config.properties
imq.persist.jdbc.opendburl=jdbc:cloudscape:d:/j2sdkee1.4/bin/imqdb
imqdbmgr report
"Failed to get connection to jdbc:cloudscape:d:/j2sdkee1.4/bin/imqdb;create=true:"
any one can help to figure out the probemYou need to check the cloudscape documentation and find out
1. the JDBC driver class to use and set imq.persist.jdbc.driver
2. the url to access a database managed by the server and set
imq.persist.jdbc.opendburl
The url shown in your mail is a format for the embedded version.
I believe the format for accessing a database managed by a server
is different. Please check the cloudscape documentation.
Since your database is created and managed by a server, you use
"imqdbmgr create tbl" to just create the tables used by MQ (after
the above properties are set correctly).
Hope this helps. -
Hi,
I have just downloaded the j2sdkee1.2.1. I have been able to configure it and try out couple of example. But when i tried the example "accounts" using an entity bean it say that it "cannot find the principle implementation jdbc/Cloudscape". Actually i have not been able to run the provided script in cloudscape. Can anyone help me with this. How do u run script "createTable.sql" after u have started the cloudscape server. Do u have to place the script in some directory or is there something else.
Thanks in advance
KunalThe error that i am getting on Running testClient.bat is:
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested ex
ception is:
javax.ejb.EJBException: ejbCreate: Table 'ACCOUNT' does not exist.
java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception
is:
javax.ejb.EJBException: ejbCreate: Table 'ACCOUNT' does not exist.
javax.ejb.EJBException: ejbCreate: Table 'ACCOUNT' does not exist.
<<no stack trace available>>
I think it is because i have not been able to run the script "createTable.sql". Can anyone help me as to how and where should i run this script.
Thanks -
J2ee:tutorial:savingsaccount problem connecting to cloudscape database
I'm running Windows ME, and have been working through the tutorial. I thought I had most of my path problems cleared up, but appartently one remains.
Having successfully deployed the 'SavingsAccountApp.ear' when running it, the follow error is returned when using 'runclient -client SavingsAccountApp.ear -name SavingsAccountClient'
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
nable to connect to database. SavingsAccountDB not found; nested exception is:
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
not found
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
connect to database. SavingsAccountDB not found; nested exception is:
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
not found
javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB not found
Another clue pops up when starting the J2EE server:
Loading jar:/C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp9941
83966960Server.jar
/C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp994183966960Serv
er.jar
Binding name:`java:comp/env/jdbc/SimpleSavingsAccountDB`
Warning: Reference reference java:comp/env/jdbc/SimpleSavingsAccountDB is using
a JNDI name that is not bound: MySavingsAccount
Application deployment successful : com.sun.ejb.containers.EntityContainer@d5aad
This leads me to believe that there is something inapppropriate in the setup for JNDI performed during the application construction using deploytool. I've gone over it several times and can't find a problem.
Any suggestions?
p.s. I've got both the Converter and Cart applications up and running successfully, but not without significant struggle. Little by little I'm working through it. Thus I can offer help to others working through it on Windows ME.
The cloudscape server starts up okay with this feedback:
TheTony,
When using deploytool to create the reference to the EJB, I used the name SavingsAccountDB as suggested in the tutorial.
However, upon making the change you suggested the error message reads as such:
Initiating login ...
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
etEntityContext: Unable to connect to database. savingsaccount not found; nested
exception is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
savingsaccount not found
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
Context: Unable to connect to database. savingsaccount not found; nested excepti
on is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
savingsaccount not found
javax.ejb.EJBException: setEntityContext: Unable to connect to database. savings
account not found
<<no stack trace available>>
The error message with the original name (SavingsAccountDB) reads as follows:
Initiating login ...
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Now calling create() to make a savings account
SavingsAccountClient main: Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
etEntityContext: Unable to connect to database. SavingsAccountHomeStub; nested
exception is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
SavingsAccountHomeStub
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
Context: Unable to connect to database. SavingsAccountHomeStub; nested excepti
on is:
javax.ejb.EJBException: setEntityContext: Unable to connect to database.
SavingsAccountHomeStub
javax.ejb.EJBException: setEntityContext: Unable to connect to database. _Saving
sAccountHome_Stub
<<no stack trace available>>
I'm wondering if the problem is something to do with the security manager. I upgraded the cloudscape database to 3.6.4 and since then have been getting this message with starting cloudscape:
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] COM.cloudscape.core.JDBCDriver registere
d in DriverManager
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] Binding RmiJdbcServer...
Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] No installation of RMI Security Manager.
Sat Jul 07 22:12:03 EST 2001: [RmiJdbc] RmiJdbcServer bound in rmi registry
and when creating the savingsaccount table, the message has changed to this:
Buildfile: build.xml
init:
create-savingsaccount-table:
[java] ij version 3.6 (c) 1997-2001 Informix Software, Inc.
[java] ERROR (no SQLState): error unmarshalling return; nested exception is
[java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
RMI class loader disabled)
[java] ERROR (no SQLState): error unmarshalling return; nested exception is
[java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
RMI class loader disabled)
[java] ij> drop table savingsaccount;
[java] 0 rows inserted/updated/deleted
[java] ij> create table savingsaccount
[java] (id varchar(3) constraint pk_savings_account primary key,
[java] firstname varchar(24),
[java] lastname varchar(24),
[java] balance decimal(10,2));
[java] 0 rows inserted/updated/deleted
[java] ij> exit;
BUILD SUCCESSFUL
I'm guessing it is finding the SavingsAccountDB database, but for some reason is not allowed to connect. -
Hi,
I am totally new to EJB and I'm trying to work with j2sdkee1.2.1 on Windows 98 using j2eelauncher. j2eelauncher seems to work well in starting the j2ee server and the deploytool but it doesn't start the cloudscape server. Can anyone help me figure out the problem?
Thanks,
JaiSure I can help you, I am using J2ee on Win 98 and Win 2K both. Mail me all your .bat files from the J2EE_HOME/bin folder, i will figure out the problem,
Cheers,
Shafique Razzaque,
[email protected] -
system:win2000 jre:1.4 j2sdkee 1.3.1
when i build a new database or open an exist database ,i receive:
Database access resulted in SQL exception:
No SQLState, Error code 0, Message:
Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
--------------------------------------------what can i do?? ThanksStart your cloudscape server.
If started check your connection parameters. -
I just started the DJBC tutorials and dowloaded the Report4J java file compiled it and when I tried to run the class I received the following error
C:\Documents and Settings\benjamca\My Documents\code\java\misc>java -classpath C
:\j2sdkee1.3\lib\system\cloudscape.jar;. Report4J
java.lang.ClassNotFoundException: RmiJdbc.RJDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at COM.cloudscape.core.RmiJdbcDriver.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at Report4J.main(Report4J.java:26)
problems connecting to jdbc:cloudscape:rmi:jGuru:
No suitable driver
What is the next step?After adding the the jar files to my classpath I get the following error:
The cloudscape server is running.
C:\Documents and Settings\benjamca\My Documents\code\java\misc>java -classpath C
:\j2sdkee1.3\lib\system\cloudscape.jar;C:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;
. Report4J
problems connecting to jdbc:rmi:jdbc:cloudscape:jGuru;create=true:
Connection refused to host: BENJAMCA3; nested exception is:
java.net.ConnectException: Connection refused: connect -
I have installed J2EE SDK 1.3 beta 2, and was going along well until I reached the Dukes Bank sample application.
I have gone through step by step as stated in the tutorial, using ant to compile everything. I use the deploytool to open the resulting DukesBankApp.ear file and everything looks fine. I then attempt to deploy the application, set that going, and watch as the progress window appears. The messages displayed get to (I believe) "Making Server JARs", and then the system reboots. I've uninstalled and reinstalled everything, recompiled from scratch, and it still does it.
So I thought I'd go on a different tack to test out the database features. I ran the cloudscape server with "cloudscape -start", and then tried to connect to it with "cloudscape -isql". And it happens again - reboot.
I have Windows 2000 Pro (SP2), IE5.5, 384Mb RAM, J2EE 1.3 beta 2. Any thoughts on where to go next with this problem?
Thanks.in my experiance the problem is not because of cloudscape, the same problem might happen in another database too...
in windows 2000 it shows some collition between java runtime environment.
This same problem may occure in any java installation of windows2000 in ur system. better try to reinstall java and set clear class path...
that means in dos prompt set classpath=new classpath then try to run cludscape, same should for j2ee, and deploytool in the same prompt.
( can u check what are the paths available in ur system by set | more command in ur system dos prompt )
can u inform me after u solving this problem....
i will try my level best to find out a solution
[email protected] -
Cloudscape transaction problem. Please help.
Hi,
from EJB A in application x I call a method in EJB V in application Y.
The application use different databases in the same Cloudscape server.
Both beans have container managed transaction.
I'm getting the following exception:
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean;
nested exception is: javax.ejb.EJBException: nested exception is:
java.sql.SQLException: java.lang.IllegalStateException: Local transaction
already ha
javax.ejb.EJBException: nested exception is: java.sql.SQLException:
java.lang.IllegalStateException: Local transaction already has 1 non-XA
Resource: cannot add more resources
java.sql.SQLException: java.lang.IllegalStateException: Local transaction
already has 1 non-XA Resource: cannot add more resources
If I set the trans attribute of the calling method to 'Never' it works fine but
then I do not have transactions any more. Does cloudscape only allow on
transaction running? What's the problem here?
TIA
FrankHi,
thanx for that. I was wondering what that XACloudscape is all about.
Can you tell me what I have to do if I want to use XACloudscape?
Right now I use this configuration:
jdbcDataSource.5.name=jdbc/Standort1
jdbcDataSource.5.url=jdbc\:cloudscape\:rmi\:Standort1;create\=true
jdbcDataSource.6.name=jdbc/Standort2
jdbcDataSource.6.url=jdbc\:cloudscape\:rmi\:Standort2;create\=true
jdbcDataSource.7.name=jdbc/Standort3
jdbcDataSource.7.url=jdbc\:cloudscape\:rmi\:Standort3;create\=true
jdbcDataSource.8.name=jdbc/Zentrale
jdbcDataSource.8.url=jdbc\:cloudscape\:rmi\:Zentrale;create\=true
using the corresponding JNDI names during deployment.
I am using J2EE RI 1.3.1 with Cloudscape DB.
Would be great to get a little hint.
TIA
Frank -
Sh setup.sh deploy hangs for PetStore 1.3.2 w J2EE 1.3.1
Hi!
I have succesfully installed a J2EE reference installation in a linux machine and the server starts up fine:
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3.1
Starting web service at port: 9191
J2EE SDK/1.3.1
J2EE server startup complete.The cloudscape server also starts up ok
Thu Nov 11 16:53:36 PST 2004: [RmiJdbc] Binding RmiJdbcServer...
Thu Nov 11 16:53:36 PST 2004: [RmiJdbc] No installation of RMI Security Manager...
Thu Nov 11 16:53:37 PST 2004: [RmiJdbc] RmiJdbcServer bound in rmi registryBut when running the "sh setup.sh deploy" , the deployment just displays
init:
deploy:
[echo] Deploying ears ....and that's it. No errors, no exceptions, nada.
What is the problem? Do I need any special permissions? I have even tried deploying as root and it still just hangs.
Thanks for any help that you might provide.I ran into the same problem.
"stracing" the hanging process I found that the installer tried to connect to an IP mapped to my hostname in /etc/hosts:
bind(6, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(6, {sa_family=AF_INET, sin_port=htons(38792), sin_addr=inet_addr("0.0.0.0")}, [16]) = 0
connect(6, {sa_family=AF_INET, sin_port=htons(36047), sin_addr=inet_addr("192.168.1.107")}, 16) = -1 EHOSTUNREACH (No route to host)
Problem was that the mapping of my hostname to IP 192.168.1.107 was not valid any more. Updating the IP mapped to the hostname to the current IP AND RERUNNING the setup procedure solved the problem. -
Problem using DataSource for JDBC applications
import javax.sql.*;
import java.sql.*;
import java.io.*;
import java.text.*;
import javax.naming.*;
public class CreateMovieTables {
//static String driver="COM.cloudscape.core.JDBCDriver";
//static String url="jdbc:cloudscape:";
String leadActor,title,leadActress,type,dateOfRelease;
Connection connection;
Statement statement;
DataSource dataSource;
public void initialize() throws SQLException,NamingException{
//Class.forName(driver);
Context initialContext = new InitialContext();
//connection = DriverManager.getConnection(url + "Movies;create=true");
dataSource = (DataSource) initialContext.lookup("jdbc/Cloudscape");
connection = dataSource.getConnection();
the code goes on
when i start the j2ee sdk server, the cloudscape server the message i get when i run the program is...
No local string for datasource.wrongclient
java.sql.SQLException:
at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:40)
at CreateMovieTables.initialize(CreateMovieTables.java:23)
at CreateMovieTables.main(CreateMovieTables.java:86)
can anyone please suggest as to where i may be going wrong
thanx
-NDKI don't agree that a User or System DSN is needed - that's a Windows idiom.
I haven't used the J2EE SDK to set up a data source, but I know that when I do it in Tomcat I've got to put a <resource-ref> tag in the web.xml that identifies the JNDI lookup string, and then the JDBC driver/URL/username/password details under a <Resource> tag in the context.xml to tell the data source how to create the JDBC connection.
My <resource-ref> name is "jdbc/APIPrototype". My JNDI lookup string looks like "java:comp/env/jdbc/DataSourceName".
You've got to do more than just put the JNDI lookup string in the Context lookup. Your error message sounds like the server is saying you've haven't done that set-up work.
Just a guess - perhaps it's something else, but I couldn't tell from your note. - MOD -
How to configure database for the entity bean in j2sdkee 1.3.1.
I like to use the SQLServer as the EIS,
Please give me instuctions about the changes that have to be made in the config folder.
Can i do the same work with Cloudscape Server,how to select a table information in Cloudscape server,how to create a seperate database,
anticipating reply
Dheerajhttp://www.google.com/search?q=cloudscape+documentation
-
Cci resource adapter in weblogic
Hi,
I am trying to install the cciblackbox-tx resource adapter that comes with
sun reference implementation. I successfully deployed the resource adapter and
created the stored procedures in cloudscape. I get a null pointer exception when
I call the execute method on the interaction. I did check that the connection,
interaction are not null. I have a feeling that the java class (Procs.class) that
you create for the stored procedures need to be in the classpath of the cloudscape
server when it starts. I would appreciate if anyone can provide insight into this.
thanks,
babu
Weblogic 6.1 ships cloudscape 3.5.1. Sun's RI ships cloudscape 3.6. cloudscape
3.5.1 does not fetch the metadata of the stored procedures properly. I upgraded
to cloudscape 3.6 and evrything works fine. I did try the example on suns RI and
it works fine.
babu
prasen <[email protected]> wrote:
>
>yes you are right, you need to put Procs.class in your classpath.
>
>Also I am not sure, but there may be some problems with their
>implementation. Did you try out teh example on SUN's RI ?
>
>prasen
>
>babu siddabathuni wrote:
>>
>> Hi,
>> I am trying to install the cciblackbox-tx resource adapter that
>comes with
>> sun reference implementation. I successfully deployed the resource
>adapter and
>> created the stored procedures in cloudscape. I get a null pointer exception
>when
>> I call the execute method on the interaction. I did check that the
>connection,
>> interaction are not null. I have a feeling that the java class (Procs.class)
>that
>> you create for the stored procedures need to be in the classpath of
>the cloudscape
>> server when it starts. I would appreciate if anyone can provide insight
>into this.
>>
>> thanks,
>> babu
-
Hello I'm having trouble with JTA in a stateful sessionbean
i'm using the sample J2EE-implementation included in j2ee-sdk
I have two databases.
1. Oracle server
2. Cloudscape
the purpose of the code is to move a row (given an id) from oracle to
cloudscape, but during Thread.sleep(..) the cloudscape server is stopped
with ctrl-c in order to rollback the transaction.
the problem is that even though i crash the cloudscape server, the rows are
removed from oracle and inserted into cloudscape even though commit hasn't
executed.
Could anyone please advise?
code:
public void moveRow( String id ) throws javax.ejb.EJBException{
UserTransaction transaction = ctx.getUserTransaction();
prepareConnections(id); // creates prepared statemens, sets
autocommit to false on connections
try {
transaction.begin();
catch ( Exception exception ){
System.out.println("Unable to start a new transaction");
throw new EJBException( exception );
try{
preparedstatement1.executeUpdate(); // INSERT INTO cloudscape
table
preparedstatement2.executeUpdate(); // DELETE FROM oracle table
System.out.println("About to doze now, please stop the cloudscape
server to cancel transaction." );
Thread.sleep(10000);
System.out.println("awake again, now committing.");
transaction.commit();
} // end try block
catch(Exception ex1) {
System.out.println("Something terrible happened");
try{
System.out.println("trying to rollback");
transaction.rollback();
catch(Exception ex2){
throw new EJBException("didn't even manage to rollback
the transaction");
} // end inner catch
throw new EJBException("EJBException with reason: " + ex1);
} // end outer catch
} // end methodHi,
Please assert that you are using the XA DataSource for both cloudscape and oracle.
It is somewhere in the server configuration tool, where you see the JNDI-bound data sources. If you are using the 'regular' DataSource and not the XA instance then you will see this behaviour irrespective of transaction rollback.
Hope that helps,
Guy
www.atomikos.com -
Cloudscape pb with Commerce Server
Hi,
I encounter the following problem when I use CommerceServer 2.0 with WL 5.1
sp1 and JDK1.3.0.
When I start the server (with StartCommerce.bat), the pool commercePool
can't be created :
Failure is "java.sql.SQLException: JDBCDriver is not registered with the
JDBC driver manager"
which is due to a
"LicenseBadInstallDate[0]/COM/cloudscape/info/license.properties"
I looked into the cloudscape license.properties in
WebLogic\eval\cloudscape\lib\clouscape.jar, and the eval expiration date is
Oct 01 2000
Are there any known issues ?
Thanks,
David BeaumontPlease post to:
weblogic.developer.interest.commerce
cheers
mbg
In article <[email protected]>, [email protected]
says...
Hi,
I encounter the following problem when I use CommerceServer 2.0 with WL 5.1
sp1 and JDK1.3.0.
When I start the server (with StartCommerce.bat), the pool commercePool
can't be created :
Failure is "java.sql.SQLException: JDBCDriver is not registered with the
JDBC driver manager"
which is due to a
"LicenseBadInstallDate[0]/COM/cloudscape/info/license.properties"
I looked into the cloudscape license.properties in
WebLogic\eval\cloudscape\lib\clouscape.jar, and the eval expiration date is
Oct 01 2000
Are there any known issues ?
Thanks,
David Beaumont
==================================================
NewsGroup Rant
==================================================
Rant 1.
The less info you provide about your problem means
the less we can help you. Try to look at the
problem from an external perspective and provide
all the data necessary to put your problem in
perspective.
Maybe you are looking for
-
After installation of latest Bridge and Photoshop version (2014.2.2) *.CR2 files will not be displayed correctly anymore, neither in preview nor in Camera Raw dialogue. Some pictures have white squares with blue and red diagonal stripes that cover al
-
Syncing contacts and calendar with outlook and gmail - use Exchange or not?
I need to sync my contacts and calendar between my iphone and Outlook and google on my laptop. Syncing via iTunes is fine as a backup but not as a constant process. I then saw that Gmail would permit an Exchange account to be used to allow immediate
-
Trying to debug cfc in flex project
I have cf builder as a plugin in flash builder I have a cfc in a flex project and when I try and add a cf debug config I get a message: Path for project must have only one segment. Any ideas friends
-
my iphone 4s gave me the screen it gives while shuting off the black screen with the loading circle randomly idk why this happened...
-
Hi, about chain & end chain
can any body tell me what is the exact purpose of chain & endchain. Can we use it in normal reports apart from dialog programing , give with one example if possible.