RomanHargrave / webscarab-ng

Automatically exported from code.google.com/p/webscarab-ng
0 stars 0 forks source link

Problem starting WebScarab-NG #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar WebScarab-ng-0.2.1.one-jar.jar
2.
3.

What is the expected output? What do you see instead?
Expected to see GUI interface

Saw:
Boot: Warning: Unable to locate main/main.jar in the JAR file 
WebScarab-ng-0.2.1.one-jar.jar
Jan 24, 2011 7:49:52 AM 
org.springframework.richclient.application.ApplicationLauncher 
loadStartupContext
INFO: Loading startup context from classpath resource 
[/ctx/ui/richclient-startup-context.xml]
Jan 24, 2011 7:49:52 AM 
org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing 
org.springframework.context.support.ClassPathXmlApplicationContext@1a5ab41: 
display name 
[org.springframework.context.support.ClassPathXmlApplicationContext@1a5ab41]; 
startup date [Mon Jan 24 07:49:52 CST 2011]; root of context hierarchy
Jan 24, 2011 7:49:52 AM 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource 
[ctx/ui/richclient-startup-context.xml]
Jan 24, 2011 7:49:52 AM 
org.springframework.context.support.AbstractApplicationContext 
obtainFreshBeanFactory
INFO: Bean factory for application context 
[org.springframework.context.support.ClassPathXmlApplicationContext@1a5ab41]: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@b5f53a
Jan 24, 2011 7:49:52 AM 
org.springframework.beans.factory.support.DefaultListableBeanFactory 
preInstantiateSingletons
INFO: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@b5f53a: 
defining beans [splashScreen]; root of factory hierarchy
java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
    at java.awt.Window.<init>(Window.java:437)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:174)
    at org.springframework.richclient.application.splash.AbstractSplashScreen.splash(AbstractSplashScreen.java:128)
    at org.springframework.richclient.application.ApplicationLauncher.displaySplashScreen(ApplicationLauncher.java:339)
    at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:155)
    at org.owasp.webscarab.WebScarab.main(WebScarab.java:41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.simontuffs.onejar.Boot.run(Boot.java:306)
    at com.simontuffs.onejar.Boot.main(Boot.java:159)

What version of the product are you using? On what operating system?
Using the one from the Google Download page for this project: 
    WebScarab-ng-0.2.1.one-jar.zip  WebScarab-Ng-0.2.1 (alpha)   Featured

OS is Ubuntu Desktop 10.4.1 LTS

Please provide any additional information below.

Original issue reported on code.google.com by steve.st...@gmail.com on 24 Jan 2011 at 2:04

GoogleCodeExporter commented 9 years ago
Hi Steve,
Thanks for your feedback:
Could you try:
java -Djava.awt.headless=true -jar WebScarab-ng-0.2.1.one-jar.jar
I think this is environment specific problem..

Original comment by brzozows...@gmail.com on 24 Jan 2011 at 9:54

GoogleCodeExporter commented 9 years ago
I'm having this same issue with Ubuntu 11.04 x64 using 
WebScarab-ng-0.2.1.one-jar.jar and webscarab-selfcontained-20070504-1631.jar.  
I'm guessing it has something to do with the Unity environment.  

I tried with -Djava.awt.headless=true

Boot: Warning: Unable to locate main/main.jar in the JAR file 
WebScarab-ng-0.2.1.one-jar.jar
Jun 14, 2011 8:07:58 PM 
org.springframework.richclient.application.ApplicationLauncher 
loadStartupContext
INFO: Loading startup context from classpath resource 
[/ctx/ui/richclient-startup-context.xml]
Jun 14, 2011 8:07:58 PM 
org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing 
org.springframework.context.support.ClassPathXmlApplicationContext@375e9756: 
display name 
[org.springframework.context.support.ClassPathXmlApplicationContext@375e9756]; 
startup date [Tue Jun 14 20:07:58 EDT 2011]; root of context hierarchy
Jun 14, 2011 8:07:58 PM 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource 
[ctx/ui/richclient-startup-context.xml]
Jun 14, 2011 8:07:58 PM 
org.springframework.context.support.AbstractApplicationContext 
obtainFreshBeanFactory
INFO: Bean factory for application context 
[org.springframework.context.support.ClassPathXmlApplicationContext@375e9756]: 
org.springframework.beans.factory.support.DefaultListableBeanFactory@ac44b88
Jun 14, 2011 8:07:58 PM 
org.springframework.beans.factory.support.DefaultListableBeanFactory 
preInstantiateSingletons
INFO: Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@ac44b88: 
defining beans [splashScreen]; root of factory hierarchy
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.simontuffs.onejar.Boot.run(Boot.java:306)
    at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: 
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1649)
    at java.lang.Runtime.load0(Runtime.java:787)
    at java.lang.System.load(System.java:1022)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1667)
    at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    at java.lang.System.loadLibrary(System.java:1047)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1614)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1636)
    at java.awt.Component.<clinit>(Component.java:582)
    at org.springframework.richclient.application.splash.AbstractSplashScreen.splash(AbstractSplashScreen.java:128)
    at org.springframework.richclient.application.ApplicationLauncher.displaySplashScreen(ApplicationLauncher.java:339)
    at org.springframework.richclient.application.ApplicationLauncher.<init>(ApplicationLauncher.java:155)
    at org.owasp.webscarab.WebScarab.main(WebScarab.java:41)
    ... 6 more

Original comment by matt.iav...@gmail.com on 15 Jun 2011 at 12:08

GoogleCodeExporter commented 9 years ago
Experiencing same behavior as Matt and Steve.

Running ubuntu-12.04-desktop-amd64

Original comment by redpar...@gmail.com on 3 Sep 2012 at 10:10

GoogleCodeExporter commented 9 years ago
Same issue running on OSX Mavericks

Original comment by JohnMull...@gmail.com on 25 Apr 2014 at 8:25