Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    error when trying serverScript

    SmartClient Version: v9.0p_2013-10-16/EVAL Deployment

    this is the first time that I try a serverScript. I copied the serverScript from your #FSscriptingUserSpecificData sample.
    My datasource is as simple as that:
    Code:
    <DataSource
                ID="JPC_LISTINI_BASE"
                tableName="JPC_LISTINI"
                schema="DBSALES"
                dbName="dbJpcEP"
                serverType="sql"
                dropExtraFields="false"
            >
        <script language="java" >
            String sessionId = session.getId();
    
                   if (DataSource.isAdd(dsRequest.getOperationType())) {
                       dsRequest.setFieldValue("DESCRIZIONE", "pippo");
                   } else {
                       dsRequest.setCriteriaValue("DESCRIZIONE", "pluto");
                   }
    
                   return dsRequest.execute();
        </script>
    	<fields>
            <field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true">
                <sequenceName>SEQUENCE_ID_REC</sequenceName>
            </field>
            <field sqlType="varchar" sqlLength="200" name="DESCRIZIONE" length="200" type="text">
            </field>
    	</fields>
    </DataSource>
    a JPC_LISTINI_BASE.fetchData() raises this error:
    Code:
    2013-10-24 18:20:20,670 INFO  DefaultServicesManagerImpl Reloading registered services. 
    2013-10-24 18:20:20,670 DEBUG JpaTemplate Creating new EntityManager for JpaTemplate execution 
    2013-10-24 18:20:20,671 DEBUG SQL select registered0_.id as id0_, registered0_.allowedToProxy as allowedT2_0_, registered0_.anonymousAccess as anonymou3_0_, registered0_.description as descript4_0_, registered0_.enabled as enabled0_, registered0_.evaluation_order as evaluation6_0_, registered0_.ignoreAttributes as ignoreAt7_0_, registered0_.name as name0_, registered0_.serviceId as serviceId0_, registered0_.ssoEnabled as ssoEnabled0_, registered0_.theme as theme0_ from RegisteredServiceImpl registered0_ 
    Hibernate: select registered0_.id as id0_, registered0_.allowedToProxy as allowedT2_0_, registered0_.anonymousAccess as anonymou3_0_, registered0_.description as descript4_0_, registered0_.enabled as enabled0_, registered0_.evaluation_order as evaluation6_0_, registered0_.ignoreAttributes as ignoreAt7_0_, registered0_.name as name0_, registered0_.serviceId as serviceId0_, registered0_.ssoEnabled as ssoEnabled0_, registered0_.theme as theme0_ from RegisteredServiceImpl registered0_
    2013-10-24 18:20:20,675 DEBUG JpaTemplate Closing new EntityManager after JPA template execution 
    2013-10-24 18:20:20,675 DEBUG EntityManagerFactoryUtils Closing JPA EntityManager 
    2013-10-24 18:20:20,676 INFO  DefaultServicesManagerImpl Loaded 0 services. 
    2013-10-24 18:20:22,335 INFO  RequestContext URL: '/Legend/isomorphic/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36': Safari with Accept-Encoding header 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Converted URL to lowercase, from: '/isomorphic/idacall'; to: '/isomorphic/idacall' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Candidate is: '/isomorphic/idacall'; pattern is /images/*; matched=false 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Converted URL to lowercase, from: '/isomorphic/idacall'; to: '/isomorphic/idacall' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Candidate is: '/isomorphic/idacall'; pattern is /isomorphic/resthandler*; matched=false 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Converted URL to lowercase, from: '/isomorphic/idacall'; to: '/isomorphic/idacall' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy Candidate is: '/isomorphic/idacall'; pattern is /**; matched=true 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 1 of 13 in additional filter chain; firing Filter: 'ChannelProcessingFilter' 
    2013-10-24 18:20:22,335 DEBUG DefaultFilterInvocationSecurityMetadataSource Converted URL to lowercase, from: '/isomorphic/idacall'; to: '/isomorphic/idacall' 
    2013-10-24 18:20:22,335 DEBUG DefaultFilterInvocationSecurityMetadataSource Candidate is: '/isomorphic/idacall'; pattern is /*.jsp; matched=false 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 2 of 13 in additional filter chain; firing Filter: 'ConcurrentSessionFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 3 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 
    2013-10-24 18:20:22,335 DEBUG HttpSessionSecurityContextRepository Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@17d9cabe: Authentication: org.springframework.security.cas.authentication.CasAuthenticationToken@17d9cabe: Principal: org.springframework.security.ldap.userdetails.InetOrgPerson@44515d6b: Dn: uid=cbosticco,o=JUVENTUSFC; Username: cbosticco; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; CredentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN, ROLE_SALES; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffd3270: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 1CA0D409A46D65BBDFB42E8A5335CD9C; Granted Authorities: ROLE_ADMIN, ROLE_SALES Assertion: org.jasig.cas.client.validation.AssertionImpl@521ee9b9 Credentials (Service/Proxy Ticket): ST-1-CXUAhCXUFdIEb9QZKYd7-cas' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 4 of 13 in additional filter chain; firing Filter: 'LogoutFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 5 of 13 in additional filter chain; firing Filter: 'CasAuthenticationFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 6 of 13 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 7 of 13 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 8 of 13 in additional filter chain; firing Filter: 'BasicAuthenticationFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 9 of 13 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 10 of 13 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter' 
    2013-10-24 18:20:22,335 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 
    2013-10-24 18:20:22,336 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 
    2013-10-24 18:20:22,336 DEBUG ExpressionBasedFilterInvocationSecurityMetadataSource Converted URL to lowercase, from: '/isomorphic/idacall'; to: '/isomorphic/idacall' 
    2013-10-24 18:20:22,336 DEBUG ExpressionBasedFilterInvocationSecurityMetadataSource Candidate is: '/isomorphic/idacall'; pattern is /isomorphic/idacall*; matched=true 
    2013-10-24 18:20:22,336 DEBUG FilterSecurityInterceptor Secure object: FilterInvocation: URL: /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1; Attributes: [permitAll] 
    2013-10-24 18:20:22,336 DEBUG FilterSecurityInterceptor Previously Authenticated: org.springframework.security.cas.authentication.CasAuthenticationToken@17d9cabe: Principal: org.springframework.security.ldap.userdetails.InetOrgPerson@44515d6b: Dn: uid=cbosticco,o=JUVENTUSFC; Username: cbosticco; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; CredentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN, ROLE_SALES; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffd3270: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: 1CA0D409A46D65BBDFB42E8A5335CD9C; Granted Authorities: ROLE_ADMIN, ROLE_SALES Assertion: org.jasig.cas.client.validation.AssertionImpl@521ee9b9 Credentials (Service/Proxy Ticket): ST-1-CXUAhCXUFdIEb9QZKYd7-cas 
    2013-10-24 18:20:22,336 DEBUG AffirmativeBased Voter: org.springframework.security.web.access.expression.WebExpressionVoter@6daaea8, returned: 1 
    2013-10-24 18:20:22,336 DEBUG FilterSecurityInterceptor Authorization successful 
    2013-10-24 18:20:22,336 DEBUG FilterSecurityInterceptor RunAsManager did not change Authentication object 
    2013-10-24 18:20:22,336 DEBUG FilterChainProxy /isomorphic/IDACall?locale=it&username=cbosticco&buildVersion=1382520597000&appID=Legend&isc_rpc=1&isc_v=v9.0p_2013-10-16&isc_xhr=1 reached end of additional filter chain; proceeding with original chain 
    2013-10-24 18:20:22,338 DEBUG RPCManager Processing 1 requests. 
    2013-10-24 18:20:22,342 DEBUG RPCManager Request #1 (DSRequest) payload: {
        criteria:{
        },
        operationConfig:{
            dataSource:"JPC_LISTINI_BASE",
            operationType:"fetch"
        },
        appID:"builtinApplication",
        operation:"JPC_LISTINI_BASE_fetch",
        oldValues:null
    } 
    2013-10-24 18:20:22,342 INFO  IDACall Performing 1 operation(s) 
    2013-10-24 18:20:22,345 INFO  ScriptJava Evaluating script:
    
            String sessionId = session.getId();
    
                   if (DataSource.isAdd(dsRequest.getOperationType())) {
                       dsRequest.setFieldValue("DESCRIZIONE", "pippo");
                   } else {
                       dsRequest.setCriteriaValue("DESCRIZIONE", "pluto");
                   }
    
                   return dsRequest.execute();
         
    /$unnamed.java:18: warning: [rawtypes] found raw type: java.util.HashMap
    java.util.HashMap criteria = (java.util.HashMap) ctx.getAttribute("criteria");
             ^
      missing type arguments for generic class java.util.HashMap<K,V>
    /$unnamed.java:21: error: org.springframework.security.web.context.HttpSessionSecurityContextRepository.SaveToSessionResponseWrapper is not public in org.springframework.security.web.context.HttpSessionSecurityContextRepository; cannot be accessed from outside package
    org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper response = (org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper) ctx.getAttribute("response");
                                            ^
    /$unnamed.java:21: error: org.springframework.security.web.context.HttpSessionSecurityContextRepository.SaveToSessionResponseWrapper is not public in org.springframework.security.web.context.HttpSessionSecurityContextRepository; cannot be accessed from outside package
    org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper response = (org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper) ctx.getAttribute("response");
                                                                                                                                                                   ^
    /$unnamed.java:23: warning: [rawtypes] found raw type: java.util.HashMap
    java.util.HashMap values = (java.util.HashMap) ctx.getAttribute("values");
             ^
      missing type arguments for generic class java.util.HashMap<K,V>
    /$unnamed.java:27: warning: [rawtypes] found raw type: java.util.HashMap
    java.util.HashMap criteriaOrValues = (java.util.HashMap) ctx.getAttribute("criteriaOrValues");
             ^
      missing type arguments for generic class java.util.HashMap<K,V>
    /$unnamed.java:31: warning: [rawtypes] found raw type: java.util.Map
    java.util.Map oldValues = null;
             ^
      missing type arguments for generic class java.util.Map<K,V>
    2013-10-24 18:20:22,447 WARN  RequestContext dsRequest.execute() failed:  
    com.isomorphic.scripting.ScriptException: Script execution failed. Cannot extract error message from stderr or stackTrace.
    	at com.isomorphic.scripting.ScriptJava.fillInStackTrace(ScriptJava.java:157)
    	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:378)
    	at com.isomorphic.scripting.ScriptXBase.eval(ScriptXBase.java:52)
    	at com.isomorphic.rpc.Scripting.evalServerScript(Scripting.java:105)
    	at com.isomorphic.rpc.BuiltinRPC.evalServerScript(BuiltinRPC.java:324)
    	at com.isomorphic.datasource.DataSourceDMI.evalInlineScript(DataSourceDMI.java:834)
    	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:202)
    	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
    	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2427)
    	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:65)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
    	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:242)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:722)
    Caused by: javax.script.ScriptException: compilation failed
    	at com.isomorphic.scripting.java.ISCJavaScriptEngine.parse(ISCJavaScriptEngine.java:133)
    	at com.isomorphic.scripting.java.ISCJavaScriptEngine.eval(ISCJavaScriptEngine.java:96)
    	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
    	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:375)
    	... 79 more
    2013-10-24 18:20:22,448 DEBUG RPCManager Content type for RPC transaction: text/plain; charset=UTF-8 
    2013-10-24 18:20:22,449 DEBUG RPCManager non-DMI response, dropExtraFields: false 
    2013-10-24 18:20:22,452 DEBUG ExceptionTranslationFilter Chain processed normally 
    2013-10-24 18:20:22,453 DEBUG SecurityContextPersistenceFilter SecurityContextHolder now cleared, as request processing completed 
    2013-10-24 18:20:22,453 INFO  Compression /Legend/isomorphic/IDACall: 201 -> 169 bytes
    any clues on what's happening?
    Last edited by claudiobosticco; 24 Oct 2013, 08:24.

    #2
    For "java" scripting, we generate some code to set up local variables like "response" (the HttpServletResponse).

    It looks like, with Spring Security involved, it's not safe to use the concrete type of the HttpServletResponse object because it's an inaccessible inner class. We'll switch this over to use the abstract HttpServletResponse instead.

    Comment


      #3
      don't know if it's important for you to know, but switching to language="groovy" makes the problem disappear

      Comment


        #4
        We've switched to use abstract HttpServletReponse instead of concrete class as well as a bunch of other classes used in Java server scripting. You can find them in the next nightly build.

        OR

        You can manually provide coma separated list of interfaces that will be used in sever script wrapper in Java. Adding HttpServletReponse by modifying setting below in framework properties addresses exactly your issue:
        Code:
        scripting.java.interface.types: javax.servlet.http.HttpSession, javax.servlet.ServletContext, java.sql.Connection, javax.servlet.http.HttpServletResponse
        Also, you could enable log level DEBUG for com.isomorphic.scripting package to see complete server script including default wrapper code for more details.

        Comment


          #5
          Small clarification to my previous post.
          If you choose not to wait for the next nightly build, i.e. to change server scripting configuration manually, you will actually need to edit server.properties file that comes in WEB-INF/classes of Smartclient SDK, not the one I mentioned earlier.

          Comment


            #6
            SmartClient Version: v9.0p_2013-10-29/EVAL Deployment

            now it's working, with language="java" and without changes, thank you very much.

            Comment


              #7
              sorry, but it's working only with the configuration I have on my mac, not on the test and production servers :-(

              the error log is:
              Code:
              2013-10-29 17:20:31,755 DEBUG [cbosticco 389] ScriptJava Evaluating assembled script:
              import java.util.*;
              import javax.servlet.http.*;
              import com.isomorphic.base.Config;
              import com.isomorphic.util.*;
              import com.isomorphic.datasource.*;
              import com.isomorphic.rpc.RPCManager;
              
              import javax.script.*;
              class iscTmpClass {
              private static ScriptContext ctx;
              public static void setScriptContext(ScriptContext context) {ctx = context;}
              public static void main(String[] args) throws Exception { Object result = doExec(args); ctx.setAttribute("evalResult",result,ScriptContext.ENGINE_SCOPE);}
              @SuppressWarnings("unchecked")
              public static Object doExec(String[] args) throws Exception {
              com.isomorphic.datasource.DSRequest dsRequest = (com.isomorphic.datasource.DSRequest) ctx.getAttribute("dsRequest");
              javax.servlet.ServletContext servletContext = (javax.servlet.ServletContext) ctx.getAttribute("servletContext");
              com.isomorphic.sql.SQLDataSource dataSource = (com.isomorphic.sql.SQLDataSource) ctx.getAttribute("dataSource");
              java.sql.Connection sqlConnection = (java.sql.Connection) ctx.getAttribute("sqlConnection");
              java.util.Map criteria = (java.util.Map) ctx.getAttribute("criteria");
              org.springframework.web.context.support.XmlWebApplicationContext applicationContext = (org.springframework.web.context.support.XmlWebApplicationContext) ctx.getAttribute("applicationContext");
              com.isomorphic.log.Logger log = (com.isomorphic.log.Logger) ctx.getAttribute("log");
              javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse) ctx.getAttribute("response");
              com.isomorphic.rpc.RPCManager rpc = (com.isomorphic.rpc.RPCManager) ctx.getAttribute("rpc");
              java.util.Map values = (java.util.Map) ctx.getAttribute("values");
              com.isomorphic.servlet.RequestContext requestContext = (com.isomorphic.servlet.RequestContext) ctx.getAttribute("requestContext");
              javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession) ctx.getAttribute("session");
              com.isomorphic.servlet.ISCHttpServletRequest request = (com.isomorphic.servlet.ISCHttpServletRequest) ctx.getAttribute("request");
              java.util.Map criteriaOrValues = (java.util.Map) ctx.getAttribute("criteriaOrValues");
              org.springframework.web.context.support.XmlWebApplicationContext beanFactory = (org.springframework.web.context.support.XmlWebApplicationContext) ctx.getAttribute("beanFactory");
              com.isomorphic.rpc.RPCManager rpcManager = (com.isomorphic.rpc.RPCManager) ctx.getAttribute("rpcManager");
              com.isomorphic.sql.SQLDataSource ds = (com.isomorphic.sql.SQLDataSource) ctx.getAttribute("ds");
              java.util.Map oldValues = (java.util.Map) ctx.getAttribute("oldValues");
              
              
              
                      dsRequest.addToTemplateContext("rest_role", com.juve.legend.rest.LegendRestHandler.ROLE_USER_JUVECOM_PARAM_NAME);
                      return dsRequest.execute();
                  
              
              }} 
              2013-10-29 17:20:31,984 WARN  [cbosticco 389] RequestContext dsRequest.execute() failed:  
              com.isomorphic.scripting.ScriptException: Script source: DataSource JPC_LISTINI: fetch/fetchSoloStagioneVendita
              Parse error in /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0389/shared/ds/JPC_LISTINI.ds.xml, script line 2, message:  package com.juve.legend.rest does not exist
              
              	at com.isomorphic.scripting.ScriptJava.fillInStackTrace(ScriptJava.java:160)
              	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:379)
              	at com.isomorphic.scripting.ScriptXBase.eval(ScriptXBase.java:52)
              	at com.isomorphic.rpc.Scripting.evalServerScript(Scripting.java:105)
              	at com.isomorphic.rpc.BuiltinRPC.evalServerScript(BuiltinRPC.java:324)
              	at com.isomorphic.datasource.DataSourceDMI.evalInlineScript(DataSourceDMI.java:834)
              	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:202)
              	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
              	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2427)
              	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215)
              	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)
              	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
              	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
              	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:65)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
              	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
              	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
              	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
              	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:242)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
              	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205)
              	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
              	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
              	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
              	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
              	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
              	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
              	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
              	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
              	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
              	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
              	at java.lang.Thread.run(Thread.java:662)
              Caused by: javax.script.ScriptException: compilation failed
              	at com.isomorphic.scripting.java.ISCJavaScriptEngine.parse(ISCJavaScriptEngine.java:133)
              	at com.isomorphic.scripting.java.ISCJavaScriptEngine.eval(ISCJavaScriptEngine.java:96)
              	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
              	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:376)
              	at com.isomorphic.scripting.ScriptXBase.eval(ScriptXBase.java:52)
              	at com.isomorphic.rpc.Scripting.evalServerScript(Scripting.java:105)
              	at com.isomorphic.rpc.BuiltinRPC.evalServerScript(BuiltinRPC.java:324)
              	at com.isomorphic.datasource.DataSourceDMI.evalInlineScript(DataSourceDMI.java:835)
              	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:202)
              	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
              	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2427)
              	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215)
              	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)
              	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
              	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:74)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
              	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
              	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:66)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
              	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
              	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:178)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:92)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:189)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:189)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:110)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:110)
              	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
              	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:170)
              	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:238)
              	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:168)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:242)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:77)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:89)
              	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
              	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
              	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
              	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205)
              	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:124)
              	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:473)
              	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
              	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:101)
              	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:954)
              	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:120)
              	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
              	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
              	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
              	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
              	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
              	... 1 more
              I don't have any clues on what's happening...the package 'com.juve.legend.rest' does exist (and with language="groovy" it works)

              Comment


                #8
                Look at the error message:

                Code:
                package com.juve.legend.rest does not exist
                Looks like missing or misplaced .jars.

                Comment


                  #9
                  I saw it, but it's really weird, because the package and class are there, as you could see in the attachment.
                  And also, it works if I simply declare
                  <script language="groovy">
                  Attached Files

                  Comment


                    #10
                    You don't have any Java import statements for those classes. Probably you configured these for your test server but not for production.

                    See the Server Scripting overview for ways to add import statements.

                    Comment


                      #11
                      But the class is used in the script with the fully qualified name: com.juve.legend.rest.LegendRestHandler

                      Comment


                        #12
                        just to test it, I've added the
                        script.defaultImports: com.juve.legend.rest.LegendRestHandler
                        in server.properties (and removed the fully qualified class name), but it still complains that the package doesn't exist.

                        Code:
                        2013-10-30 09:31:17,615 DEBUG [cbosticco 390] ScriptJava Evaluating assembled script:
                        import com.juve.legend.rest.LegendRestHandler;
                        
                        import javax.script.*;
                        class iscTmpClass {
                        private static ScriptContext ctx;
                        public static void setScriptContext(ScriptContext context) {ctx = context;}
                        public static void main(String[] args) throws Exception { Object result = doExec(args); ctx.setAttribute("evalResult",result,ScriptContext.ENGINE_SCOPE);}
                        @SuppressWarnings("unchecked")
                        public static Object doExec(String[] args) throws Exception {
                        com.isomorphic.datasource.DSRequest dsRequest = (com.isomorphic.datasource.DSRequest) ctx.getAttribute("dsRequest");
                        javax.servlet.ServletContext servletContext = (javax.servlet.ServletContext) ctx.getAttribute("servletContext");
                        com.isomorphic.sql.SQLDataSource dataSource = (com.isomorphic.sql.SQLDataSource) ctx.getAttribute("dataSource");
                        java.sql.Connection sqlConnection = (java.sql.Connection) ctx.getAttribute("sqlConnection");
                        java.util.Map criteria = (java.util.Map) ctx.getAttribute("criteria");
                        org.springframework.web.context.support.XmlWebApplicationContext applicationContext = (org.springframework.web.context.support.XmlWebApplicationContext) ctx.getAttribute("applicationContext");
                        com.isomorphic.log.Logger log = (com.isomorphic.log.Logger) ctx.getAttribute("log");
                        javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse) ctx.getAttribute("response");
                        com.isomorphic.rpc.RPCManager rpc = (com.isomorphic.rpc.RPCManager) ctx.getAttribute("rpc");
                        java.util.Map values = (java.util.Map) ctx.getAttribute("values");
                        com.isomorphic.servlet.RequestContext requestContext = (com.isomorphic.servlet.RequestContext) ctx.getAttribute("requestContext");
                        javax.servlet.http.HttpSession session = (javax.servlet.http.HttpSession) ctx.getAttribute("session");
                        com.isomorphic.servlet.ISCHttpServletRequest request = (com.isomorphic.servlet.ISCHttpServletRequest) ctx.getAttribute("request");
                        java.util.Map criteriaOrValues = (java.util.Map) ctx.getAttribute("criteriaOrValues");
                        org.springframework.web.context.support.XmlWebApplicationContext beanFactory = (org.springframework.web.context.support.XmlWebApplicationContext) ctx.getAttribute("beanFactory");
                        com.isomorphic.rpc.RPCManager rpcManager = (com.isomorphic.rpc.RPCManager) ctx.getAttribute("rpcManager");
                        com.isomorphic.sql.SQLDataSource ds = (com.isomorphic.sql.SQLDataSource) ctx.getAttribute("ds");
                        java.util.Map oldValues = (java.util.Map) ctx.getAttribute("oldValues");
                        
                        
                        
                                dsRequest.addToTemplateContext("rest_role", LegendRestHandler.ROLE_USER_JUVECOM_PARAM_NAME);
                                return dsRequest.execute();
                            
                        
                        }} 
                        2013-10-30 09:31:17,792 WARN  [cbosticco 390] RequestContext dsRequest.execute() failed:  
                        com.isomorphic.scripting.ScriptException: Script source: DataSource JPC_LISTINI: fetch/fetchSoloStagioneVendita
                        Parse error in importDirectives, script line 1, message:  package com.juve.legend.rest does not exist
                        
                        Parse error in /usr/local/tomcat/apache-tomcat-7.0.40/webapps/Legend##0390/shared/ds/JPC_LISTINI.ds.xml, script line 2, message:  cannot find symbol
                        
                        	at com.isomorphic.scripting.ScriptJava.fillInStackTrace(ScriptJava.java:160)
                        	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:379)
                        	at com.isomorphic.scripting.ScriptXBase.eval(ScriptXBase.java:52)
                        	at com.isomorphic.rpc.Scripting.evalServerScript(Scripting.java:105)
                        	at com.isomorphic.rpc.BuiltinRPC.evalServerScript(BuiltinRPC.java:324)
                        	at com.isomorphic.datasource.DataSourceDMI.evalInlineScript(DataSourceDMI.java:834)
                        	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:202)
                        	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
                        	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2427)
                        	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215)
                        	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)
                        	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
                        	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
                        	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:65)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
                        	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
                        	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
                        	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
                        	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:242)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:76)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
                        	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205)
                        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
                        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
                        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
                        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
                        	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
                        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
                        	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
                        	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
                        	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
                        	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
                        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
                        	at java.lang.Thread.run(Thread.java:662)
                        Caused by: javax.script.ScriptException: compilation failed
                        	at com.isomorphic.scripting.java.ISCJavaScriptEngine.parse(ISCJavaScriptEngine.java:133)
                        	at com.isomorphic.scripting.java.ISCJavaScriptEngine.eval(ISCJavaScriptEngine.java:96)
                        	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
                        	at com.isomorphic.scripting.ScriptJava.evalScript(ScriptJava.java:376)
                        	at com.isomorphic.scripting.ScriptXBase.eval(ScriptXBase.java:52)
                        	at com.isomorphic.rpc.Scripting.evalServerScript(Scripting.java:105)
                        	at com.isomorphic.rpc.BuiltinRPC.evalServerScript(BuiltinRPC.java:324)
                        	at com.isomorphic.datasource.DataSourceDMI.evalInlineScript(DataSourceDMI.java:835)
                        	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:202)
                        	at com.isomorphic.datasource.DataSourceDMI.execute(DataSourceDMI.java:64)
                        	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:2427)
                        	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:215)
                        	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:172)
                        	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
                        	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:74)
                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
                        	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
                        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.juve.utils.Log4jSessionFilter.doFilter(Log4jSessionFilter.java:66)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
                        	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
                        	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:178)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:92)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:189)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:189)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:110)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:110)
                        	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
                        	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:170)
                        	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:238)
                        	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:168)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:260)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at com.isomorphic.js.JSSyntaxScannerFilter.doFilter(JSSyntaxScannerFilter.java:242)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:77)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:89)
                        	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
                        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205)
                        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:124)
                        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:473)
                        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
                        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:101)
                        	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:954)
                        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:120)
                        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
                        	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
                        	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
                        	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
                        	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
                        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
                        	... 1 more
                        also in this case, switching to language="groovy" fixes the problem.
                        Last edited by claudiobosticco; 30 Oct 2013, 01:29.

                        Comment


                          #13
                          This looks like some kind of classloader issue, where the Isomorphic .jars were loaded by a classloader that can't see your com.juve classes.

                          If com.juve classes or Isomorphic .jars are in different directories (system classpath or container lib directory vs WEB-INF), put them in the same directory.

                          If they are already in the same directory and you're still having the problem, try moving all the .jars together to WEB-INF, and if that still doesn't seem to work, put them all in the system classpath.

                          Comment


                            #14
                            all classes are under WEB-INF/classes and all jars under WEB-INF/lib.
                            In the container lib directory there are (apart standard tomcat jars) the jdbc driver, log4j jars and ActiveMQ (for messaging).

                            There are multiple apps deployed in the tomcat webapps directory, but this is the only one that uses server scripting.

                            The datasources are in shared/ds directory.

                            By 'put all jars in the system classpath' do you mean having smartclient jars deployed in a shared directory used by all deployed applications? I'd prefer having separate deployment.

                            By the way, why using language="groovy" solves the problem, if it's a classloader issue?

                            Comment


                              #15
                              By 'put all jars in the system classpath' do you mean having smartclient jars deployed in a shared directory used by all deployed applications?
                              Yes.

                              I'd prefer having separate deployment.
                              We know, this is just a troubleshooting step.

                              By the way, why using language="groovy" solves the problem, if it's a classloader issue?
                              Because Groovy compilation is evidently going through a different classloader or series of classloaders.

                              Comment

                              Working...
                              X