[Building Sakai] Problems running trunk

Steve Swinsburg steve.swinsburg at gmail.com
Wed Jun 16 16:26:53 PDT 2010


This one:

Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String;

Is because you are missing a JAVA_OPT. Since you are on 2.6 AND Tomcat > 5.5.27 you need both of the properties listed at the top of the release notes page:

http://confluence.sakaiproject.org/display/DOC/Release+Notes+(2.7)

-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

cheers,
Steve



On 16 Jun 2010, at 17:21, DAVID ROLDAN MARTINEZ wrote:

> It still doesn't work but now the problem is at OSP. Any idea?
> ________________________________________
> De: Steve Swinsburg [steve.swinsburg at gmail.com]
> Enviado el: jueves, 17 de junio de 2010 1:04
> Para: DAVID ROLDAN MARTINEZ
> CC: Matthew Jones; sakai-dev at sakaiproject.org
> Asunto: Re: [Building Sakai] Problems running trunk
> 
> Duplicates in shared? Can you double check your JAVA_OPTS? Because I've only seen this when running it up on 1.5.
> 
> 
> 
> On 16 Jun 2010, at 17:01, DAVID ROLDAN MARTINEZ wrote:
> 
>> I'm on java 1.6.0_20. :/
>> ________________________________________
>> De: Steve Swinsburg [steve.swinsburg at gmail.com]
>> Enviado el: jueves, 17 de junio de 2010 1:01
>> Para: DAVID ROLDAN MARTINEZ
>> CC: Matthew Jones; sakai-dev at sakaiproject.org
>> Asunto: Re: [Building Sakai] Problems running trunk
>> 
>> Ok the problem is caused by StAX. You need to be on Java 1.6 to run trunk Profile2 (will be changed to allow 1.5 again, when a patch gets into EmailTemplateService).
>> 
>> cheers,
>> Steve
>> 
>> 
>> On 16 Jun 2010, at 16:55, DAVID ROLDAN MARTINEZ wrote:
>> 
>>> Thank you!!!!!!!!!!!!!!!!!!!!!
>>> 
>>> Here it is my catalina.log
>>> 
>>> :D
>>> ________________________________________
>>> De: jonespm at gmail.com [jonespm at gmail.com] En nombre de Matthew Jones [jonespm at umich.edu]
>>> Enviado el: jueves, 17 de junio de 2010 0:53
>>> Para: DAVID ROLDAN MARTINEZ
>>> CC: Steve Swinsburg; sakai-dev at sakaiproject.org
>>> Asunto: Re: [Building Sakai] Problems running trunk
>>> 
>>> The only thing I can think of is that I remember windows tomcat being picky about 2 slashes in the filenames: "\\"
>>> 
>>> Note from the nabble post:
>>> 
>>> log4j.appender.Sakai.File=${catalina.home}\\logs\\tomcat-sakai.log
>>> 
>>> On Wed, Jun 16, 2010 at 4:47 PM, DAVID ROLDAN MARTINEZ <darolmar at upvnet.upv.es<mailto:darolmar at upvnet.upv.es>> wrote:
>>> Here is my {tomcat.home}/common/classes/log4j.properties. Something should be wrong because my catalina.log file is not created and other log files are empty. Any idea?
>>> 
>>> # Configures Log4j for Tomcat and Sakai
>>> 
>>> # use "A" for log in with catalina.out (actually standard output)
>>> log4j.rootLogger=WARN, Sakai
>>> 
>>> # Configuration for standard output ("catalina.out" in Tomcat).
>>> #log4j.appender.Sakai=org.apache.log4j.ConsoleAppender
>>> #log4j.appender.Sakai.layout=org.apache.log4j.PatternLayout
>>> #log4j.appender.Sakai.layout.ConversionPattern=%p: %m (%d %t_%c)%n
>>> 
>>> # A more descriptive but lower performance logging pattern
>>> #log4j.appender.Sakai.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
>>> 
>>> # Configuration for a rolling log file ("tomcat.log")
>>> log4j.appender.Sakai=org.apache.log4j.DailyRollingFileAppender
>>> log4j.appender.Sakai.DatePattern='.'yyyy-MM-dd
>>> log4j.appender.Sakai.File=E:\sakai-trunk\logs\catalina.log
>>> log4j.appender.Sakai.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.Sakai.layout.ConversionPattern=%p %d %t_%c%n%m%n
>>> 
>>> # Application logging options
>>> log4j.logger.org.apache=INFO
>>> log4j.logger.org.sakaiproject=INFO
>>> log4j.logger.uk.ac.cam.caret.rwiki=INFO
>>> log4j.logger.org.theospi=INFO
>>> 
>>> # Ignore erroneous MyFaces warnings
>>> log4j.logger.org.apache.myfaces.el.VariableResolverImpl=ERROR
>>> log4j.logger.org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser=ERROR
>>> log4j.logger.org.apache.myfaces.shared_tomahawk.webapp.webxml.WebXmlParser=ERROR
>>> 
>>> 
>>> # Setup vm levels
>>> log4j.logger.vm.none=FATAL
>>> log4j.logger.vm.error=ERROR
>>> log4j.logger.vm.warn=WARN
>>> log4j.logger.vm.info<http://log4j.logger.vm.info>=INFO
>>> log4j.logger.vm.debug=DEBUG
>>> 
>>> ________________________________________
>>> De: Steve Swinsburg [steve.swinsburg at gmail.com<mailto:steve.swinsburg at gmail.com>]
>>> Enviado el: jueves, 17 de junio de 2010 0:28
>>> Para: DAVID ROLDAN MARTINEZ
>>> CC: Matthew Jones; sakai-dev at sakaiproject.org<mailto:sakai-dev at sakaiproject.org>
>>> Asunto: Re: [Building Sakai] Problems running trunk
>>> 
>>> We'll need more than that snippet. Without seeing more, and at a guess, you've got duplicates in shared/lib, possible for sitestats?
>>> 
>>> cheers,
>>> Steve
>>> 
>>> 
>>> 
>>> On 16 Jun 2010, at 16:18, DAVID ROLDAN MARTINEZ wrote:
>>> 
>>>> Here is the output. It seems a SQL problem but I've sakai configured to use HSQLDB so the tables refered should not exist. :(
>>>> 
>>>> 
>>>> Could not resolve placeholder 'sakai.security' in [file:${sakai.security}securit
>>>> y.properties] as system property: neither system property nor environment variab
>>>> le found
>>>> EntityProviderManagerImpl init
>>>> INFO Registered entity provider (org.sakaiproject.entitybroker.impl.entityprovid
>>>> er.EntityProviderManagerImpl$1) prefix (describe) with 1 capabilities
>>>> INFO Registered entity provider (org.sakaiproject.entitybroker.impl.entityprovid
>>>> er.EntityProviderManagerImpl$2) prefix (batch) with 1 capabilities
>>>> INFO: [GenericDao] Could not execute first DDL line, skipping the rest: Statemen
>>>> tCallback; bad SQL grammar [CREATE TABLE ENTITY_PROPERTIES ( id            BIGIN
>>>> T NOT NULL IDENTITY, entityRef       VARCHAR(255) NOT NULL, entityPrefix    VARC
>>>> HAR(255) NOT NULL, propertyName    VARCHAR(255) NOT NULL, propertyValue   LONGVA
>>>> RCHAR NOT NULL)]; nested exception is java.sql.SQLException: Table already exist
>>>> s: ENTITY_PROPERTIES in statement [CREATE TABLE ENTITY_PROPERTIES]:java.sql.SQLE
>>>> xception: Table already exists: ENTITY_PROPERTIES in statement [CREATE TABLE ENT
>>>> ITY_PROPERTIES]
>>>> INFO: [GenericDao] Could not execute first DDL line, skipping the rest: Statemen
>>>> tCallback; bad SQL grammar [CREATE TABLE ENTITY_TAG_APPLICATIONS ( id
>>>> BIGINT NOT NULL IDENTITY, entityRef       VARCHAR(255) NOT NULL, entityPrefix
>>>> VARCHAR(255) NOT NULL, tag             VARCHAR(255) NOT NULL)]; nested excepti
>>>> on is java.sql.SQLException: Table already exists: ENTITY_TAG_APPLICATIONS in st
>>>> atement [CREATE TABLE ENTITY_TAG_APPLICATIONS]:java.sql.SQLException: Table alre
>>>> ady exists: ENTITY_TAG_APPLICATIONS in statement [CREATE TABLE ENTITY_TAG_APPLIC
>>>> ATIONS]
>>>> INFO Registered entity provider (org.sakaiproject.component.app.messageforums.en
>>>> tity.ForumTopicEntityProviderImpl) prefix (forum_topic) with 5 capabilities
>>>> INFO Registered entity provider (org.sakaiproject.component.app.messageforums.en
>>>> tity.ForumEntityProviderImpl) prefix (forum) with 5 capabilities
>>>> INFO Registered entity provider (org.sakaiproject.component.app.messageforums.en
>>>> tity.ForumMessageEntityProviderImpl) prefix (forum_message) with 5 capabilities
>>>> INFO Registered 1 custom actions for entity prefix (matrixcell): canUserAccessWi
>>>> zardPageAndLinkedArtifcact:null:null
>>>> INFO Registered entity provider (org.theospi.portfolio.matrix.model.impl.MatrixC
>>>> ellEntityProviderImpl) prefix (matrixcell) with 9 capabilities
>>>> INFO Registered 1 custom actions for entity prefix (assignment): annc:list:getAs
>>>> signDataForAnnouncement
>>>> INFO EntityPropertiesService: Added 642 properties for entity prefix (assignment
>>>> ) and basename (assignment)
>>>> INFO Registered entity provider (org.sakaiproject.assignment.impl.AssignmentEnti
>>>> tyProviderImpl) prefix (assignment) with 9 capabilities
>>>> INFO Registered 1 custom actions for entity prefix (chat-channel): listen:edit:l
>>>> isten
>>>> INFO EntityPropertiesService: No properties to load for entity prefix (chat-chan
>>>> nel) and basename (chat-channel)
>>>> INFO Registered entity provider (org.sakaiproject.chat2.model.impl.ChatChannelEn
>>>> tityProvider) prefix (chat-channel) with 17 capabilities
>>>> INFO EntityPropertiesService: No properties to load for entity prefix (chat-mess
>>>> age) and basename (chat-message)
>>>> INFO Registered entity provider (org.sakaiproject.chat2.model.impl.ChatMessageEn
>>>> tityProvider) prefix (chat-message) with 10 capabilities
>>>> INFO Registered entity provider (org.sakaiproject.tool.assessment.entity.impl.Pu
>>>> blishedAssessmentEntityProviderImpl) prefix (sam_pub) with 6 capabilities
>>>> INFO Registered entity provider (org.sakaiproject.sitestats.impl.report.ReportDe
>>>> fEntityProvider) prefix (sitestats-report) with 4 capabilities
>>>> INFO Registered 11 custom actions for entity prefix (sitestats-metrics): get-all
>>>> -metrics:list:getAllMetrics, get-reset-time:list:getResetTime, get-total-events-
>>>> processed:list:getTotalEventsProcessed, get-average-time-event-processing-per-ev
>>>> ent:list:getAverageTimeInEventProcessingPerEvent, get-events-processed-per-sec:l
>>>> ist:getEventsProcessedPerSec, get-time-ellapsed-since-reset:list:getTimeEllapsed
>>>> SinceReset, get-events-generated-per-sec:list:getEventsGeneratedPerSec, get-queu
>>>> e-size:list:getQueueSize, is-idle:list:isIdle, get-time-spent-processing-events:
>>>> list:getTimeSpentProcessingEvents, reset-all-metrics:list:resetAllMetrics
>>>> INFO EntityPropertiesService: Added 12 properties for entity prefix (sitestats-m
>>>> etrics) and basename (sitestats-metrics)
>>>> INFO Registered entity provider (org.sakaiproject.sitestats.impl.entity.SiteStat
>>>> sMetricsEntityProvider) prefix (sitestats-metrics) with 7 capabilities
>>>> java.lang.Exception: traceback
>>>>     at org.sakaiproject.util.NoisierDefaultListableBeanFactory.destroySingle
>>>> tons(NoisierDefaultListableBeanFactory.java:96)
>>>>     at org.sakaiproject.util.NoisierDefaultListableBeanFactory.preInstantiat
>>>> eSingletons(NoisierDefaultListableBeanFactory.java:83)
>>>>     at org.springframework.context.support.AbstractApplicationContext.finish
>>>> BeanFactoryInitialization(AbstractApplicationContext.java:728)
>>>>     at org.springframework.context.support.AbstractApplicationContext.refres
>>>> h(AbstractApplicationContext.java:380)
>>>>     at org.sakaiproject.component.impl.SpringCompMgr.init(SpringCompMgr.java
>>>> :154)
>>>>     at org.sakaiproject.component.cover.ComponentManager.getInstance(Compone
>>>> ntManager.java:98)
>>>>     at org.sakaiproject.component.cover.ComponentManager.get(ComponentManage
>>>> r.java:107)
>>>>     at org.sakaiproject.component.cover.ServerConfigurationService.getInstan
>>>> ce(ServerConfigurationService.java:52)
>>>>     at org.sakaiproject.component.cover.ServerConfigurationService.getString
>>>> s(ServerConfigurationService.java:205)
>>>>     at org.sakaiproject.util.BasicAuth.init(BasicAuth.java:111)
>>>>     at org.sakaiproject.access.tool.AccessServlet.init(AccessServlet.java:14
>>>> 7)
>>>>     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
>>>> java:1139)
>>>>     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:96
>>>> 6)
>>>>     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
>>>> t.java:3996)
>>>>     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>>>> 266)
>>>>     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
>>>> .java:760)
>>>>     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
>>>> 0)
>>>>     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>>>>     at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
>>>>     at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737
>>>> )
>>>>     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498
>>>> )
>>>>     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
>>>>     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
>>>> :319)
>>>>     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>>>> eSupport.java:120)
>>>>     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>>>>     at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>>>     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>>>     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
>>>> )
>>>>     at org.apache.catalina.core.StandardService.start(StandardService.java:4
>>>> 48)
>>>>     at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
>>>> )
>>>>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>     at java.lang.reflect.Method.invoke(Method.java:585)
>>>>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>>>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>>>> 
>>>> ________________________________
>>>> De: jonespm at gmail.com<mailto:jonespm at gmail.com> [jonespm at gmail.com<mailto:jonespm at gmail.com>] En nombre de Matthew Jones [jonespm at umich.edu<mailto:jonespm at umich.edu>]
>>>> Enviado el: miércoles, 16 de junio de 2010 23:31
>>>> Para: DAVID ROLDAN MARTINEZ
>>>> CC: Steve Swinsburg; sakai-dev at sakaiproject.org<mailto:sakai-dev at sakaiproject.org>
>>>> Asunto: Re: [Building Sakai] Problems running trunk
>>>> 
>>>> Refer to this old piece of information [1] about customizing log4j to get the standalone windows tomcat to write to a logfile. You can do some other things with log4j to get it to write to other places.
>>>> 
>>>> You can also run it as a NT service as described here [2] and it will create logs as expected, but the log4j overrides would also work in this case as well.
>>>> 
>>>> [1] http://sakai-project-mail-list-archives.1343168.n2.nabble.com/Sakai-Demo-2-5-2-is-not-creating-logs-tt723055.html#a723255
>>>> [2] http://confluence.sakaiproject.org/display/BOOT/Tailing+catalina.out+on+Windows
>>>> 
>>>> On Wed, Jun 16, 2010 at 2:31 PM, DAVID ROLDAN MARTINEZ <darolmar at upvnet.upv.es<mailto:darolmar at upvnet.upv.es><mailto:darolmar at upvnet.upv.es<mailto:darolmar at upvnet.upv.es>>> wrote:
>>>> I would like to but I'm using Windows and don't know how to load the contents of the log window to a file. :-\
>>>> 
>>>> Thanks.
>>>> 
>>>> David
>>>> _______
>>>> ________________________________________
>>>> De: Steve Swinsburg [steve.swinsburg at gmail.com<mailto:steve.swinsburg at gmail.com><mailto:steve.swinsburg at gmail.com<mailto:steve.swinsburg at gmail.com>>]
>>>> Enviado el: miércoles, 16 de junio de 2010 22:30
>>>> Para: DAVID ROLDAN MARTINEZ
>>>> CC: sakai-dev at sakaiproject.org<mailto:sakai-dev at sakaiproject.org><mailto:sakai-dev at sakaiproject.org<mailto:sakai-dev at sakaiproject.org>>
>>>> Asunto: Re: [Building Sakai] Problems running trunk
>>>> 
>>>> Hi David,
>>>> 
>>>> A bit more of the error above that there should be a few stack traces. Can you include those, the whole section of the log from the last startup would be good.
>>>> 
>>>> cheers,
>>>> Steve
>>>> 
>>>> 
>>>> On 16 Jun 2010, at 14:23, DAVID ROLDAN MARTINEZ wrote:
>>>> 
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I've just deployed a trunk version over an Tomcat 5.5.29 & Java 1.6.0_20 but I'm not able to make it run. I've used example sakai.properties copied directly from reference/docs.
>>>>> 
>>>>> When I start Tomcat, it gives me the error shown at the attachment.
>>>>> 
>>>>> Can anybody help me, please?
>>>>> 
>>>>> Thank you very much in advance.
>>>>> 
>>>>> David<desktop.PNG>_______________________________________________
>>>>> sakai-dev mailing list
>>>>> sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org><mailto:sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>>
>>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>> 
>>>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org><mailto:sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>> with a subject of "unsubscribe"
>>>> 
>>>> _______________________________________________
>>>> sakai-dev mailing list
>>>> sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org><mailto:sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>>
>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>> 
>>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org><mailto:sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>> with a subject of "unsubscribe"
>>>> 
>>> 
>>> 
>>> <catalina.log>
>> 
> 
> <catalina.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100616/f1d42b0f/attachment.html 


More information about the sakai-dev mailing list