Giter Club home page Giter Club logo

Comments (11)

husseinsafa98 avatar husseinsafa98 commented on September 14, 2024 1

It worked when I changed it to closer directory for example in my C:\Workspace\ice-demos
Thank you for your help

from ice-demos.

pepone avatar pepone commented on September 14, 2024

Hi,

IceBox: error: main: ServiceManager: class HelloServiceI not found

This indicates that IceBox server is failing to start because it cannot find the HelloServiceI class, this class is included in the service.jar, can you check if the service.jar was built and have the expected contents, jar tvf build\libs\service.jar will show the contents of the Jar file.

IceGrid\icebox>jar tvf build\libs\service.jar
     0 Wed Nov 02 11:33:44 CET 2022 META-INF/
  1106 Wed Nov 02 11:33:44 CET 2022 META-INF/MANIFEST.MF
  2813 Wed Nov 02 11:33:44 CET 2022 Client.class
     0 Wed Nov 02 11:33:42 CET 2022 com/
     0 Wed Nov 02 11:33:42 CET 2022 com/zeroc/
     0 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/
     0 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/
     0 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/
     0 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/
   484 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/Hello$1.class
  3306 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/Hello.class
 10412 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/HelloPrx.class
   452 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/_HelloPrxI.class
   131 Wed Nov 02 11:33:42 CET 2022 com/zeroc/demos/IceGrid/icebox/Demo/_Marker.class
  1821 Wed Nov 02 11:33:44 CET 2022 HelloI.class
  1820 Wed Nov 02 11:33:44 CET 2022 HelloServiceI.class

from ice-demos.

husseinsafa98 avatar husseinsafa98 commented on September 14, 2024

Hey, thank you for your response it created the jar files, I'm attaching an image of my build\libs folder. I have also tried to repo the project again and build it, same error happens.

image

The following shows when I ran jar tvf build\libs\service.jar

     0 Tue Nov 01 19:17:58 EDT 2022 META-INF/
  1127 Tue Nov 01 18:07:32 EDT 2022 META-INF/MANIFEST.MF
  2813 Tue Nov 01 19:17:58 EDT 2022 Client.class
     0 Tue Nov 01 19:17:58 EDT 2022 com/
     0 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/
     0 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/
     0 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/
     0 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/
     0 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/
   484 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/Hello$1.class
  3306 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/Hello.class
 10412 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/HelloPrx.class
   452 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/_HelloPrxI.class
   131 Tue Nov 01 19:17:58 EDT 2022 com/zeroc/demos/IceGrid/icebox/Demo/_Marker.class
  1821 Tue Nov 01 19:17:58 EDT 2022 HelloI.class
  1820 Tue Nov 01 19:17:58 EDT 2022 HelloServiceI.class

from ice-demos.

pepone avatar pepone commented on September 14, 2024

Are you running icegridnode from the demo ice-demos/java/IceGrid/icebox directory?

Can you also post the contents of META-INF/MANIFEST.MF, just unzip the JAR file and post the contents of META-INF/MANIFEST.MF?

from ice-demos.

husseinsafa98 avatar husseinsafa98 commented on September 14, 2024

I am running the icegridnode from this ice-demos/java/IceGrid/icebox directory, i dont see META-INF/MANIFEST.MF i dont think it was created

from ice-demos.

pepone avatar pepone commented on September 14, 2024

META-INF/MANIFEST.MF is inside the service.jar, you have to unzip the JAR to see it

from ice-demos.

husseinsafa98 avatar husseinsafa98 commented on September 14, 2024

Thank you, I have just changed my name with a (userName) tag but that is what was in the MANIFEST.MF
Manifest-Version: 1.0
Main-Class: Service

Class-Path: file:/C:/Users/(userName)/.gradle/caches/modules-2/files-2.1/co
 m.zeroc/icegrid/3.7.8/2d34a19f53abf07504da362d61e7f8c8ab30d8a4/icegrid-
 3.7.8.jar file:/C:/Users/(userName)/.gradle/caches/modules-2/files-2.1/com
 .zeroc/icebox/3.7.8/da3ffa8c91527e528a5454e0c320ebfe8163fdb5/icebox-3.7
 .8.jar file:/C:/Users/(userName)/.gradle/caches/modules-2/files-2.1/com.ze
 roc/icessl/3.7.8/5ceb55e5b260411d2ac43b03cef209a4e4921fbf/icessl-3.7.8.
 jar file:/C:/Users/(userName)/.gradle/caches/modules-2/files-2.1/com.zeroc
 /icelocatordiscovery/3.7.8/c52b39096f9b7e3b75a426d77778880d5e600e07/ice
 locatordiscovery-3.7.8.jar file:/C:/Users/(userName)/.gradle/caches/module
 s-2/files-2.1/com.zeroc/glacier2/3.7.8/8e6d13975e19096455b433c51474c330
 6aedf8e7/glacier2-3.7.8.jar file:/C:/Users/(userName)/.gradle/caches/modul
 es-2/files-2.1/com.zeroc/ice/3.7.8/693567126c86914ea2d4812c107af3ae787d
 b46f/ice-3.7.8.jar file:/C:/Users/(userName)/.gradle/caches/modules-2/file
 s-2.1/org.apache.commons/commons-compress/1.14/7b18320d668ab080758bf538
 3d6d8fcf750babce/commons-compress-1.14.jar

from ice-demos.

pepone avatar pepone commented on September 14, 2024

Not clear what is going on, the manifest looks correct, and HelloServiceI class is in the JAR file. Wondering if IceGrid is not picking the correct Java version.

What is the output of where java?

from ice-demos.

husseinsafa98 avatar husseinsafa98 commented on September 14, 2024

mine is coming from C:\Workspace\jdk-11.0.15.1\bin\java.exe

from ice-demos.

pepone avatar pepone commented on September 14, 2024

Can you try updating the application descriptor to use the full path for the jar files and the Java executable?

<service name="${name}" entry="build/libs/service.jar:HelloServiceI">

To

<service name="${name}" entry="C:\Users\jose\source\repos\3.7.8\ice-demosx\java\IceGrid\icebox\build\libs\service.jar:HelloServiceI">

<icebox id="IceBox" activation="on-demand" exe="java">

To

<icebox id="IceBox" activation="on-demand" exe="C:\Program Files\Java\jdk-17.0.1\bin\java.exe">

And

<option>build/libs/iceboxserver.jar</option>

To

<option>C:\Users\jose\source\repos\3.7.8\ice-demos\java\IceGrid\icebox\build\libs\iceboxserver.jar</option>

Then update the application using the icegridadmin command

icegridadmin --Ice.Config=config.grid -e "application update application.xml"

from ice-demos.

pepone avatar pepone commented on September 14, 2024

Glad it worked

from ice-demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.