Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andreas S
Pre Authorization (auth.pipeline.pre) and Glassfish lib/ext
December 11, 2012 4:22 AM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

I want to hook into the pre authorization. I have added everything necessary in portal-ext.properties. But when I add my CustomPreAuth jar in the glassfish lib/ext it says it can't find the liferay Authorization class when I try to login. On the other hand, If I add the liferay dependencies to the CustomPreAuth jar and start liferay, it starts with plenty of exceptions and I can't even enter the starting page. Any ideas?

Thank you.
Andreas S
RE: Pre Authorization (auth.pipeline.pre) and Glassfish lib/ext
December 12, 2012 3:21 AM
Answer

Andreas S

Rank: New Member

Posts: 20

Join Date: October 26, 2010

Recent Posts

I managed to add the portal-service jar correctly to my custom pre auth jar with JarClassLoader.

Still the same issue when I try it by logging in however:

1exception
2javax.servlet.ServletException: PWC1243: Filter execution threw an exception
3
4root cause
5java.lang.NoClassDefFoundError: com/liferay/portal/security/auth/Authenticator
6
7root cause
8java.lang.ClassNotFoundException: com.liferay.portal.security.auth.Authenticator


Anyone?