java - JSF / Spring Security : view wrapper generates LinkageError -


i'm having issue jsf rendering. here's setup:

  • centos
  • tomee plus 1.5.2
  • icefaces
  • spring security 3

and app set this:

  • /opt/tomee/lib/[all normal tomee jars]
  • /opt/tomee/lib/[all spring security jars]
  • /opt/tomee/lib/icefaces.jar
  • /opt/tomee/lib/icefaces-compat.jar
  • /opt/tomee/lib/icepush.jar
  • /opt/tomee/webapps/ui/index.xhtml
  • /opt/tomee/webapps/ui/web-inf/lib/icefaces-ace.jar
  • /opt/tomee/webapps/ui/[normal jsf 2 configuration]

there isn't obvious in logs when jsf attempts render following error:

 com/sun/crypto/provider/hmaccore  viewid=/index.xhtml location=/opt/tomee/webapps/ui/index.xhtml phaseid=render_response(6)  caused by: java.lang.linkageerror - com/sun/crypto/provider/hmaccore @ com.sun.crypto.provider.hmacsha1.(dasha13*..) 

the stack trace on error page massive, i'm not going dump novel here, here calls of note.

 java.lang.linkageerror: com/sun/crypto/provider/hmaccore  @ com.sun.crypto.provider.hmacsha1.(dasha13*..) {...} @ java.security.provider$service.newinstance(provider.java:1221) {...} @ org.apache.myfaces.shared.util.stateutils.encrypt(stateutils.java:328) {...} @ org.icefaces.impl.renderkit.renderwrapper.encodeend(renderwrapper.java:53) {...} @ org.springframework.security.web.filterchainproxy$virtualfilterchain.dofilter(filterchainproxy.java:311)

i dumped contents of jars in tomee/lib com.sun.crypto isn't anywhere can find in web server. apps don't use spring security work fine.

any thoughts?

ok. got work i'm going 'that guy' , answer own question. hope helps save else migraine gave me. problem went away after did following:

  1. delete war
  2. let tomcat clean webapps dir
  3. stop tomcat
  4. delete related directories work
  5. add spring security taglibs jar app
  6. remove encoder declaration applicationsecurity.xml
  7. rebuild app
  8. start tomcat
  9. redeploy
  10. drink heavily
  11. profit

step 10 wasn't part of debugging process wouldn't have complained if was. share , enjoy.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -