For this part of our walk through we will need to COPY some content from our JSPWiki folder to the config directory of our Glassfish Installation.
Navigate into our working JSPWiki WEB-INF folder and leave it open.
- jspwiki-2.4.100-bin\JSPWiki\JSPWiki\WEB-INF
Navigate into the domain config folder of our Glassfish install and leave it open.
- C:\java\glassfish-v2-b33e\domains\domain1\config
Key File
-
COPY the jspwiki.jks file to C:\java\glassfish-v2-b33e\domains\domain1\config
Login File
Append the entire contents of jspwiki.jaas to login.conf
-
In the WEB-INF folder
-
OPEN the jspwiki.jaas file.
-
Select All and Copy
-
-
Open the folder C:\java\glassfish-v2-b33e\domains\domain1\config
-
OPEN the file login.conf
-
PASTE the entire contents of what you copied from the jspwiki.jaas file to the very end of this file.
-
Save and Close the login.conf file
-
Policy File
Append the contents of jspwiki.policy to server.policy
-
In the WEB-INF folder
-
OPEN the jspwiki.policy file.
-
Select All and Copy
-
-
Open the folder C:\java\glassfish-v2-b33e\domains\domain1\config
-
OPEN the file server.policy file
-
PASTE the entire contents of what you copied from the jspwiki.policy file to the very end of this file.
-
Save and Close the server.policy file
-
Note: In the JSPWiki jspwiki.properties file there seem to be configuration entries that would let one point to the location of the jspwiki.policy and jspwiki.jaas files. I had hoped to just copy these 2 files under C:\java\jspwiki\security and then set the appropriate variable values, but I could not get this to work. If anyone could shed some light I’d appreciate it and will post your insights here. Or better yet just leave a comment below.
Hello; this most excellent instruction guide did not work for me. Having followed it to the letter, my Glassfish rejects login attempts.>>Going to the JSPWiki/admin/SecurityConfig.jsp page reports that everything is in working order.>>Oh well; thanks for the methodical instructions–I think the boys over at JSPWiki have a lot more work to do.
LikeLike
Hi Laird:>>The JSPWiki guys are probably the best source but I’d be willing to give you hand if you’d like. Any chance of posting some of your JSPWiki logs? Maybe something will jump out at me that you can use to get you back on track?>>Dennis
LikeLike
I agree that this is an excellent instruction guide. I am trying to address similar collaboration problems where I work.>>I was hoping to find an answer to my issue with login attempts to. I would agree that JSPWiki maintainers have more work to do. I cannot get past the initial login screen either.>>I am not using your database back end. I am simply trying to run JSPWiki on a Linux server with Glassfish running.>>I will continue to search the web, but it seems that most other people are not having these same problems, only for laird and me.>>I went ahead and created a small java project and deployed it on Glassfish just to make sure it was working properly. Everything is fine so I’m inclined to blame the JSPWiki guys.
LikeLike