Mantis - Resin
Viewing Issue Advanced Details
1301 minor always 08-21-06 11:05 11-20-06 10:19
ferg  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.0  
0001301: EJB compilation on windows
(rep by Steve Baugus)

Using this configuration for the EJB
 
<!-- Caucho Hession Protocol EJB Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>hessian</servlet-name>
        <url-pattern>/hessian/*</url-pattern>
    </servlet-mapping>
 
 
            <!-- Configure the Resin EJB server -->
            <ejb-server config-directory="WEB-INF"/>
 
            <!-- Configure Resin EJB JNDI lookup -->
            <jndi-link>
                <jndi-name>java:comp/env/ejb</jndi-name>
                <jndi-factory>com.caucho.hessian.HessianContextFactory</jndi-factory>
        <init-param>
           <param-name>java.naming.provider.url</param-name>
           <param-value>${app.url}/hessian</param-value>
        </init-param>
    </jndi-link>
 
Resin creates the following directory:
\WEB-INF\work\ejb\_ejb\CacheSession
This contains a single java file and several class files on windows.
On linux an additional directory is created.
\WEB-INF\work\ejb\_ejb\CacheSession
And
\WEB-INF\work\_ejb\CacheSession
 
The first directory above still contains the java file and the second directory contains the class files. What we are seeing on the linux boxes is that
Resin looks in the first directory for the class files does not find them and then throws an error saying the java file didn?t generate any class files.
 
Related to this, since introducing this single EJB we have to have a java compiler defined in in our apps.
 
 

Notes
(0001593)
ferg   
11-20-06 10:19   
ejb/0c40