Comments (11)
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.
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.
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.
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.
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.
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.
META-INF/MANIFEST.MF
is inside the service.jar
, you have to unzip the JAR to see it
from ice-demos.
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.
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.
mine is coming from C:\Workspace\jdk-11.0.15.1\bin\java.exe
from ice-demos.
Can you try updating the application descriptor to use the full path for the jar files and the Java executable?
To
<service name="${name}" entry="C:\Users\jose\source\repos\3.7.8\ice-demosx\java\IceGrid\icebox\build\libs\service.jar:HelloServiceI">
To
<icebox id="IceBox" activation="on-demand" exe="C:\Program Files\Java\jdk-17.0.1\bin\java.exe">
And
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.
Glad it worked
from ice-demos.
Related Issues (20)
- ice can use js as server? HOT 1
- add_signal_hanlder not available on Windows HOT 1
- Counter demo on Python HOT 4
- Java/android/hello HOT 8
- When can ice communicate with flutter HOT 1
- Matlab Ice\throughput error
- Swift iOS demo crash showing alert HOT 2
- Avoid thrown exception type is not nothrow copy constructible [cert-err60-cpp] HOT 2
- "Dependency "MessageKit" has no shared framework schemes" Build error
- IceDiscovery helloUI demo inconsistently connecting with hello discovery server
- why www.zeroc.com can not open? HOT 2
- Under what circumstances is this setting required for compilation -- make CXXFLAGS=-std=c++11 HOT 1
- Java compat chat-demo failing to build with the updated gradle HOT 1
- Server demos should show recommended server shutdown
- Deprecation warnings with C# .NET 7
- Missing documentation for matlab filesystem example HOT 1
- Swift demo build failures HOT 1
- Remove evictor from readme
- Upgrade Ice/minimal examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ice-demos.