Skip to main content

problem installing security-session-auth

6 replies [Last post]
rlvjava
Offline
Joined: 2010-02-11
Points: 0

Hi,

I was able to sucessfully install and run wonderland. I then followed the instructions at http://wiki.java.net/bin/view/Javadesktop/ProjectWonderlandAuthentication05.

I've read some of the other reports of problems installing the security-session-auth module, but most people seem to get further than I do.

I selected the security-session-noauth module from the list and then chose "Removed selected modules". security-session-noauth disappears from the list.

Then I select "Install a New Module" and choose security-session-auth. It then ends up in the "Pending Modules" section. I've tried to make sure I picked up the right security module (currently running 0.5-dev 4353).

But when I try to restart the Darkstar Server, it never restarts. I get the following log file:

Log

Executing: [/home/rdps37/sun/jdk1.6.0_18/jre/bin/java, -cp, /root/.wonderland-server/0.5-dev/run/darkstar_server/run/lib/ant/ant-launcher.jar, -Dant.home=/root/.wonderland-server/0.5-dev/run/darkstar_server/run/lib/ant, org.apache.tools.ant.launch.Launcher, -Dsgs.services=:org.jdesktop.wonderland.modules.security.server.service.SecurityService:org.jdesktop.wonderland.modules.security.server.service.CellResourceService:com.sun.mpk20.voicelib.impl.service.voice.VoiceServiceImpl, -Dwonderland.web.server.url=http://myhost:8080/, -Dsgs.managers=:org.jdesktop.wonderland.modules.security.server.service.SecurityManagerImpl:org.jdesktop.wonderland.modules.security.server.service.CellResourceManagerImpl:com.sun.mpk20.voicelib.impl.app.VoiceManagerImpl, -Drunner.location=localhost, -Dsgs.port=1139, -Drunner.name=Darkstar Server, -Dsgs.wfs.root=worlds/orientationworld-wfs, -f, /root/.wonderland-server/0.5-dev/run/darkstar_server/run/run.xml]
Buildfile: /root/.wonderland-server/0.5-dev/run/darkstar_server/run/run.xml

-run-setup:

-run-coldstart:

-run-server:

-core-server-setup-bdb-platform:

-core-server-setup-assertions:

-core-server-setup-no-assertions:

-core-server-setup-debug:

-core-server-setup-classpath:

-core-setup-server:
[copy] Copying 1 file to /root/.wonderland-server/0.5-dev/run/darkstar_server/run/core/data/sgs

core-run-server:
[java] Feb 11, 2010 9:30:11 PM org.jdesktop.wonderland.server.auth.WebServiceAuthenticator
[java] INFO: Loading WebServie authenticator
[java] Feb 11, 2010 9:30:11 PM com.sun.sgs.impl.kernel.Kernel
[java] SEVERE: Failed on Kernel boot
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at com.sun.sgs.impl.kernel.Kernel.getAuthenticator(Kernel.java:787)
[java] at com.sun.sgs.impl.kernel.Kernel.(Kernel.java:278)
[java] at com.sun.sgs.impl.kernel.Kernel.main(Kernel.java:1147)
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.getAuthenticationService(ServerAuthentication.java:60)
[java] at org.jdesktop.wonderland.server.auth.WebServiceAuthenticator.(WebServiceAuthenticator.java:52)
[java] ... 7 more
[java] Caused by: java.lang.IllegalStateException: Error authenticating Darkstar server
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.(ServerAuthentication.java:87)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication$SingletonHolder.(ServerAuthentication.java:149)
[java] ... 9 more
[java] Caused by: org.jdesktop.wonderland.common.login.AuthenticationException
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:163)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.(AuthenticationServiceImpl.java:55)
[java] at org.jdesktop.wonderland.common.login.AuthenticationManager.login(AuthenticationManager.java:81)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.noAuthLogin(ServerAuthentication.java:114)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.(ServerAuthentication.java:82)
[java] ... 10 more
[java] Caused by: java.io.FileNotFoundException: http://myhost:8080/security-session-noauth/security-session-noauth/ident...
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1368)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1362)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1016)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:153)
[java] ... 14 more
[java] Caused by: java.io.FileNotFoundException: http://myhost:8080/security-session-noauth/security-session-noauth/ident...
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
[java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:150)
[java] ... 14 more
[java] Exception in thread "main" java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at com.sun.sgs.impl.kernel.Kernel.getAuthenticator(Kernel.java:787)
[java] at com.sun.sgs.impl.kernel.Kernel.(Kernel.java:278)
[java] at com.sun.sgs.impl.kernel.Kernel.main(Kernel.java:1147)
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.getAuthenticationService(ServerAuthentication.java:60)
[java] at org.jdesktop.wonderland.server.auth.WebServiceAuthenticator.(WebServiceAuthenticator.java:52)
[java] ... 7 more
[java] Caused by: java.lang.IllegalStateException: Error authenticating Darkstar server
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.(ServerAuthentication.java:87)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication$SingletonHolder.(ServerAuthentication.java:149)
[java] ... 9 more
[java] Caused by: org.jdesktop.wonderland.common.login.AuthenticationException
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:163)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.(AuthenticationServiceImpl.java:55)
[java] at org.jdesktop.wonderland.common.login.AuthenticationManager.login(AuthenticationManager.java:81)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.noAuthLogin(ServerAuthentication.java:114)
[java] at org.jdesktop.wonderland.server.auth.ServerAuthentication.(ServerAuthentication.java:82)
[java] ... 10 more
[java] Caused by: java.io.FileNotFoundException: http://myhost:8080/security-session-noauth/security-session-noauth/ident...
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1368)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1362)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1016)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:153)
[java] ... 14 more
[java] Caused by: java.io.FileNotFoundException: http://myhost:8080/security-session-noauth/security-session-noauth/ident...
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
[java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
[java] at org.jdesktop.wonderland.common.login.AuthenticationServiceImpl.getCookieName(AuthenticationServiceImpl.java:150)
[java] ... 14 more
[java] Java Result: 1

run:

BUILD SUCCESSFUL
Total time: 15 seconds
Process exitted, return value: 0

Can someone please help me get past this?

Thanks,
-rlvjava

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jmbutra
Offline
Joined: 2010-01-27
Points: 0

hi,

What is the "pending" subdirectory for security-session-auth and the "installed" directory ?

thank you.
jmbutra

micheldenis
Offline
Joined: 2007-12-10
Points: 0

jmbutra,

All modules installed in the run-time system are there:
~/.wonderland-server/0.5-dev/run/content/modules/installed

Pending modules are in: ~/.wonderland-server/0.5-dev/run/content/modules/pending
-michel

cstathok
Offline
Joined: 2009-01-17
Points: 0

Hi rlvjava,
I had a similar issue and what I needed to do to get it working was manually copy the "pending" subdirectory for security-session-auth to the "installed" directory and restart. I also followed the instructions at http://wiki.java.net/bin/view/Javadesktop/ProjectWonderlandAuthentication05 but the pending module issue was my main problem.

Hope this helps.
-C

kaplanj
Offline
Joined: 2004-07-13
Points: 0

From the Darkstar command line, it doesn't look like the sgs.password.file is set in the web UI. Make sure you click "edit" next to the "Darkstar Server" and add the sgs.password.file property as described in the tutorial. Also, due to a bug, make sure if you are running from a binary .jar file, the jar is named "Wonderland.jar" and has not been renamed.

rlvjava
Offline
Joined: 2010-02-11
Points: 0

I appreciate the reply, but that's not quite it.

I've tried to follow the tutorial step by step, but am still stuck at the step of installing the security-session-auth module. This is immediately after unininstalling security-session-noauth and before the step in the tutorial about logging in as admin.

There's no mention of passwords at that point in the tutorial. I can't even get the module to install. It remains in the pending module category.

Now I did find a clue in the requires.xml file for security-session-auth.




security-groups

1
0



security

1
0


How can it require version 1.0 of these modules when they are both at 0.5?

kaplanj
Offline
Joined: 2004-07-13
Points: 0

Maybe it's a version issue -- if you are using the latest trunk of Wonderland, you need to use an updated version of the security-session-auth module. If you are building from source, make sure that you are using wonderland trunk rev 4329 or later and wonderland-modules rev 1454 or later. If you are using binaries, please note the instructions for getting the right version on the module warehouse.