facebook

[Closed] Problems with Jboss 4.0.x and EJB 2.x

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #241607 Reply

    Marcos Sousa
    Member

    Hi,

    I have been a problem with jboss 4.0. When I execute my project at the first I recieve this message:

    
    org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: invalid entry size (expec
    ted 1939669000 but got 727 bytes)
        org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:105)
        org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:88)
        org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
        org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
        org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
        org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
        org.apache.jasper.compiler.Parser.parse(Parser.java:126)
        org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
        org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        br.com.rpm.rmc.seguranca.FiltroNTLM.doFilter(FiltroNTLM.java:50)
        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    
    

    After if I reaload any page of the module, I have sucess. But when I try to access my session beans I recieve this message:

    03:22:36,765 WARN  [RequestProcessor] Unhandled Exception thrown: class javax.naming.CommunicationEx
    ception
    03:22:36,765 ERROR [[action]] Servlet.service() for servlet action threw exception
    java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method)
        at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
        at java.net.DatagramSocket.receive(DatagramSocket.java:712)
        at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1086)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1223)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:351)
        at scs.actions.Lookup.lookupHome(Lookup.java:117)
        at scs.actions.Lookup.getAcessoHome(Lookup.java:70)
        at scs.actions.Lookup.getAcessoBean(Lookup.java:37)
        at scs.actions.LoginAction.logar(LoginAction.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
        at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252
    )
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at br.com.rpm.rmc.seguranca.FiltroNTLM.doFilter(FiltroNTLM.java:50)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202
    )
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202
    )
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
    
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol
    .java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)
    

    What happend? What I should to do?

    #241626 Reply

    Riyad Kalla
    Member

    What version of MyEclipse are you using? Also what Taglibs do you have in this project?

    #241637 Reply

    Marcos Sousa
    Member

    Hi,

    I am using Myeclipse 4.0.2GA. I have in my project the following taglibs:

    <taglib>
    <taglib-uri>struts/bean-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean-el.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>struts/utility</taglib-uri>
    <taglib-location>/WEB-INF/utility.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>struts/html-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>struts/logic-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic-el.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>jstl/c</taglib-uri>
    <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>

    <taglib>
    <taglib-uri>scs/app</taglib-uri>
    <taglib-location>/WEB-INF/scs-tags.tld</taglib-location>
    </taglib>

    scs-tags is a custom tag of my project. The content of scs-tags.tld is:

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
                               "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
        <tlibversion>1.0</tlibversion>
        <jspversion>1.1</jspversion>
        <shortname>scs</shortname>
        <uri></uri>
        <info>Tags da Aplicação SCS</info>
    
        <tag>
            <name>permissao</name>
            <tagclass>scs.taglibs.PermissoesTag</tagclass>
            <info>Tag de definição de acesso do usuário a uma função.</info>
    
            <attribute> 
                <name>onclick</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            
            <attribute> 
                <name>property</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
            <attribute>         
                <name>value</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            
            <attribute> 
                <name>styleClass</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            
            <attribute> 
                <name>oidFuncao</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
            <attribute> 
                <name>type</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
            <attribute> 
                <name>link</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
            <attribute> 
                <name>sourceImage</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
            <attribute> 
                <name>title</name>
                <required>false</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
    
        </tag>
    
    </taglib>

    Thanks.

    #241638 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Also tell us more about your project, what kind is it? Web project? Capabilities?

    #241653 Reply

    Marcos Sousa
    Member

    Hi again,

    Well, my project is a Entreprise Project(SCS). In this project have one web module using Struts framework (SCSWeb) and a j2ee module using EJB 2.x(SCSEJB). I think that the problem is in the webmodule. Because if I create another webmodule such as (SCSTest) and run the aplication, is perfect. But if the client is (SCSWeb) there is that problem. My jsp function perfect after first request. Because the first request I recieve the erro message: Unable to initialize TldLocationsCache…..

    #241660 Reply

    Riyad Kalla
    Member

    Very strange,
    Let’s try this, remove your web module from your EAR project. Create a new SCSWebNEW. Now add the appropriate capabilities to it to match the old one, and copy over all your web resources (be careful not to overwrite the new JARs with the old ones, just incase that’s the issue). Now add SCSWebNEW as a module to your EAR and deploy it, does that work?

    #241668 Reply

    Marcos Sousa
    Member

    Hello,

    That’s it man! My problem was solved!

    gooooooooood!

    😀 😀 😀 😀 😀 😀 😀

    #241669 Reply

    Riyad Kalla
    Member

    I’m glad to hear it is fixed.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] Problems with Jboss 4.0.x and EJB 2.x

You must be logged in to post in the forum log in