2 Replies Latest reply: Dec 20, 2011 12:20 PM by Sandeep Dixit RSS

Tld not found in jboss 6

krikor kherberian Newbie

Hi, I had an application working in jboss 5. But in jboss 6 i encountered errors. I changed my spring libraries into newest spring libraries online, it fixed some issues. However, now I have problem with tld's not found.

 

In JbOSS 5 I didnt have this issue, I wrote  tld folder in same level of web-inf,  not inside it.  When I reference to it on top of jsp page , it finds it in JBOSS 5  ( <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> ) . Howevr in Jboss 6, page crashes when i open it, saying tld not found.

 

When I changed this <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> into  <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> the page worked again. How can I solve this issue, and make tld's be found.

  • 1. Re: Tld not found in jboss 6
    krikor kherberian Newbie

    btw, spring libraries that caused to me errors because of org/jboss/virtual/vfs. If I revert back to my old spring libraries 3.0.1 , and download from this page http://www.jboss.org/snowdrop/downloads Jboss spring deployers 3  ( I put this folder under Jboss 6.0 final/server/default/deployers), and if I download the file with dependancies and put the three jars in my application under web-inf/lib. Plus I edited my web.xml and added this

     

    <context-param>

    <param-name>contextClass</param-name>

    <param-value>

    org.jboss.spring.vfs.context.VFSXmlWebApplicationContext

    </param-value>

    </context-param>

     

    <init-param>

    <param-name>contextClass</param-name>

    <param-value>

    org.jboss.spring.vfs.context.VFSXmlWebApplicationContext

    </param-value>

    </init-param>

     

     

     

    I get following error

     

    ERROR [AbstractKernelController] Error installing to PreInstall: name=SpringParserDeployer state=Real: java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFile

     

    Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VirtualFile


  • 2. Re: Tld not found in jboss 6
    Sandeep Dixit Newbie

    How did you fix this? I am having same issue.

     

    Sandeep