Weblogic#


Weblogic 9.2#

Here are my instructions for getting JSWPWiki 2.4.91 working with Weblogic9.2:
1. Edit WEB-INF/jspwiki.properties as appropriate.

2.  Append contents of WEB-INF/jspwiki.policy to
.../weblogic92/server/lib/weblogic.policy
and then modify the grant commands to use grant codebase instead of grant signedBy,
with the full path to your wiki directory.
e.g. (For my setup where my WL domain is called WIKI and my wiki files reside under my WL domain dir):
grant codeBase "file:${/}usr${/}bea${/}domains${/}WIKI/-" {
    permission java.security.SecurityPermission "getPolicy";
    etc.
};

3. cp jspwiki.jks into the same place as the policy file.

4. cp WEB-INF/jspwiki.jaas into somewhere your scripts can see it:
e.g. cp WEB-INF/jspwiki.jaas /usr/bea/domains/WIKI

5. Edit startWebLogic.sh
Change the command line which starts the server to include the location of your jspwiki.jass file,
e.g.
-Djava.security.auth.login.config=/usr/bea/domains/WIKI/jspwiki.jaas

6. InfoContent.jsp line 41 needs to be corrected to read
<wiki:TabbedSection defaultTab='<%=request.getParameter("tab")%>'>

-- tewr 26-Feb-2007.


Something similar in /templates/brushed/Favorites.jsp

Change

 <wiki:Calendar pageformat="<%="\'"+pagename+"_blogentry_'ddMMyy'_1'"%>"
       urlformat="'Wiki.jsp?page=%p&weblog.startDate='ddMMyy'&weblog.days=1'"  
       monthurlformat="'Wiki.jsp?page=%p&weblog.startDate='ddMMyy'&weblog.days=%d'" />
to
<wiki:Calendar pageformat="'<%= pagename + \"_blogentry_'ddMMyy'_1\"%>'"
       urlformat="'Wiki.jsp?page=%p&weblog.startDate='ddMMyy'&weblog.days=1'"  
       monthurlformat="'Wiki.jsp?page=%p&weblog.startDate='ddMMyy'&weblog.days=%d'" />
to solve the exception on the Main page (BEA WLS10)
Error Message 
javax.servlet.jsp.JspException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /templates/brushed/Favorites.jsp Favorites.jsp:53:38: This attribute is not recognized. " ^------^ Favorites.jsp:53:48: This attribute is not recognized. " ^---------^ Favorites.jsp:53:60: This attribute is not recognized. " ^----^ Favorites.jsp:53:67: This attribute is not recognized. " ^^ 
Exception 
javax.servlet.jsp.JspException 
Place where detected 
com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(), line 90 

-- RealGagnon apr 2007


I am unable to run JSP Wiki 2.4.91 on Weblogic 9.2, I am getting this error when I try to run the application:

java.lang.IllegalArgumentException: No Configuration was registered that can handle the configuration named JSPWiki-container
	at com.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationEntry(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)
--java4yogi, 22-Feb-2007

I was able to get the lookup resolved for the JAAS file in Weblogic. Sent the changes needed in the users mailing list for the same.

However, now when the JAAS file is loaded, I am getting another error.

It is not able to parse the jaas config file and gives an error.

Found JSPWiki expected ;

Are there any specific changes needed to get JAAS working on Weblogic or anyway JSPWiki can work without JAAS mechanism.

Thanks for all the info.

--java4yogi, 24-Feb-2007


This is the exact error which I get

<Feb 23, 2007 5:12:15 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<Feb 23, 2007 5:12:15 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
java.security.policy: error parsing file:/C:/bea/user_projects/domains/pas_dev_domain/config/jaas.config:
	line 1: expected [;], found [JSPWiki]

This is the code in the jaas.config file

JSPWiki-container {
   com.ecyrd.jspwiki.auth.login.WebContainerLoginModule required;
  //com.ecyrd.jspwiki.auth.login.WebContainerLoginModule    SUFFICIENT;
  //com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule SUFFICIENT;
  //com.ecyrd.jspwiki.auth.login.AnonymousLoginModule       SUFFICIENT;
};
Thanks, --AnonymousCoward, 24-Feb-2007

Old WebLogic Discussion - Old discussions about running old versions of JSPWiki on WebLogic.


Hi,

I don't know if this will help, but you might want to try removing the commented-out login modules inside the JSPWiki-container block. You can also try writing a sample application that attempts to load the login configuration manually.

import javax.security.auth.login.Configuration;
...
Configuration config = Configuration.getConfiguration();

You'll need to set the system property for the JAAS login configuration before starting the JVM that runs the program (that is, setting the flag -Djava.security.auth.login.config==/path-to/sample.jaas.config. If this program executes without throwing an exception, it means that JAAS thinks your file looks fine, which means the problem is with WebLogic.

One more thing. Your file omits something very important. You must include the line

com.ecyrd.jspwiki.auth.login.AnonymousLoginModule       SUFFICIENT;
JSPWiki will not run reliably without it. You should change the WebContainerLoginModule's value to REQUIRED, and it should be capitalized.

--AndrewJaquith, 28-Feb-2007


I was not able to install JSPWiki 2.4.104 in WeblogicPortal 8.1 If anybody is succesfull in installing can you please brief me the steps.

--WikiPort, 07-Dec-2007

I've Gotten as for as installing JSPWiki on Weblogic 9.2 MP2 Server. I think it's a BEA issue. It seems it's ignoring jspwiki.jass. I've inserted the following line in startWeblogic.sh: "-Djava.security.auth.login.config=<path-to-jspwiki.jaas>" And in looking in the logs I get: 2007-12-19 11:53:06,718 [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel .Default (self-tuning)'] INFO com.ecyrd.jspwiki.auth.AuthenticationManager - JA AS already configured by some other application (leaving it alone...) The only thing that makes be believe this is a BEA issue is it seems to work with Tomcat6.

--RizzMattiz 18-Dec-2007


hai.. To deliver a wide range of portals to their business, enterprises can rely on BEA WebLogic Portal to simplify the production and management of custom service-oriented portals.we can get similer type of essays related to weblogic on various essay writing conpany http://essayacademia.com/custom_essay_writing.php

--phabro, 2009-09-28

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-61) was last changed on 13-Aug-2010 10:49 by miguelcarte