Hi,
The lookup issue is resolved.
You can add the following command to the
setDomainEnv.cmd file if you are using Weblogic 9.2
set
JAVA_OPTIONS=%JAVA_OPTIONS%-Djava.security.auth.login.config=DOMAIN_HOME/config/JSPWiki.jaas
where the original line is
JAVA_OPTIONS=%JAVA_OPTIONS%
It should load up the file.
If you use MyEclipse, you can also give the jass file
in the start up parameters in Prooperties. It allows
you to select the file.
However there are some other issues when you run this
in Weblogic :
a) Line 53 has a single backslash instead of two.
Weblogic will give parse error.
Change this to two slashes instead of one.
b) Line 82, I am still getting an error when it loads
the file.
JSPWiki-container {
com.ecyrd.jspwiki.auth.login.WebContainerLoginModule
SUFFICIENT;
com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule
SUFFICIENT;
com.ecyrd.jspwiki.auth.login.AnonymousLoginModule
SUFFICIENT;
};
The error which shows up now is
java.security.auth.policy: error parsing
file:C:/bea/user_projects/domains/pas_dev_domain/config/jaasconfig.jaas
java.security.auth.policy: line 82: expected ';',
found 'JSPWiki'
I am not sure why this is an error ?
Any ideas.
Thanks.
--- Andrew Jaquith <[EMAIL PROTECTED]> wrote:
> check --
>
> JSPWiki uses JAAS to configure its authentication
> process. Weblogic
> apparently also uses JAAS too, so it is managing the
> login
> configuration on behalf of the whole container. That
> configuration
> knows nothing about JSPWiki, hence its complaint.
>
> What you need to do is figure out where Weblogic
> stores its JAAS
> configuration, then append the contents of
> WEB-INF/jspwiki.jaas to
> it. That should enable WebLogic to find the
> 'JSPWiki-container' JAAS
> config.
>
> After you've done that, could you please mark up the
> official
> documentation page with details about what you did?
> We've got notes
> for most of the containers in there, but WebLogic
> isn't one of them.
>
>
http://doc.jspwiki.org/2.4/wiki/InstallingJSPWiki#section-
>
> InstallingJSPWiki-ContainerNotes
>
> Let me know how it goes.
>
> Best regards,
>
> Andrew
>
> On Feb 22, 2007, at 1:36 AM, check this wrote:
>
> > Hi,
> >
> > I am getting this error when I try to run JSPWiki
> in
> > Weblogic 9.2.
> > All ideas are appreciated.
> >
> > java.lang.IllegalArgumentException: No
> Configuration
> > was registered that can handle the configuration
> named
> > JSPWiki-container
> > at
> >
>
com.bea.common.security.jdkutils.JAASConfiguration.getAppConfiguration
>
> > Entry(JAASConfiguration.java:54)
> > at
> >
>
javax.security.auth.login.LoginContext.init(LoginContext.java:243)
> > at
> >
>
javax.security.auth.login.LoginContext.(LoginContext.java:367)
> > at
> >
>
javax.security.auth.login.LoginContext.(LoginContext.java:444)
> > at
> >
>
com.ecyrd.jspwiki.WikiSession.getLoginContext(WikiSession.java:246)
> > at
> > com.ecyrd.jspwiki.auth.AuthenticationManager$2.run
>
> > (AuthenticationManager.java:401)
> > at
> java.security.AccessController.doPrivileged(Native
> > Method)
> > at
> >
> com.ecyrd.jspwiki.auth.AuthenticationManager.doLogin
>
> > (AuthenticationManager.java:396)
> > at
> > com.ecyrd.jspwiki.auth.AuthenticationManager.login
>
> > (AuthenticationManager.java:246)
> > at
> >
> com.ecyrd.jspwiki.WikiContext.(WikiContext.java:256)
> > at
> >
>
com.ecyrd.jspwiki.WikiEngine.createContext(WikiEngine.java:1922)
> > at
> jsp_servlet.__wiki._jspService(__wiki.java:106)
> > at
> >
>
weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
> > at
> > weblogic.servlet.internal.StubSecurityHelper
> >
>
$ServletServiceAction.run(StubSecurityHelper.java:225)
> > at
> >
>
weblogic.servlet.internal.StubSecurityHelper.invokeServlet
>
> > (StubSecurityHelper.java:127)
> > at
> > weblogic.servlet.internal.ServletStubImpl.execute
> > (ServletStubImpl.java:283)
> > at
> >
>
weblogic.servlet.internal.ServletStubImpl.onAddToMapException
>
> > (ServletStubImpl.java:391)
> > at
> > weblogic.servlet.internal.ServletStubImpl.execute
> > (ServletStubImpl.java:309)
> > at
> >
>
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
> > at
> > weblogic.servlet.internal.FilterChainImpl.doFilter
>
> > (FilterChainImpl.java:42)
> > at
> > com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter
> > (WikiServletFilter.java:99)
> > at
> >
>
com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
> > at
> > weblogic.servlet.internal.FilterChainImpl.doFilter
>
> > (FilterChainImpl.java:42)
> > at
> > weblogic.servlet.internal.WebAppServletContext
> >
>
$ServletInvocationAction.run(WebAppServletContext.java:3212)
> > at
> >
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs
>
> > (AuthenticatedSubject.java:321)
> > at
> > weblogic.security.service.SecurityManager.runAs
> > (SecurityManager.java:121)
> > at
> >
>
weblogic.servlet.internal.WebAppServletContext.securedExecute
>
> > (WebAppServletContext.java:1983)
> > at
> >
>
weblogic.servlet.internal.WebAppServletContext.execute
>
> > (WebAppServletContext.java:1890)
> > at
> > weblogic.servlet.internal.ServletRequestImpl.run
> > (ServletRequestImpl.java:1344)
> > at
> >
>
weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> > at
> >
>
weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
> >
> >
> >
> >
> >
> >
> >
>
______________________________________________________________________
>
> > ______________
> > We won't tell. Get more on shows you hate to love
> > (and love to hate): Yahoo! TV's Guilty Pleasures
> list.
> > http://tv.yahoo.com/collections/265
> > _______________________________________________
> > Jspwiki-users mailing list
> > [email protected]
> >
>
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>
> _______________________________________________
> Jspwiki-users mailing list
> [email protected]
>
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
Jspwiki-users mailing list
[email protected]
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users