[Using Sakai] Bug in 2.6.1 webservices?

Nguyen Tam Chinh chinh at mainstream.net
Tue Nov 10 05:27:09 PST 2009


Hi Steve,

Thanks so much for your reply. I configured the access control for
localhost and it didn't help. I use JDK and can access the rest of
Sakai normally. I had 2.5.4 running before without any problem on the
same server.
Here is my JAVA_OPTS:

JAVA_OPTS="-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
-Djava.awt.headless=true -server -XX:+UseParallelGC -Xms768m -Xmx768m
-XX:PermSize=128m -XX:MaxPermSize=256m -XX:NewSize=192m
-XX:MaxNewSize=384m"

Hmm, I guess I'll need to reinstall to see if it helps ...

Chinh

On Thu, Nov 5, 2009 at 7:26 PM, Steve Swinsburg
<steve.swinsburg at gmail.com> wrote:
> Hi Chinh,
>
> You still need to configure the access control, even if only for localhost:
> See:
> http://steve-on-sakai.blogspot.com/2009/05/enabling-web-services-in-sakai-and.html
>
> You should not be getting this error if its access related though.
>
> At first glance, the SakaiScript.jws you attached looks normal. Are you
> using a JDK or only a JRE? The jws classes compile at runtime so a JDK must
> be set. What are your JAVA_OPTS? Can you access the rest of Sakai normally?
> Can you re-download 2.6.1 and try again? Or maybe the 2.6.x branch?
>
> cheers,
> Steve
>
>
>
>
> On 05/11/2009, at 6:28 PM, Nguyen Tam Chinh wrote:
>
>> Hi Steve,
>>
>> Thank you very much for your quick response. It does not compile.
>>
>> - I enabled it in sakai.properties by adding
>> webservices.allowlogin=true to sakai.properties. No access control was
>> configured because I intend to access only via localhost
>> - Accessing /sakai-axis/SakaiLogin.jws?wsdl gives me the error as in
>> attached file SakaiLogin.log
>> SakaiLogin.jws included. It's from Sakai-2.6.1 binary distribution, I
>> didn't change the source yet.
>>
>> Chinh
>>
>> On Thu, Nov 5, 2009 at 2:01 PM, Steve Swinsburg
>> <steve.swinsburg at gmail.com> wrote:
>>>
>>> Hi Chinh,
>>> Can you post your SakaiScript.jws and how you enabled the webservices in
>>> sakai.properties? What happens if you go to
>>> http://your.sakai.server/sakai-axis/SakaiLogin.jws?wsdl in your browser?
>>> Does it compile?
>>> SakaiScript.jws in 2.6.1 is identical to the current 2.6.x branch which
>>> works fine for me.
>>> cheers,
>>> Steve
>>>
>>> On Thu, Nov 5, 2009 at 2:55 PM, Nguyen Tam Chinh <chinh at mainstream.net>
>>> wrote:
>>>>
>>>> Hi All,
>>>>
>>>> I enabled webservices in a Sakai 2.6.1 release instance and found that
>>>> AXIS is not working properly. The trace is included below.
>>>> I tried 2.5.4 before and it does not have such issue.
>>>>
>>>> <h2>AXIS error</h2>
>>>> <p>Sorry, something seems to have gone wrong... here are the
>>>> details:</p>
>>>> <pre>Fault - Error while compiling:
>>>>
>>>>
>>>> /home/xxx/tomcat/webapps/sakai-axis/WEB-INF/jwsClasses/SakaiScript.java<br>
>>>> AxisFault
>>>>  faultCode: {http://xml.apache.org/axis/}Server.compileError
>>>>  faultSubcode:
>>>>  faultString: Error while compiling:
>>>> /home/xxx/tomcat/webapps/sakai-axis/WEB-INF/jwsClasses/SakaiScript.java
>>>>  faultActor:
>>>>  faultNode:
>>>>  faultDetail:
>>>>       {}Errors:Error compiling
>>>> /home/xxx/tomcat/webapps/sakai-axis/WEB-INF/jwsClasses/SakaiScript.java:
>>>> Line 12, column 33:  package org.sakaiproject.tool.api does not exist
>>>> Line 13, column 35:  package org.sakaiproject.tool.cover does not exist
>>>> Line 14, column 34:  package org.sakaiproject.exception does not exist
>>>> Line 19, column 34:  package org.sakaiproject.authz.api does not exist
>>>> Line 20, column 34:  package org.sakaiproject.authz.api does not exist
>>>> Line 21, column 34:  package org.sakaiproject.authz.api does not exist
>>>> Line 22, column 35:  package org.sakaiproject.user.cover does not exist
>>>> Line 23, column 33:  package org.sakaiproject.tool.api does not exist
>>>> Line 24, column 33:  package org.sakaiproject.site.api does not exist
>>>> Line 25, column 33:  package org.sakaiproject.site.api does not exist
>>>> Line 26, column 33:  package org.sakaiproject.site.api does not exist
>>>> Line 27, column 33:  package org.sakaiproject.site.api does not exist
>>>> Line 28, column 33:  package org.sakaiproject.user.api does not exist
>>>> Line 29, column 36:  package org.sakaiproject.authz.cover does not exist
>>>> Line 30, column 33:  package org.sakaiproject.user.api does not exist
>>>> Line 31, column 35:  package org.sakaiproject.tool.cover does not exist
>>>> Line 32, column 35:  package org.sakaiproject.site.cover does not exist
>>>> Line 33, column 36:  package org.sakaiproject.authz.cover does not exist
>>>> Line 34, column 45:  package org.sakaiproject.site.api.SiteService
>>>> does not exist
>>>> Line 35, column 45:  package org.sakaiproject.site.api.SiteService
>>>> does not exist
>>>> Line 37, column 35:  package org.sakaiproject.entity.api does not exist
>>>> Line 38, column 35:  package org.sakaiproject.entity.api does not exist
>>>> Line 40, column 39:  package org.sakaiproject.calendar.cover does not
>>>> exist
>>>> Line 41, column 37:  package org.sakaiproject.calendar.api does not
>>>> exist
>>>> Line 42, column 37:  package org.sakaiproject.calendar.api does not
>>>> exist
>>>> Line 43, column 37:  package org.sakaiproject.calendar.api does not
>>>> exist
>>>> Line 44, column 37:  package org.sakaiproject.calendar.api does not
>>>> exist
>>>> Line 45, column 33:  package org.sakaiproject.time.api does not exist
>>>> Line 58, column -1:  cannot find symbol
>>>> ............................................................
>>>> Line 505, column -1:  cannot find symbol
>>>> Line 509, column -1:  cannot find symbol
>>>> Line 509, column -1:  cannot find symbol
>>>> Line 0, column 0:
>>>> Note:
>>>> /home/xxx/tomcat/webapps/sakai-axis/WEB-INF/jwsClasses/SakaiScript.java
>>>> uses unchecked or unsafe operations.
>>>> Note: Recompile with -Xlint:unchecked for details.
>>>> 100 errors
>>>>
>>>> In Catalina.out:
>>>>
>>>> Error while compiling:
>>>> /home/xxx/tomcat/webapps/sakai-axis/WEB-INF/jwsClasses/SakaiScript.java
>>>>       at
>>>> org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:232)
>>>>       at
>>>> org.apache.axis.handlers.JWSHandler.generateWSDL(JWSHandler.java:294)
>>>>       at
>>>>
>>>> org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
>>>>       at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>>>       at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
>>>>       at
>>>> org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:454)
>>>>       at
>>>>
>>>> org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
>>>>       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.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
>>>>       at
>>>> org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
>>>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>>>>       at
>>>>
>>>> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>>>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>>       at
>>>>
>>>> org.sakaiproject.util.RemoteHostFilter.doFilter(RemoteHostFilter.java:188)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>>       at
>>>> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>>>       at
>>>>
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>>       at
>>>>
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>>       at
>>>>
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>>>>       at
>>>>
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>>       at
>>>>
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>>>       at
>>>>
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>>>       at
>>>>
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>>>       at
>>>>
>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>>>>       at
>>>>
>>>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>>>>       at
>>>>
>>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>>>>       at
>>>>
>>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>>>>       at
>>>>
>>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>>>       at java.lang.Thread.run(Thread.java:595)
>>>>
>>>> --
>>>> With best regards,
>>>> Chinh Nguyen
>>>>
>>>> ***********************************
>>>> FreeBSD - The Power to Serve
>>>> _______________________________________________
>>>> sakai-user mailing list
>>>> sakai-user at collab.sakaiproject.org
>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
>>>>
>>>> TO UNSUBSCRIBE: send email to
>>>> sakai-user-unsubscribe at collab.sakaiproject.org with a subject of
>>>> "unsubscribe"
>>>
>>
>>
>>
>> --
>> With best regards,
>> Chinh Nguyen
>>
>> ***********************************
>> FreeBSD - The Power to Serve
>> <SakaiScript.jws><SakaiLogin.log>
>
>



-- 
With best regards,
Chinh Nguyen

***********************************
FreeBSD - The Power to Serve


More information about the sakai-user mailing list