Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error whiile using JBoss Tool with eclips

 
kittu murthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting following error when I start the jboss server using "jboss tool" plugin in eclipse.

java.lang.UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
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)
Exception in thread "main"


How to get ride of this error

Thanks in advance.

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What operating system are you running on? The JVM needs to access a function in a native library to access the zip file, and it cannot find the library or the entry point. On Windows, the library is zip.dll in the bin directory.
 
kittu murthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Peter Johnson,

I am using windows and copied zip.dll file to C:\Program Files\Java\jdk1.6.0_21\bin from jre folder still am getting the same error.

Can you explain me more ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JBoss Tools and which version of JBoss AS?
 
kittu murthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jboss tool:2.3
jboss AS:4.2
OS:windowsXP
Eclipse product version: 1.3.0
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First let's get this running outside of Eclipse. So exit Eclipse, open a Command Prompt, cd to the jboss_home/bin directory and run: run.bat
If that still has problems, post the console output, starting with the run.bat command you entered.
If that works, let me know.
 
kittu murthy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cd to the jboss_home/bin directory and run: run.bat is working fine there are no errors.

But when I start the jboss server using Jboss tool plugin within the eclipse it is giving the error.

Why I am using JBoss Tool is to deploy a single java file without manually compiling whole project and start the jboss server again when there are any changes i that file.

is there are any other plugins which does the same ?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the JBoss Tools documentation? It has several helpful tutorials. (Based on your other post where you have a .java file in the deploy directory, I suspect that you are doing some very fundamentally wrong. I have no idea of how to convince JBoss Tools to do what you made it do. Spend some time working through the some of the tutorials in the documentation and after that try again what you are attempting to do.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic