cancel
Showing results for 
Search instead for 
Did you mean: 

Where can i get the org.h2.tools.server class

valarmathi
Champ in-the-making
Champ in-the-making
Hi,

I used to run the setup file from the command prompt.I'm using this command ant demo.start ,i got the H2 and tomcat server started message in the command prompt,but i can't get the url in the browser 

http://localhost:8080/activiti-explorer  -while using the url from the browser i got the error message like

"The requested resource (/activiti-explorer) is not available.".In the command prompt i got the error message like

D:\activiti-5.9\setup>ant demo.start
Buildfile: D:\activiti-5.9\setup\build.xml

demo.install:

internal.cfg.create:
     [copy] Copying 1 file to D:\activiti-5.9\setup\build\activiti-cfg
      [zip] Building zip: D:\activiti-5.9\setup\build\activiti-cfg.jar
     [echo] copying configuration to ../workspace/activiti-engine-examples/src/m
ain/config
    [unzip] Expanding: D:\activiti-5.9\setup\build\activiti-cfg.jar into D:\acti
viti-5.9\workspace\activiti-engine-examples\src\main\config

internal.classpath.libs:

internal.taskdef.launch:

h2.start:
     [echo] starting H2 database…
   [launch] launching cmd 'D:\activiti-5.9\apps\h2\h2.start.bat ' in dir 'D:\act
iviti-5.9\apps\h2'
  [launch] waiting for launch completion msg 'TCP server running on'…
   [launch]   java.lang.NoClassDefFoundError: org/h2/tools/Server
   [launch]   Caused by: java.lang.ClassNotFoundException: org.h2.tools.Server
   [launch]     at java.net.URLClassLoader$1.run(Unknown Source)
   [launch]     at java.security.AccessController.doPrivileged(Native Method)
   [launch]     at java.net.URLClassLoader.findClass(Unknown Source)
   [launch]     at java.lang.ClassLoader.loadClass(Unknown Source)
   [launch]     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   [launch]     at java.lang.ClassLoader.loadClass(Unknown Source)
   [launch]   Could not find the main class: org.h2.tools.Server.  Program will
exit.
   [launch]   Exception in thread "main"

   [launch] launched process completed
     [echo] H2 database started

tomcat.start:
   [launch] launching cmd 'D:\activiti-5.9\apps\apache-tomcat-6.0.32\bin\startup
.bat ' in dir 'D:\activiti-5.9\apps\apache-tomcat-6.0.32\bin'
   [launch] waiting for launch completion msg 'Using CLASSPATH:'…
   [launch]   D:\activiti-5.9\apps\apache-tomcat-6.0.32
   [launch]   Using CATALINA_BASE:   "D:\activiti-5.9\apps\apache-tomcat-6.0.32"

   [launch]   Using CATALINA_HOME:   "D:\activiti-5.9\apps\apache-tomcat-6.0.32"

   [launch]   Using CATALINA_TMPDIR: "D:\activiti-5.9\apps\apache-tomcat-6.0.32\
temp"
   [launch]   Using JRE_HOME:        "C:\Program Files\Java\jre6"
   [launch]   Using CLASSPATH:       "D:\activiti-5.9\apps\apache-tomcat-6.0.32\
bin\bootstrap.jar"

explorer.browser.open:

demo.start:

BUILD SUCCESSFUL
Total time: 6 seconds



Please help me out how can i use the org.h2.tools.server class.Is this a batch file or java class what it is .please explain this one.

Thanks,
Valarmathi P
14 REPLIES 14

valarmathi
Champ in-the-making
Champ in-the-making
Hi,

I need some clarification

while running the ant demo.start command in the prompt , these steps to follow.

ant demo.start

This ant script will execute following steps:

   1) (*) Build the webapps. All libraries are stored in ${actviti.home}/setup/files/dependencies/libs The webapps without the libs are stored in ${actviti.home}/setup/files/webapps. Building the webapps means that webapps are combined with the necessary libraries in ${actviti.home}/setup/build/webapps

    2) (*) Install the H2 in ${activiti.home}/apps/h2.

   3) Start the H2 database.

   4)  (*) Create the Activiti tables in the H2 database

  5)  (*) Insert the demo users and groups in the Activiti identity tables (see below)

   6)  (*) Deploy the example processes to the Activiti Engine DB

  7)  (*) Download Tomcat if not available in the ${downloads.dir}

  😎  (*) Install Tomcat in ${activiti.home}/apps/apache-tomcat-${tomcat.version}

   9)  (*) Create an Activiti configuration jar

  10)   (*) Deploy the REST interface webapp into tomcat

  11)   (*) Deploy the Activiti webapp into tomcat.

   12)  Start tomcat

In the 8th step ,my side downloads directory is created but its not extracted.So ,i copied the tomcat for the same version and put it into apps folder and then start the server but i cant get the activiti explorer,what i do.Is anything wrong from myside. Please tell me.

what can i do in the 9 to 12 steps.Please help me out for this.

Thanks,
Valarmathi P

jbarrez
Star Contributor
Star Contributor
I'm sorry, but I've really got no clue. The demo setup is mean to download and start up everything without any intervention. See http://www.jorambarrez.be/blog/2011/01/24/getting-started-with-activiti/

valarmathi
Champ in-the-making
Champ in-the-making
Hi,

Finally i got the activiti-explorer,having problem in my machine JVM.
Now i correct it.

Thanks a lot.

Thanks,

Valarmathi P

sheing3003
Champ in-the-making
Champ in-the-making
I'm also having the same error "Could not find the main class: org.h2.tools.Server"

trademak
Star Contributor
Star Contributor
Okay, and when do you get this error?