issue starting nexus on linux

View: New views
5 Messages — Rating Filter:   Alert me  

issue starting nexus on linux

by Shazia Bashir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
 
im a new user and really want to start using nexus in mye company.
 
ive downloaded nexus-webapp-1.3.4-bundle. I just tested and successfully started nexus on windows, but when i try to start it on linux, the startup fails, i find this in the logs:
 
STATUS | wrapper  | 2009/06/22 10:31:30 | Launching a JVM...
ERROR  | wrapper  | 2009/06/22 10:31:30 | JVM exited while loading the application.
INFO   | jvm 4    | 2009/06/22 10:31:30 | Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found.
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.addLoadFile(java.io.File) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) (Unknown Source)
i cant understand what the reason of error is. any help will be very appreciated. thanx.

Re: issue starting nexus on linux

by olivier nouguier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should try to use a sun jvm, instead of the default (gcj)

On Mon, Jun 22, 2009 at 10:47 AM, Shazia Bashir <bashir.shazia@...> wrote:
hi,
 
im a new user and really want to start using nexus in mye company.
 
ive downloaded nexus-webapp-1.3.4-bundle. I just tested and successfully started nexus on windows, but when i try to start it on linux, the startup fails, i find this in the logs:
 
STATUS | wrapper  | 2009/06/22 10:31:30 | Launching a JVM...
ERROR  | wrapper  | 2009/06/22 10:31:30 | JVM exited while loading the application.
INFO   | jvm 4    | 2009/06/22 10:31:30 | Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found.
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.addLoadFile(java.io.File) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) (Unknown Source)
i cant understand what the reason of error is. any help will be very appreciated. thanx.



--
   “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

   Sir Charles Anthony Richard Hoare

Re: issue starting nexus on linux

by Shazia Bashir :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi Olivier,
 
i edited the startup script nexus, and placed this line in the file:
JAVA_HOME="/opt/jdk1.5.0_11"
 
but it didnt help. is this the way to use a sun jvm ?


On Mon, Jun 22, 2009 at 10:56 AM, olivier nouguier <olivier.nouguier@...> wrote:
You should try to use a sun jvm, instead of the default (gcj)


On Mon, Jun 22, 2009 at 10:47 AM, Shazia Bashir <bashir.shazia@...> wrote:
hi,
 
im a new user and really want to start using nexus in mye company.
 
ive downloaded nexus-webapp-1.3.4-bundle. I just tested and successfully started nexus on windows, but when i try to start it on linux, the startup fails, i find this in the logs:
 
STATUS | wrapper  | 2009/06/22 10:31:30 | Launching a JVM...
ERROR  | wrapper  | 2009/06/22 10:31:30 | JVM exited while loading the application.
INFO   | jvm 4    | 2009/06/22 10:31:30 | Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found.
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.addLoadFile(java.io.File) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) (Unknown Source)
i cant understand what the reason of error is. any help will be very appreciated. thanx.



--
   “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

   Sir Charles Anthony Richard Hoare


Re: issue starting nexus on linux

by Tibor.Kiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What kind of Linux distribution you have?

For example. on a Ubuntu linux the Sun's Java SDK is available at /usr/lib/jvm/java-1.5.0-sun-1.5.0.16 or /usr/lib/jvm/java-6-sun-1.6.0.10 ... (it depends on the the version also).

Then set the $JAVA_HOME/bin to PATH and try to ask
java -version from the command line. There you can check the verion of Java you are using.

If does not work, then you have to deal with "alternatives".


On Mon, Jun 22, 2009 at 12:14 PM, Shazia Bashir <bashir.shazia@...> wrote:
hi Olivier,
 
i edited the startup script nexus, and placed this line in the file:
JAVA_HOME="/opt/jdk1.5.0_11"
 
but it didnt help. is this the way to use a sun jvm ?


On Mon, Jun 22, 2009 at 10:56 AM, olivier nouguier <olivier.nouguier@...> wrote:
You should try to use a sun jvm, instead of the default (gcj)


On Mon, Jun 22, 2009 at 10:47 AM, Shazia Bashir <bashir.shazia@...> wrote:
hi,
 
im a new user and really want to start using nexus in mye company.
 
ive downloaded nexus-webapp-1.3.4-bundle. I just tested and successfully started nexus on windows, but when i try to start it on linux, the startup fails, i find this in the logs:
 
STATUS | wrapper  | 2009/06/22 10:31:30 | Launching a JVM...
ERROR  | wrapper  | 2009/06/22 10:31:30 | JVM exited while loading the application.
INFO   | jvm 4    | 2009/06/22 10:31:30 | Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found.
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.addLoadFile(java.io.File) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) (Unknown Source)
i cant understand what the reason of error is. any help will be very appreciated. thanx.



--
   “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

   Sir Charles Anthony Richard Hoare



Re: issue starting nexus on linux

by alikhan1977 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

problem is resolved, thanx a lot, the solution was to change to java 1.5

On Mon, Jun 22, 2009 at 1:32 PM, Kiss Tibor <kiss.tibor@...> wrote:
What kind of Linux distribution you have?

For example. on a Ubuntu linux the Sun's Java SDK is available at /usr/lib/jvm/java-1.5.0-sun-1.5.0.16 or /usr/lib/jvm/java-6-sun-1.6.0.10 ... (it depends on the the version also).

Then set the $JAVA_HOME/bin to PATH and try to ask
java -version from the command line. There you can check the verion of Java you are using.

If does not work, then you have to deal with "alternatives".



On Mon, Jun 22, 2009 at 12:14 PM, Shazia Bashir <bashir.shazia@...> wrote:
hi Olivier,
 
i edited the startup script nexus, and placed this line in the file:
JAVA_HOME="/opt/jdk1.5.0_11"
 
but it didnt help. is this the way to use a sun jvm ?


On Mon, Jun 22, 2009 at 10:56 AM, olivier nouguier <olivier.nouguier@...> wrote:
You should try to use a sun jvm, instead of the default (gcj)


On Mon, Jun 22, 2009 at 10:47 AM, Shazia Bashir <bashir.shazia@...> wrote:
hi,
 
im a new user and really want to start using nexus in mye company.
 
ive downloaded nexus-webapp-1.3.4-bundle. I just tested and successfully started nexus on windows, but when i try to start it on linux, the startup fails, i find this in the logs:
 
STATUS | wrapper  | 2009/06/22 10:31:30 | Launching a JVM...
ERROR  | wrapper  | 2009/06/22 10:31:30 | JVM exited while loading the application.
INFO   | jvm 4    | 2009/06/22 10:31:30 | Exception in thread "main" java.lang.NoSuchMethodError: method java.io.File.toURI was not found.
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.addLoadFile(java.io.File) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Configurator.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.configure(java.io.InputStream) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2009/06/22 10:31:30 |    at org.codehaus.plexus.classworlds.launcher.Launcher.main(java.lang.String[]) (Unknown Source)
i cant understand what the reason of error is. any help will be very appreciated. thanx.



--
   “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

   Sir Charles Anthony Richard Hoare