ERROR [ContextLoader.java:220] : Context initialization failed--help!

6,801 views
Skip to first unread message

snowshine

unread,
Jul 25, 2012, 2:27:38 PM7/25/12
to onebusaway...@googlegroups.com
2012-07-25 09:42:29,072 ERROR [ContextLoader.java:220] : Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'refreshServiceImpl' defined in class path resource [org/onebusaway/transit_data_federation/application-context-services.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:452)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:722)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1197)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
at org.eclipse.jetty.server.Server.doStart(Server.java:258)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.onebusaway.quickstart.bootstrap.WebappBootstrapMain.run(WebappBootstrapMain.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.onebusaway.quickstart.bootstrap.BootstrapMain$1.run(BootstrapMain.java:199)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:100)
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:84)
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:107)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:278)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:848)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:820)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:446)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 44 more
Caused by: java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:204)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:191)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:172)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1418)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 50 more
2012-07-25 09:42:29.076:WARN::Failed startup of context o.e.j.w.WebAppContext{/,file:/C:/Users/Sun%20Na/AppData/Local/Temp/jetty-0.0.0.0-8080-onebusaway-quickstart-assembly.war-_-any-/webapp/},file:/C:/Users/onebusaway-quickstart-assembly.war
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'refreshServiceImpl' defined in class path resource [org/onebusaway/transit_data_federation/application-context-services.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:452)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:722)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1197)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
at org.eclipse.jetty.server.Server.doStart(Server.java:258)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
at org.onebusaway.quickstart.bootstrap.WebappBootstrapMain.run(WebappBootstrapMain.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.onebusaway.quickstart.bootstrap.BootstrapMain$1.run(BootstrapMain.java:199)
at java.lang.Thread.run(Unknown Source)
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error the @annotation pointcut expression is only supported at Java 5 compliance level or above
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:100)
Is there anyone who managed to work it out? Like how?

Thanks quite a lot!


Sonia

Jeff Maki

unread,
Jul 25, 2012, 2:32:46 PM7/25/12
to onebusaway...@googlegroups.com
I think the error is: "error the @annotation pointcut expression is only supported at Java 5 compliance level or above".

Looks like you need a newer JRE/JDK.

-Jeff

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/UcnW_mSQtT4J.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

Sean Barbeau

unread,
Jul 25, 2012, 2:56:13 PM7/25/12
to onebusaway...@googlegroups.com
Agreed, I believe Jeff is right.

Assuming you're running in Eclipse - check out the "Setting Up Eclipse" section on the "Importing the source code into Eclipse" page to see how to point to a specific JDK install such as 1.6:
https://github.com/OneBusAway/onebusaway/wiki/Importing-source-code-into-eclipse

If you're running the quickstart, I believe changing the Java_Home environmental variable on Windows, or the equivalent on Linux, would do the trick.
-Jeff

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.

snowshine

unread,
Jul 25, 2012, 3:10:54 PM7/25/12
to onebusaway...@googlegroups.com
Thank you! But I've just downloaded the latest version of JDK from  http://www.oracle.com/technetwork/java/javase/downloads/index.html . But how could I check if my jre is the right version? Thanks in advance. I am a totally a greenhorn in Java. Sorry:p

Sonia

-Jeff

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.

Barbeau, Sean

unread,
Jul 25, 2012, 3:57:59 PM7/25/12
to onebusaway...@googlegroups.com

Sonia,

open the command prompt and type:

java -version

 

Unless you’ve specified otherwise somewhere, the printout will show the default version that any Java application on your machine will run on.

 

I’d recommend downloading and installing JDK and JRE 6 Update 33 from this site:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

 

JDK/JRE 7 have some issues that may cause problems for you.

 

Sean

-Jeff

To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



 

--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

--

You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.

To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/zMSCwcOJqwIJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

snowshine

unread,
Jul 25, 2012, 5:28:52 PM7/25/12
to onebusaway...@googlegroups.com
``Thank you! I`ve tried what you said and it worked perfectly!  As the instruction indicates,`Once the webapp has finished startup, browse to http://localhost:8080/. `` when I browse to that page, it shows only text `ònebusaway-api-webapp`. Is that what should be look like? And what's the point of doing the quickstart ? Thank you for your patience.

Barbeau, Sean

unread,
Jul 25, 2012, 5:39:25 PM7/25/12
to onebusaway...@googlegroups.com

Sounds like you’re deploying just the API web application, not the full OneBusAway web interface.

 

The Quickstart option is relevant if you’re not interested in editing the OBA code, but just want to get a copy of OBA up and running:

https://github.com/OneBusAway/onebusaway-application-modules/wiki/GTFS-realtime-Quick-Start

 

So, if you’re not interested in editing code, stop reading now and follow the above QuickStart guide.

 

To see the normal OBA website interface when deploying from Eclipse, you’ll need to browse to this URL:

http://localhost:8080/onebusaway-webapp/

 

Check out this page for full instructions on getting your OBA instance up and running in Eclipse, if you haven’t seen it yet:

https://github.com/OneBusAway/onebusaway-application-modules/wiki/Developer-Guide

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of snowshine


Sent: Wednesday, July 25, 2012 5:29 PM
To: onebusaway...@googlegroups.com

-Jeff

To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



 

--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

--

You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.

To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/fx075hABmDQJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

snowshine

unread,
Jul 25, 2012, 6:35:31 PM7/25/12
to onebusaway...@googlegroups.com
Thanks for your reply. I am okay with editing code, but just do not know whether its necessary. When I turn to this page http://localhost:8080/onebusaway-webapp/, I can get the following text:

HTTP ERROR 404

Problem accessing /onebusaway-webapp/. Reason:

    There is no Action mapped for action name onebusaway-webapp.


Powered by Jetty://


I was just trying to figure how it works and how I can try my own transit-data on that. Maybe I would try to modify when its necessary, but I have no idea about that yet.Thanks again! So do you think I should just try the Quickstart Option?


Sonia

-Jeff

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



 

--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/fx075hABmDQJ.

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.

Michael Scheper

unread,
Jul 26, 2012, 4:33:06 AM7/26/12
to onebusaway...@googlegroups.com
Sonia: It looked like you were running the QuickStart app initially. If that's still the case, you should be able to type something like this at your command prompt:

java -Xmx1G -server -jar onebusaway-quickstart-assembly-webapp.war -webapp /path/to/your/bundle

... and see 'Your OneBusAway instance has started.  Browse to: http://localhost:8080/ to see your instance in action.'

I'm not sure whether you're an IT person, so forgive me if what I say now is really basic, but if you don't see this message, make sure you're logged to the directory where onebusaway-quickstart-assembly-webapp.war is. Type 'ls' or 'dir'... is it in the list of files you see? You should also replace /path/to/your/bundle with where your bundle got created, e.g. ~/onebusaway/bundle, or in Windows or DOS, C:\onebusaway\bundle. If you type 'ls /path/to/your/bundle' (Linux/BSD/Mac) or 'dir /path/to/your/bundle' (Windows/DOS), you should see a bunch of .obj files, and more. If you're still stuck, tell us what you see instead of 'Your OneBusAway instance has started.'

If you do see that happy message, browse to http://localhost:8080/, and you'll see a big page saying 'Where is your bus?' If you click 'Web' under 'Our tools', you should see a map of the area your bundle covers. It's pretty cool.

If you're not running the QuickStart app anymore, can you tell us:
  • are you running the full combined webapp, one of the other combined webapps, or something else? Just tell us the name of the file you're using (it probably ends in .war) and where you got it from (from which web page, and which link?)
  • are you running it from the command line (i.e. you're literally typing a command starting with 'java -jar'), or in Eclipse or another IDE (e.g. you're selecting 'Run' from a menu or clicking a 'Run' icon), or in Tomcat (a web container you've copied the file to)?
  • which operating system are you using? Linux? BSD? Mac O/S? Windows? Something else?

Looking forward to helping.

Cheers,
MS.

Barbeau, Sean

unread,
Jul 26, 2012, 9:17:14 AM7/26/12
to onebusaway...@googlegroups.com

Quickstart allows you to get started quickly without needing to edit any code, so I’d suggest starting there.  I’m in the process of improving some of the documentation surrounding the Eclipse setup, since I’ve had issues with the existing documentation there.

 

Just be sure you grab the QuickStart bundle for the FULL webapp from this page if you want to see the standard web interface:

http://developer.onebusaway.org/modules/onebusaway-application-modules/current/guides/quickstart-guide.html

 

If you download the API-only webapp, you don’t get a UI, just the REST API to interface with via REST requests.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of snowshine
Sent: Wednesday, July 25, 2012 6:36 PM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] ERROR [ContextLoader.java:220] : Context initialization failed--help!

 

Thanks for your reply. I am okay with editing code, but just do not know whether its necessary. When I turn to this page http://localhost:8080/onebusaway-webapp/, I can get the following text:

 

HTTP ERROR 404

Problem accessing /onebusaway-webapp/. Reason:

    There is no Action mapped for action name onebusaway-webapp.

Powered by Jetty://


I was just trying to figure how it works and how I can try my own transit-data on that. Maybe I would try to modify when its necessary, but I have no idea about that yet.Thanks again! So do you think I should just try the Quickstart Option?

 

 

Sonia

 


On Wednesday, 25 July 2012 14:39:25 UTC-7, Sean Barbeau wrote:

Sounds like you’re deploying just the API web application, not the full OneBusAway web interface.

 

The Quickstart option is relevant if you’re not interested in editing the OBA code, but just want to get a copy of OBA up and running:

https://github.com/OneBusAway/onebusaway-application-modules/wiki/GTFS-realtime-Quick-Start

 

So, if you’re not interested in editing code, stop reading now and follow the above QuickStart guide.

 

To see the normal OBA website interface when deploying from Eclipse, you’ll need to browse to this URL:

http://localhost:8080/onebusaway-webapp/

 

Check out this page for full instructions on getting your OBA instance up and running in Eclipse, if you haven’t seen it yet:

https://github.com/OneBusAway/onebusaway-application-modules/wiki/Developer-Guide

 

Sean

 

-Jeff

To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



 

--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/fx075hABmDQJ.

To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.

--

You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.

To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/U30XUgZ36NgJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

snowshine

unread,
Jul 26, 2012, 7:59:01 PM7/26/12
to onebusaway...@googlegroups.com
Hi MS,

Thank you for your help. As Leo has mentioned, we can run our own data on the quickstart version. I am on the process of installing it. There are some some other issues baffling me. One is that some plugins addresses seems don't work anymore. Another is that I encounter the following error report when I did according to this websitehttp://developer.onebusaway.org/modules/onebusaway-application-modules/current-SNAPSHOT/guides/transit-data-bundle-guide.html. It jumped out when I typed in the cmdline "java -Xmx1G -server -jar C:\Users\onebusaway-transit-data-federation-builder.jar". Thanks in advance.


2012-07-26 16:10:27,688 ERROR [FederatedTransitDataBundleCreatorMain.java:220] :
 error building transit data bundle
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in class path resource [org/onebusaway/container
/application-context-hibernate.xml]: Invocation of init method failed; nested ex
ception is org.hibernate.HibernateException: Hibernate Dialect must be explicitl
y set
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:190)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:425)
        at org.onebusaway.container.ContainerLibrary.createContext(ContainerLibr
ary.java:108)
        at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBun
dleCreator.run(FederatedTransitDataBundleCreator.java:173)
        at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBun
dleCreatorMain.run(FederatedTransitDataBundleCreatorMain.java:218)
        at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBun
dleCreatorMain.main(FederatedTransitDataBundleCreatorMain.java:91)
Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitl
y set
        at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.
java:80)
        at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java
:62)
        at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.ja
va:460)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
155)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101
)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1325)
        at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
ionConfiguration.java:867)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java:855)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
onFactory(LocalSessionFactoryBean.java:774)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
opertiesSet(AbstractSessionFactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
        ... 13 more


Sonia

snowshine

unread,
Jul 26, 2012, 8:05:16 PM7/26/12
to onebusaway...@googlegroups.com
Hi Sean,

Thank you for your reminders. But I have to add that I posted something by mistake, since when I type "java -Xmx1G -server -jar C:\Users\onebusaway-transit-data-federation-builder.jar" in the cmd window, everything seems to go smoothly, saying :
{java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Pro
gram Files\Java\jre6\bin, java.vm.version=20.8-b03, java.vm.vendor=Sun Microsyst
ems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=J
ava HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, sun.java.launcher=SU
N_STANDARD, user.country=CA, sun.os.patch.level=Service Pack 1, java.vm.specific
ation.name=Java Virtual Machine Specification, user.dir=C:\Users\Sun Na, java.ru
ntime.version=1.6.0_33-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironmen
t, java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed, os.arch=amd64, ja
va.io.tmpdir=C:\Users\SUNNA~1\AppData\Local\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Win
dows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\Windows\system32;C:\Window
s\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Fil
es (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.7.0_05\bin;., java.speci
fication.name=Java Platform API Specification, java.class.version=50.0, sun.mana
gement.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Us
ers\Sun Na, user.timezone=America/Los_Angeles, java.awt.printerjob=sun.awt.windo
ws.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.6, java.class
.path=C:\Users\onebusaway-transit-data-federation-builder.jar, user.name=Sun Na,
 java.vm.specification.version=1.0, sun.java.command=C:\Users\onebusaway-transit
-data-federation-builder.jar, java.home=C:\Program Files\Java\jre6, sun.arch.dat
a.model=64, user.language=en, java.specification.vendor=Sun Microsystems Inc., a
wt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.6.0
_33, java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ex
t, sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program F
iles\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Progr
am Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Progra
m Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\lib\modules\jdk.bo
ot.jar;C:\Program Files\Java\jre6\classes, java.vendor=Sun Microsystems Inc., fi
le.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, s
un.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows
, sun.cpu.isalist=amd64}
Usage:
  [args] gtfs_path [gtfs_path ...] output_directory
  [args] beans.xml output_directory

  Build a transit data bundle from GTFS feeds and other inputs.  The GTFS feeds
can either be specified directly on the
  command line or in a Spring beans.xml file (or combinations of both).  The tra
nsit data bundle is written to the
  specified output directory.

Arguments:

  -skipTo=name    Skip to the specified bundle building phase.
  -only=name      Only execute the specified bundle building phase.  Can be repe
ated.
  -skip=name      Skip the specified bundle building phase.  Can be repeated.
  -include=name   Activate the specified bundle building phase if it is disabled
 by default.  Can be repeated.

  -onlyIfDoesNotExist                  Only run the bundle building process if t
he bundle output directory does not
                                       already exist.
  -additionalResourcesDirectory=path   Any files in the specified directory will
 be copied into the transit data bundle
                                       output directory.

  -bundleKey=value     Specify a key that
  -randomizeCacheDir   Use a random directory name for the bundle cache.  Useful
 when multiple instances of the bundle
                       builder are being run in parallel against the same bundle
 directory.

  -useDatabaseForGtfs               Load GTFS into a database as opposed to in-m
emory.
  -dataSourceDriverClassName=value  Use the specified driver class-name for a GT
FS database JDBC data-source.
  -dataSourceUrl=value              Use the specified url for a GTFS database JD
BC data-source.
  -dataSourceUsername=value         Use the specified username for a GTFS databa
se JDBC data-source.
  -dataSourcePassword=value         Use the specified password for a GTFS databa
se JDBC data-source.

  -osm=path    Load OpenStreetMap data from the specified file instead of using
the OSM API.

For more documentation, see:

-SNAPSHOT/guides/transit-data-bundle-guide.html

but when I type 

C:\Users\Sun Na>java -Xmx1G -server -jar C:\Users\onebusaway-transit-data-federa
tion-builder.jar C:\Users\google_transit.zip  C:\Users\
the report with error appeared, as I posted in the last letter.

Thanks!

Sonia

-Jeff

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.



 

--
Jeff Maki
OpenPlans Transportation
917-388-9088
jm...@openplans.org

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/fx075hABmDQJ.

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/U30XUgZ36NgJ.

To post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.

Sean Barbeau

unread,
Jul 27, 2012, 10:26:41 AM7/27/12
to onebusaway...@googlegroups.com
Sorry, I don't have a lot of experience with the QuickStart bundle yet, so I'm not sure I can answer this question specifically.

I'm trying to document problems/fixes in a new Troubleshooting page on the wiki here:
https://github.com/OneBusAway/onebusaway/wiki/Troubleshooting

Most of the database problems I've seen is when something fails when trying to build the bundle or start the webapps, and the apps crash without releasing the lock on the database.  Your error below looks similar to one that I got in that circumstance.  You might want to try checking the above page with the problem/solution for database locks, and see if this resolves your issue.

Sean

cdmein

unread,
Jul 27, 2012, 6:02:12 PM7/27/12
to onebusaway...@googlegroups.com
Hi

I had a lock issue when adding the SMS webapp to a working OBA installation of the webapp, api and vehicle-tracking applications.

To get around this I simply added ;readonly=true to the database connection string. The various options are discussed here - http://hsqldb.org/doc/2.0/guide/dbproperties-chapt.html#dpc_connection_props

I imagine quite a few of the applications work in 'readonly' mode so maybe this will help - it fixed the SMS webapp issue for me.

One of the team also mentioned that the database connection is included because of a dependancy but is not actually used in the SMS webapp. This may be the case for other components too I guess.

Chris

Brian Ferris

unread,
Jul 28, 2012, 4:50:38 AM7/28/12
to onebusaway...@googlegroups.com
OBA Historical Context:

In the vanilla OBA-core user-interface applications (web, SMS, phone,
API), the database is used for managing user account information and
API keys (which are attached to user accounts). The HSQLDB is really
only meant for use in the quickstart or perhaps when using one of the
combined webapps where everything is running in the same web
application context. For more complex setups, a standalone RDBMS is
probably the best choice.

Brian
> --
> You received this message because you are subscribed to the Google Groups
> "onebusaway-developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/onebusaway-developers/-/32CUqmEOMo8J.
>
> To post to this group, send email to onebusaway...@googlegroups.com.
> To unsubscribe from this group, send email to
> onebusaway-devel...@googlegroups.com.

Frumin, Michael

unread,
Jul 29, 2012, 12:59:43 AM7/29/12
to onebusaway...@googlegroups.com
Brian, thanks. In both my and Mik's case we have multiple GTFS from multiple bus operators. But perhaps the difference between our situations and puget sound's is that our respective operators *have* worked together to make sure they use the same stop_id in their respective GTFS feeds.

Thanks,
Mike


----- Original Message -----
From: Brian Ferris [mailto:bdfe...@onebusaway.org]
Sent: Saturday, July 28, 2012 04:50 AM
To: onebusaway...@googlegroups.com <onebusaway...@googlegroups.com>
Subject: Re: [onebusaway-developers] ERROR [ContextLoader.java:220] : Context initialization failed--help!

Michael Scheper

unread,
Aug 5, 2012, 10:15:13 PM8/5/12
to onebusaway...@googlegroups.com
Sonya and Leo:

Did you guys ever get unstuck? I've been meaning to reply, especially since your project sounds really interesting. Accessibility is a particular interest of mine, but I have little formal knowledge in that area when it comes to cognitive disabilities—just a few ideas. I'd love to hear more about what you're working on.

Anyhow, I'm afraid I can only take some wild stabs at what the problem might be:
  • When I once saw that error, I think it had to do with my HSQLDB. Are you defining the dataSource bean somewhere in your data-sources.xml file? If not, try adding this:
    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
        <property name="url" value="jdbc:hsqldb:file://${java.io.tmpdir}/onebusaway_hsqldb_dataSource"/>
        <property name="username" value="sa"/>
        <property name="password" value=""/>
    </bean>

If you already had a dataSource defined, try deleting the directory referred to in the url property—and make sure it's a valid path. (My use of ${java.io.tempdir} is a bit of trickery; it should point to the system's temp directory (no idea where that might be under Windows, I'm afraid); it's not the name of an actual directory. Yours is probably something like C:\Users.) (Oh, a general Java tip: Things become less confusing when you use forward slashes (/) instead of backslashes (\) when specifying paths in Java.)
  • I'm no Windows expert, but C:\Users seems to be an unusual directory to work from. There's a small chance that this may be hindering things because of permissions.
Good luck,
Mik.
Reply all
Reply to author
Forward
0 new messages