This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Error whiile using JBoss Tool with eclips Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error whiile using JBoss Tool with eclips" Watch "Error whiile using JBoss Tool with eclips" New topic
Author

Error whiile using JBoss Tool with eclips

kittu murthy
Greenhorn

Joined: Apr 27, 2011
Posts: 8
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

Joined: May 14, 2008
Posts: 5812
    
    7

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.


JBoss In Action
kittu murthy
Greenhorn

Joined: Apr 27, 2011
Posts: 8
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

Joined: Jul 20, 2005
Posts: 9930
    
159

Which version of JBoss Tools and which version of JBoss AS?

[My Blog] [JavaRanch Journal]
kittu murthy
Greenhorn

Joined: Apr 27, 2011
Posts: 8
Jboss tool:2.3
jboss AS:4.2
OS:windowsXP
Eclipse product version: 1.3.0
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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

Joined: Apr 27, 2011
Posts: 8
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

Joined: May 14, 2008
Posts: 5812
    
    7

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.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error whiile using JBoss Tool with eclips
 
Similar Threads
JDBC Eclipse mySQL
executable jar build by JBuilderX, NoClassDefFoundError!!
IllegalArgumentException with Ant
My applet is not being seen in its jar anymore. Please help!
Applet not loading due to IOException