OBA debugging in Eclipse

1,303 views
Skip to first unread message

Michael Scheper

unread,
Jul 3, 2012, 9:06:35 AM7/3/12
to onebusaway-developers
Hi again everyone,

I could use some advice on running the OBA webapps in Eclipse, to take advantage of its debugging capabilities.

My setup:
  • Tomcat 7
  • Maven 3.0.4
  • Eclipse Indigo
    • EGit 1.3
    • M2Eclipse 1.0
  • Java 1.6.0_31
  • Windows 7 (a compromise I made for the opportunity to work in the transit industry—no, really, this is a dream contract for me!)

I've connected EGit and M2Eclipse, and thus was able to right click on the onebusaway-application-modules repository and select 'Import Maven Projects'. All the code navigation features work.

One thing that doesn't work is Maven building in Eclipse. When I right-click onebusaway-combined-webapp in the Project Explorer and select Run As Maven Build... for a clean install, I get licence errors! The fail log is below†, but from subsequent runs from the shell, I've found that it's choking on the content of onebusaway-combined-webapp's build subdirectory. I don't have problems building from the command line (not the Windows command line anyhow—Cygwin is a another story, but Eclipse is just running under Windows, and the error I get in Cygwin is further along the build process.)

I'm not able to run the app in Eclipse, either. The first problem was getting Eclipse to recognise it as a webapp. My solution was opening onebusaway-combined-webapp Properties Project Facets and ticking Dynamic Web Module, Java and JavaScript. This made Eclipse complain about not being able to find things like HttpServletRequest, so I went into onebusaway-combined-webapp Properties Java Build Path Libraries and added Apache Tomcat v7.0. I'm still getting the error The function oba:resource is undefined at two locations in onebusaway-combined-webapp/src/main/assembly/full/WEB-INF/custom-header.jspx, which I guess means Eclipse isn't understanding the Maven dependencies.

Anyhow, I tried being cocky and I copied the structure under a working deployment of the webapp from my Linux server (of course it works—it's a real operating system! ;) ) to the tmp directory under my Eclipse workspace (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/onebusaway-combined-webapp) and changing data-sources.xml to use a local bundle. This works(!), but breakpoints don't. (And I haven't figured out where the Catalina logs go, either... they're not in the same directory as the access logs, and I can't find a catalina_logs directory on my system anywhere!) I have monitoring turned on, at the default port (6765). (I tried telnetting to that port to see if anything was there—no joy, but I have no idea whether it normally would, especially under Windows.) (The server port is correct, 8080.)

So, questions:

  • Am I going about this the right way?
  • How can I get breakpoints and other debugging features to work—anyone had any luck?
  • Why does Maven's licence plug-in complain when I try to build from Eclipse?
  • Any solutions for that one remaining error?
  • Has anyone gotten this to work under Windows?

Thanks,
MS.




So, here's that fail log, from doing Run As Maven Build... with a goal of clean install (or just install... I have similar problems selecting the other Maven run options.

[INFO] Checking licenses...
[DEBUG] Header jar:file:/C:/Users/ScheperM/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar!/LICENSE.txt:

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   [200+ lines of legal crap omitted]

[DEBUG] Number of execution threads: 12
[DEBUG] From: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp
[DEBUG] Including: [**]
[DEBUG] Excluding: [**/*~, **/#*#, **/.#*, **/%*%, **/._*, **/.repository/**, **/CVS, **/CVS/**, **/.cvsignore, **/RCS, **/RCS/**, **/SCCS, **/SCCS/**, **/vssver.scc, **/.svn, **/.svn/**, **/.arch-ids, **/.arch-ids/**, **/.bzr, **/.bzr/**, **/.MySCMServerInfo, **/.DS_Store, **/.metadata, **/.metadata/**, **/.hg, **/.hg/**, **/.git, **/.git/**, **/BitKeeper, **/BitKeeper/**, **/ChangeSet, **/ChangeSet/**, **/_darcs, **/_darcs/**, **/.darcsrepo, **/.darcsrepo/**, **/-darcs-backup*, **/.darcs-temp-mail, **/target/**, **/test-output/**, **/release.properties, **/pom.xml, **/dependency-reduced-pom.xml, **/cobertura.ser, **/.clover/**, **/.classpath, **/.project, **/.settings/**, **/*.iml, **/*.ipr, **/*.iws, **/MANIFEST.MF, **/*.jpg, **/*.png, **/*.gif, **/*.ico, **/*.bmp, **/*.tiff, **/*.tif, **/*.cr2, **/*.xcf, **/*.class, **/*.exe, **/*.md5, **/*.sha1, **/*.jar, **/*.zip, **/*.rar, **/*.tar, **/*.tar.gz, **/*.tar.bz2, **/*.gz, **/*.xls, **/META-INF/services/**, src/site/**, LICENSE.txt, eclipse/**, **/.gitignore, **/usage.txt, **/log4j.properties, **/data-sources.xml, **/*.action, **/*.ai, **/*.tagx, **/*.swf, **/*.mp3, **/*.wav, src/test/resources/**]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-full.xml [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\classes\application-context-webapp.xml [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\custom-header.jspx [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\classes\struts.xml [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\web.xml [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\api-only\WEB-INF\classes\application-context-webapp.xml [header style: xml_style]
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\api-only\WEB-INF\classes\application-context-webapp.xml
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-api-only.xml [header style: xml_style]
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\ui-only\WEB-INF\classes\struts.xml [header style: xml_style]
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\web.xml
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-api-only.xml
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\ui-only\WEB-INF\web.xml [header style: xml_style]
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\ui-only\WEB-INF\classes\struts.xml
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\custom-header.jspx
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\classes\struts.xml
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-full.xml
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\api-only\WEB-INF\web.xml [header style: xml_style]
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\ui-only\WEB-INF\web.xml
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-ui-only.xml [header style: xml_style]
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\api-only\WEB-INF\web.xml
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\WEB-INF\classes\application-context-webapp.xml
[DEBUG] Selected file: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\wiki\Index.wiki [header style: unknown]
[WARNING] Unknown file extension: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\full\wiki\Index.wiki
[INFO] Missing header in: M:\workspace\onebusaway-application-modules\onebusaway-combined-webapp\src\main\assembly\assembly-ui-only.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.854s
[INFO] Finished at: Tue Jul 03 16:30:04 EST 2012
[INFO] Final Memory: 10M/140M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:check (default) on project onebusaway-combined-webapp: Some files do not have the expected license header -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:check (default) on project onebusaway-combined-webapp: Some files do not have the expected license header
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Some files do not have the expected license header
	at com.google.code.mojo.license.LicenseCheckMojo.execute(LicenseCheckMojo.java:64)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Michael Scheper

unread,
Jul 5, 2012, 4:01:50 AM7/5/12
to onebusaway-developers
So here's what I've found so far:


1. Am I going about this the right way?

I'm still not sure. I've managed to get debugging working, but it's
hacky—see below. I'd appreciate more guidance.


2. How can I get breakpoints and other debugging features to work—
anyone had any luck?

It turns out the steps were i. Go home and get a good night's rest;
ii. Try the steps in my original post again, but this time click
'debug' instead of 'run'. D'oh!

A better, but still annoying way: i. Build using Maven on the command
line. ii. Manually explode the .war into Eclipse's Tomcat directory.
(I'm sure I could pass argument to Maven to do this for me if I knew
more about Maven, but if it's possible for Eclipse to just take care
of it all, I'd like that better.)

If I don't do it this way, code synchronisation doesn't work at all;
if I change the code, stepping through highlights the old locations
for the code.


3. Why does Maven's licence plug-in complain when I try to build from
Eclipse?

The work-around I've found: Use -Dlicense.skip=true when building
using Maven. (Non US users: It's 'license' in the noun form.)


Has anyone managed to get hot-deploy to work?


Thanks,
MS.

On Jul 3, 11:06 pm, Michael Scheper <goo...@michaelscheper.com> wrote:
> Hi again everyone,
>
> I could use some advice on running the OBA webapps in Eclipse, to take
> advantage of its debugging capabilities.
>
> My setup:
>
>       * Tomcat 7
>       * Maven 3.0.4
>       * Eclipse Indigo
>               * EGit 1.3
>               * M2Eclipse 1.0
>       * Java 1.6.0_31
>       * Windows 7 (a compromise I made for the opportunity to work in
>         the transit industry—no, really, this is a dream contract for
>         me!)
>
> I've connected EGit and M2Eclipse, and thus was able to right click on
> the onebusaway-application-modules repository and select 'Import Maven
> Projects'. All the code navigation features work.
>
> One thing that doesn't work is Maven building in Eclipse. When I
> right-click onebusaway-combined-webapp in the Project Explorer and
> select Run As → Maven Build... for a clean install, I get licence
> errors! The fail log is below†, but from subsequent runs from the shell,
> I've found that it's choking on the content of
> onebusaway-combined-webapp's build subdirectory. I don't have problems
> building from the command line (not the Windows command line anyhow—
> Cygwin is a another story, but Eclipse is just running under Windows,
> and the error I get in Cygwin is further along the build process.)
>
> I'm not able to run the app in Eclipse, either. The first problem was
> getting Eclipse to recognise it as a webapp. My solution was opening
> onebusaway-combined-webapp → Properties → Project Facets and ticking
> Dynamic Web Module, Java and JavaScript. This made Eclipse complain
> about not being able to find things like HttpServletRequest, so I went
> into onebusaway-combined-webapp → Properties → Java Build Path →
> Libraries and added Apache Tomcat v7.0. I'm still getting the error The
> function oba:resource is undefined at two locations in
> onebusaway-combined-webapp/src/main/assembly/full/WEB-INF/custom-header.jsp x, which I guess means Eclipse isn't understanding the Maven dependencies.
>
> Anyhow, I tried being cocky and I copied the structure under a working
> deployment of the webapp from my Linux server (of course it works—it's a
> real operating system! ;) ) to the tmp directory under my Eclipse
> workspace
> (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/onebusaway- combined-webapp) and changing data-sources.xml to use a local bundle. This works(!), but breakpoints don't. (And I haven't figured out where the Catalina logs go, either... they're not in the same directory as the access logs, and I can't find a catalina_logs directory on my system anywhere!) I have monitoring turned on, at the default port (6765). (I tried telnetting to that port to see if anything was there—no joy, but I have no idea whether it normally would, especially under Windows.) (The server port is correct, 8080.)
>
> So, questions:
>
>      1. Am I going about this the right way?
>      2. How can I get breakpoints and other debugging features to work—
>         anyone had any luck?
>      3. Why does Maven's licence plug-in complain when I try to build
>         from Eclipse?
>      4. Any solutions for that one remaining error?
>      5. Has anyone gotten this to work under Windows?
>
> Thanks,
> MS.
>
> ________________________________________________________________________
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Some files do not have the expected license header
>         at com.google.code.mojo.license.LicenseCheckMojo.execute(LicenseCheckMojo.java :64)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP luginManager.java:107)

Sean Barbeau

unread,
Jul 11, 2012, 5:44:33 PM7/11/12
to onebusaway...@googlegroups.com
Michael,
I think I'm encountering the same issue as you, at least with some overlap.  onebusaway-combined-webapp isn't recognized by Eclipse (Indigo 64-bit) as being a web application on my Windows 7 machine either, which is why I've been focusing on trying to deploy the onebusaway-api-webapp, onebusaway-federations-webapp, and the onebusaway-webapp components instead.

Because of the number of issues I've been having, I decided to start from scratch with a new Eclipse install.  I downloaded Eclipse Juno 64-bit, and installed the same plugins that you have listed (although I'm using Tomcat 5.5).

Some differences in my experiences so far of Indigo vs. Juno:

  1. Interestingly, when you right-click on the working directory in the Git Repositories view, the "Import Maven Projects" option is gone.  I have to now go to File->Import->Existing Maven Projects and browse to the directory to start the import.  However, at this point the Maven import is successful without any issues.  I was getting a random NullPointerException from Eclipse Indigo at this point when importing the project.  Looking at my plugins under Eclipse Indigo, I had a plugin "Maven Integration for WTP" installed.  I tried installing this in Eclipse Juno, and got the same NullPointerException.  Uninstalled, and it worked fine again.  So, my guess is that this plugin might be causing problems with Maven if you have it installed.
  2. After the successful Maven import (with Maven Integration for WTP uninstalled), doing a Build All seems to succeed.  I'm not doing a "Run As->Maven build", just a normal build, but it still seems to pull the Maven dependencies down and build properly.  However, at this point NONE of the projects are recognized as web applications, and I can't add any projects to my Tomcat 5.5 server.  Going to Properties->Project Facets, none of the webapps have entries under "Project Facets."  In Indigo, I could add onebusaway-api-webapp, onebusaway-federations-webapp, and the onebusaway-webapp, and these projects all had entries under Project Facets.
Not sure if this helps, but wanted to share some of my troubleshooting process since we seem to be dealing with related issues.  My one suggestion is DON'T install the "Maven Integration for WTP" plugin, since that seems to cause problems.  You might also want to target Tomcat 5.5 instead of 7.  I know there are some issues with web projects that can makes web apps that deployed fine under 5.5 break under 7.

Please keep me updated and let me know if you're able to get any further with deploying the onebusaway-combined-webapp from Eclipse.  I'm going to continue down the Juno path for a little while and see if I can get the webapps to deploy successfully before going back to Indigo.

Sean

Sean Barbeau

unread,
Jul 11, 2012, 5:57:01 PM7/11/12
to onebusaway...@googlegroups.com
Ok, just kidding.  Looks like the "Maven Integration for WTP" plugin may be needed for Eclipse to recognize the webapp projects as web applications.  I went back to Indigo and uninstalled this plugin before re-importing the projects, and now no projects are recognized as web applications in Indigo either.  When importing the projects, Eclipse did prompt me to install a different plugin, a "m2e connector for mavenarchiver pom properties."  However, that didn't seem to do anything...

Sean Barbeau

unread,
Jul 12, 2012, 12:54:16 PM7/12/12
to onebusaway...@googlegroups.com
Looks like this is the issue with Maven Integration for WTP that's preventing the onebusaway-webapp from importing correctly as a webapp in my Eclipse instance (both Indigo and Juno):
https://issues.sonatype.org/browse/MNGECLIPSE-2305

Sean Barbeau

unread,
Jul 13, 2012, 1:30:18 PM7/13/12
to onebusaway...@googlegroups.com
At this point I'm convinced that there are actually multiple underlying issues here, primarily with WTP and Maven plugins in Eclipse.  These cascade to affect a few other things, although the most severe impact seems to be on Google Web Toolkit in the onebusaway-webapp.

Updating to the developer build of Maven Integration for WTP (which you can install like a normal plugin in Eclipse using this update site) seems to get rid of the below NullPointerException issue with Maven in Eclipse:
http://download.jboss.org/jbosstools/builds/staging/m2eclipse-wtp-e37/all/repo/

However, I'm still getting more issues that prevent onebusaway-webapp from fully building in Eclipse.  Now I'm getting:
An internal error occurred during: "Updating Maven Project".
java.lang.NullPointerException
    at org.maven.ide.eclipse.wtp.WarPluginConfiguration.getWebResources(WarPluginConfiguration.java:88)
    at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.configure(WebProjectConfiguratorDelegate.java:176)
    at org.maven.ide.eclipse.wtp.AbstractProjectConfiguratorDelegate.configureProject(AbstractProjectConfiguratorDelegate.java:87)
    at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.configure(WTPProjectConfigurator.java:54)
    at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:109)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:414)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:351)
    at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:74)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

...which seems to be an issue with the WTP tools.  Still working on this to see if I can resolve it.

On a related note, when I started using Juno it defaulted to JDK 7, which also seemed to cause problems.  Editing eclipse.ini to point to JDK6 seems to resolve some of these.

I've also been testing Netbeans with OBA, and actually got the OBA api-webapp and transit-data-federation-webapp working (tested with URL http://localhost:8080/onebusaway-api-webapp/api/where/agencies-with-coverage.xml?key=TEST).  I'm still having Maven issues with onebusaway-webapp in Netbeans though, related to GWT, and I'll probably post separately about these issues.

Michael Scheper

unread,
Jul 15, 2012, 6:08:24 PM7/15/12
to onebusaway...@googlegroups.com
Thanks for journalling all your experiences, Sean. It's nice to hear it's not just me, but sad that there don't seem to be any solutions.

It sounds like you haven't found any environment that makes hot code updates work reliably. They sometimes work for me, and it seems to depend on which classes I change—I should start making notes about that. But most of the time, Eclipse tells me it can't do it, and once that happens, the only reliable way to get the code in the debugger to match deployed code is cleaning all the OBA projects in Tomcat, building the ones I'm interested in using Run As → Maven Build (three separate runs in my case—yuck!), 'cleaning the web server' in Tomcat, and exploding the war file there manually (I have a shell script to do that now, and clean up a few other things). It's a huge pain in the bum, and just a few of these cycles would add up to the time it would take to set up a better environment. Hopefully if we keep trying, we'll find one that works soon. =)

MS.

Jeff Maki

unread,
Jul 16, 2012, 11:11:38 AM7/16/12
to onebusaway...@googlegroups.com
I'm using Eclipse Indigo with Maven Integration for WTP version
0.12.0.20110421-1500 and everything is working for me. I had some
problems if I used a newer version of Eclipse or the WTP plugins, I
think because they use Maven 3, but not entirely sure. Anyway, hope
that's helpful...

-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/-/ojK4Y2Lr3LcJ.
>
> 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 16, 2012, 12:53:30 PM7/16/12
to onebusaway...@googlegroups.com
Thanks Jeff!

Would you mind answering a few more quick questions to help us match your Eclipse environment?
  1. What JDK/JRE version are you running Eclipse on?
  2. What version of Tomcat(?) are you using, and what JDK/JRE for this?
  3. Can you share a few screenshots of your "Eclipse Installation Details" page, particularly the entire "Features" tab?  This would help us match the numerous WTP and Maven plugin versions.
I assume you're running the MTA codebase and not using the stock onebusaway-webapp project, and I think one key difference is that OBA uses the Google Web Toolkit, and MTA does not (correct me if I'm wrong).  The onebusaway-webapp project seems to be the biggest sticking point for me, and I think GWT combined with WTP and Maven in Eclipse is the cause.  If you are using GWT, please let us know the SDK version and Eclipse plugin versions for this too.

Thanks!

Sean
> 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.

Jeff Maki

unread,
Jul 16, 2012, 9:42:24 PM7/16/12
to onebusaway...@googlegroups.com
Hello Sean,

Sure:

1)
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-10M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

2) apache-tomcat-6.0.32

3) Posted here: http://skitch.com/jmaki/e8na8/features

And yes, I'm running the MTA branch, but I have the onebusaway-webapp
project building on my local Eclipse instance, too. I just don't use
it.

Hope this helps,

-Jeff
>> > 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/-/Bh4-hTM9bEIJ.
>
> To post to this group, send email to onebusaway...@googlegroups.com.
> To unsubscribe from this group, send email to
> onebusaway-devel...@googlegroups.com.

Sean Barbeau

unread,
Jul 23, 2012, 4:22:27 PM7/23/12
to onebusaway...@googlegroups.com
MS,
Could you answer the following:
  1. Are you running 32bit or 64bit Windows 7?
  2. Are you running 32bit or 64bit Eclipse?
  3. Are you running Eclipse in 32bit or 64bit JDK1.6?

Thanks,
Sean
>> > 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/-/Bh4-hTM9bEIJ.
>
> 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 23, 2012, 5:51:27 PM7/23/12
to onebusaway...@googlegroups.com
Some minor progress - it seems that the missing "Import Maven Projects" when right-clicking on Git repo working folder it due to this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=383693

Apparently the Maven m2e Team Provider for EGit isn't compatible with EGit 2.X, which is the default install version of Egit.  If you install EGit 1.3 instead it resolves this issue:
http://download.eclipse.org/egit/updates-1.3/

You can then install the m2e EGit Team Provider in Eclipse via Window->Preferences->Maven->Discovery, then click "Open Catalog".  Scroll to m2e-egit Team Provider and check the box to install.

This still doesn't seem to resolve the below error when importing the Maven projects, which is the one I'm having a hard time getting around:

java.lang.NullPointerException
    at org.maven.ide.eclipse.wtp.WarPluginConfiguration.getWebResources(WarPluginConfiguration.java:88)
    at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.configure(WebProjectConfiguratorDelegate.java:176)
    at org.maven.ide.eclipse.wtp.AbstractProjectConfiguratorDelegate.configureProject(AbstractProjectConfiguratorDelegate.java:87)
    at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.configure(WTPProjectConfigurator.java:54)
    at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:109)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:414)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:240)
    at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:156)
    at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$1.doCreateMavenProjects(MavenImportWizard.java:164)
    at org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation.run(AbstractCreateMavenProjectsOperation.java:73)
    at org.eclipse.m2e.core.ui.internal.wizards.MavenImportWizard$3.runInWorkspace(MavenImportWizard.java:249)

    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Today I also tried Eclipse Java EE Indigo 32-bit on Windows 7 64-bit in 32-bit JDK 1.6.0_17, same issue (I've been working with a 64-bit tool chain so far).  Unfortunately I don't have a Windows 7 32-bit install to try on to eliminate the possibility of 64-bit issues sneaking in the loop.

Michael Scheper

unread,
Jul 24, 2012, 4:07:22 AM7/24/12
to onebusaway...@googlegroups.com
All three are 64 bit.

Cheers,
MS.

Michael Scheper

unread,
Jul 24, 2012, 4:29:07 AM7/24/12
to onebusaway...@googlegroups.com
Awesome that you're still plugging away at it, Sean. For weeks, I've been doing the 'Run As → Maven Build' in dependency order and running the script I was talking about, which makes the build cycle rather long for each change. This is only going to get worse, now that I'm pulling in some of the code that the New York guys have written. From their notes, seem to have to go through a lot of extra steps too.

I'm working with a couple of blokes who know more about Maven than me (not hard), and seem to have more Eclipse tricks up their sleeves, too. The fact that the onebusaway-combined-webapp packaging is a pom keeps throwing them, though... and Eclipse, it seems. Has anyone managed to get Eclipse to build/debug the combined webapp? Maybe it just doesn't work that way, but nobody's worried too much because they've been making all their changes within one project, and have just been deploying that? Maybe my lack of Maven experience is a luxury, because I can blame that when I have to admit I haven't worked out how to get Eclipse to deploy this project elegantly? :-)

Cheers,
MS.

Sean Barbeau

unread,
Jul 24, 2012, 3:11:30 PM7/24/12
to onebusaway...@googlegroups.com
MS,
I haven't deployed onebusaway-combined-webapp, instead I've been deploying the transit-data-federation-webapp, api-webapp, and webapp per this tutorial:
https://github.com/OneBusAway/onebusaway-application-modules/wiki/Developer-Guide

I'm not a web app developer and my experience with Maven is limited, but my gut feeling is that the onebusaway-combined-webapp is just a packaging tool to get a single WAR file to be deployed to a server, but its not intended to be debugged (since the code is actually in the three web app projects above and their dependencies).

More progress on general Eclipse deployments with the above three projects:
It seems that the NPE I'm getting is solely related to the onebusaway-webapp and the Maven Integration for WTP plugin.  I can close this Eclipse project, and build the rest of the OBA app module suite without a problem in most of configurations I've tested (although I still have to confirm runtime success).  In other words, the action to reproduce the NPE seems to be updating the Maven project configuration for the onebusaway-webapp project.

I'm currently matching Jeff's environment as closely as possible based on versions I can find, with my environment currently having these versions:
Eclipse Indigo EE 1.4.2... 64-bit on JDK 1.6 64bit, Windows 7 64bit
EGit, JGit 1.0.0.2011...
m2e 1.0.0.2011...
Maven Integration for WTP 0.14, 0.16 (tried both)
Maven SCM Handler for EGit 0.14.0.2011...

This section of the onebusaway-webapp pom.xml seems to be the problem:
<groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>

Eclipse gives this error on this element when trying to build:
null (org.apache.maven.plugins:maven-war-plugin:2.1.1:war:default-war:package)

If I override the version number to 2.2 (which seems to be the latest release - http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-war-plugin) by inserting <version>2.2</version> I get the same error (just replace 2.2.1 with 2.2).  If I walk the version number back to 2.0, I get the message:
"maven-war-plugin prior to 2.0.1 is not supported by m2e-wtp. Use maven-war-plugin version 2.0.1 or later"
(but no NPE - I'm assuming because the plugin isn't being run).  For 2.0.1, I get the same error as 2.2.1 and 2.2.

I also looked closer into the m2e WTP code from the stack trace:
org.maven.ide.eclipse.wtp.WarPluginConfiguration.getWebResources(WarPluginConfiguration.java:88)

Assuming this code matches my installed m2e WTP plugin, the NPE seems to be generated from referencing the webResources or resource tags within the pom.xml.

So, given the surrounding code, my current guess is that the NPE has something to do with either a) a (lack-off?) leading "/" on the path names, or b) the naming of element "<webResources>" instead of "<resources>".  Since a)  involves path characters this could also explain why it we're seeing and Jeff isn't, assuming Jeff is not using Windows, as it may be platform-specific.  However, with b) changing the <webResources> tag to <resources> does eliminate the NPE when updating Maven project configuration.  I'm not sure yet if this change breaks something else in the chain, though. 

These two issues are also referenced in the source code nearby line 88, so perhaps the NPE is a result of one of these fixes, if it doesn't happen in older (Jeff's?) versions:
//MECLIPSEWTP-97 support old maven-war-plugin configurations which used <webResource>
          // instead of <resource>
//MECLIPSEWTP-152 : Web resource processing fails when targetPath has a leading /

More to come...

Sean

Michael Scheper

unread,
Jul 24, 2012, 8:00:42 PM7/24/12
to onebusaway...@googlegroups.com
It's funny—I had one of those shower realisations this morning, where our deployment process would be easier if we just cherry-picked the webapps, instead of using the combined webapp—they'd coexist better with our in-house apps too. And then I thought, maybe that would make debugging easier as well. :-P

I just did some searching, and found that the 'recommendation' about the combined webapps was in the installation docs, not the developer guide. Still, I'll add a few notes in the developer docs about adding the web projects individually to the Eclipse web server. (I may have used Eclipse for the best part of a decade, but all the web debugging I've done in the past has been by deploying to a test server and attaching the Eclipse debugger manually—most of my previous work was on apps that required resources not convenient to a remote laptop. I only realised this week that all the background building it does when it points out problems with code actually ends up where Tomcat can see it too. I suspect that  marking them individually as webapps and adding them to Tomcat will make everything run much more smoothly.)

One thing I do know about Eclipse is that its project files can make heavy use of system properties. In the past, I've checked Eclipse project files into repositories so other developers could use them by just pointing a few properties to key parts of their environment, and then everything just works—as long as they're not running an old version of Eclipse! (I've done the same thing with OBA's data-sources.xml for our internal use.) It seems Maven makes a lot of that moot (I'm really loving being able to retrieve source and API docs so easily!), but from my experience, it doesn't make the webapps look like webapps, and I have to add web libraries to make most of the compiler errors go away. I wonder if it's possible to set up Eclipse projects to find a locally-installed web container and use that, and add the project files to the repository... or maybe there's just a Maven trick for cluing Eclipse in. I'll look into it, and I'll compare my setup and error messages to the one you've documented here.

Cheers,
Michael Scheper.

Barbeau, Sean

unread,
Jul 25, 2012, 9:58:45 AM7/25/12
to onebusaway...@googlegroups.com

Michael,

Eclipse not recognizing the webapps as web projects is due to you not having this plugin for Eclipse:

Maven Integration for WTP – download site for newest stable release - http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/

 

If you install that it should allow you to run the projects as web apps and deploy directly to Tomcat from within Eclipse without having to add web libraries, etc.

 

On a related note - I believe I may have figured out the NPE issue, I will post separately on this later today once I confirm.

 

Sean

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

Sean Barbeau

unread,
Jul 25, 2012, 2:32:41 PM7/25/12
to onebusaway...@googlegroups.com
Good news, I think I resolved the NPE issue when importing the onebusaway-webapp project and doing a Maven project configuration update.

So it appears the version issues with Eclipse plugins are actually red herrings. 

The real issue seems to be the empty closed element tag in the pom.xml for a targetPath for the LoginWidget, line 244 (http://goo.gl/Ntm1u):
<targetPath />

m2e WTP plugin (i.e., Maven Integration for WTP - versions 0.15.2.201... and below) seems to choke on this and throw the NullPointerException on Windows.

In our fork on Github I've changed this to:
<targetPath></targetPath>

With this change, the NPE goes away and the onebusaway-webapp and entire apps modules suite builds correctly (including Maven->Project Configuration update).

Before I do a pull request to merge this into the main project, I'd like to test 3 things:
1)  Does OBA still work at runtime as expected? - I'm working on this now
2)  Does this fix the issue for someone else running on Windows?
3)  Does this still build and run as expected on non-Windows?

Michael,
Could you clone the CUTR fork of the OBA apps modules and see if this builds correctly for you?

https://github.com/CUTR-at-USF/onebusaway-application-modules

Jeff,
Assuming you're not running on Windows - could you also clone and build this and see if it works on a non-Windows platform?

I'm testing currently with the following, which is basically the most recent release version of the entire toolchain (with the exception of JDK 1.6 instead of 1.7):
Required:
Eclipse Java EE Juno 64-bit (1.5.0...) on JDK 1.6 64-bit on Windows 7 64-bit
Eclipse EGit (2.0.0.2012...)
m2e - Maven Integration for Eclipse (1.1.0.2012...)
Maven Integration for WTP (0.15.0.2011...)
Optional (I think?):
m2e connector for build-helper-maven-plugin (0.15.0.2011...)
m2e connector for maven archiver pom properties (0.15.0.2011...)
EGit Import Support (2.0.0.2012...)

..although I believe this should also work as expected using other versions of Eclipse and the plugins.

Thanks,
Sean


On Wednesday, July 25, 2012 9:58:45 AM UTC-4, Sean Barbeau wrote:

Michael,

Eclipse not recognizing the webapps as web projects is due to you not having this plugin for Eclipse:

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.

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 27, 2012, 5:28:15 AM7/27/12
to onebusaway...@googlegroups.com
Sean:

I still have the setup I first mentioned, but with the Maven Integration for WTP plug-in Mike mentioned also installed. I see it's mentioned in 'Importing Source Code into Eclipse' now—thank you. Or maybe it's thank you for that page being there at all now!

Anyhow, I pulled that repository and selected 'Import Maven Project', and the result had five 'problems':
  • Two in jQuery (but I find Eclipse often looks down its nose at jQuery)
  • Missing required attribute "name" in stop-problem-report-summaries.jspx line 77
  • Execution default-cli of goal org.apache.maven.plugins:maven-resources-plugin:2.4.2:copy-resources failed. (org.apache.maven.plugins:maven-war-plugin:2.1.1:war:default-war:package) pom.xml line 233
  • An error occurred while filtering resources
Certainly better than the origin!

Next, I added all the webapps (six of them) to my Tomcat server, and I added/changed the three data-sources.xml files according to https://github.com/OneBusAway/onebusaway-application-modules/wiki/Developer-Guide—I literally did a search-and-replace for /path/to/your/transit/bundle and left everything else alone.

First time I tried running it in the debugger, I ran out of memory. :-) I still had the default -Xms40m -Xmx512m set in my eclipse.ini file, so I cranked it up to -Xms128m -Xmx1g and added -XX:MaxPermSize=512m to my JVM setting, and tried again.

The sms-webapp, phone-webapp and plain ol' webapp had fatal exceptions; they seemed to be fighting over EHCache. Then I RTFM and saw that I only needed the three under 'Running Tomcat'—thank you again, Sean! ;-) I haven't managed to get past this error, though:

2012-07-27 18:54:02,445 ERROR [JDBCExceptionReporter.java:101] : Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@4a6ee25[file =M:\onebusaway\CUTR-at-USF\ptips_gtfs_bundle\org_onebusaway_users.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2012-07-27 08:54:01 heartbeat - read: -240 ms.

I terminated and deleted the .lck files... hell, I even did rm -R ~/onebusaway/CUTR-at-USF/ptips_gtfs_bundle/org_onebusaway_**, but it's still unhappy. (I'm using cygwin, BTW, hence the inconsistency in path styles—Eclipse is just running in plain ol' Windows. The dataSource url property value in onebusaway-webapp/src/main/resources/data-sources.xml is "jdbc:hsqldb:file:M:/onebusaway/CUTR-at-USF/ptips_gtfs_bundle/org_onebusaway_users".) So onebusaway-webapp won't start. onebusaway-api-webapp and onebusaway-transit-data-federation-webapp are working, though, and that's a lot further I've ever gotten without running Maven from the command line!

Any quick/duh solutions for this one? Are the api-webapp and plain webapp somehow fighting over it? Something to do with that maven error I mentioned above, perhaps?

Huge thanks in any case, Sean. I really wish these resources were here when I started—I'd honestly be a week ahead of where I am now if they were!

Cheers,
MS.

Barbeau, Sean

unread,
Jul 27, 2012, 10:36:28 AM7/27/12
to onebusaway...@googlegroups.com

MS,

I’m getting the same database lock issue now, and deleting the lock files doesn’t seem to help me now either (this solution worked earlier with the same problem).  I’m not sure if this is a result of my commit to our CUTR fork, or some other issue.

 

I did find this solution for what seems to be the same problem:

http://stackoverflow.com/questions/3968595/database-lock-acquisition-failure-and-hsqldb

 

But haven’t tried it out yet.  I don’t know if switching from a file reference to the db reference would cause any other issues. 

 

I’m trying to document problems/solutions in a new Troubleshooting page:

https://github.com/OneBusAway/onebusaway/wiki/Troubleshooting

 

So if you figure this out, please feel free to add to this page. I have a few other things on my plate now so likely won’t get back to this until late next week.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Michael Scheper
Sent: Friday, July 27, 2012 5:28 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

Sean:

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.

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/-/XFeXYvwPfBsJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

Jeff Maki

unread,
Jul 27, 2012, 11:39:40 AM7/27/12
to onebusaway...@googlegroups.com
You can't have multiple webapps using the same HSQLDB database in the bundle directory, since when one locks it, the other can't access it. So either duplicate the bundle multiple times so each has its own HSQLDB file, or use a regular relational DB like PostgreSQL or MySQL which doesn't lock the file in the same way.

-Jeff

Barbeau, Sean

unread,
Jul 27, 2012, 3:30:20 PM7/27/12
to onebusaway...@googlegroups.com

Jeff,

Interesting…So the tutorial from the Developers Guide page below wouldn’t work as written:

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

 

…where you’re deploying transit-data-fed webapp, api-webapp, and webapp to the same Tomcat instance with the same bundle directory?

 

Sean

Michael Scheper

unread,
Jul 29, 2012, 10:43:56 PM7/29/12
to onebusaway...@googlegroups.com
It seems not to be that simple. I've got the three webapps pointing to a real DBMS now, but now onebusaway-webapp won't start because of this:

30/07/2012 11:45:56 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheMBeanRegistration' defined in class path resource [org/onebusaway/container/application-context.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=org.onebusaway.transit_data_federation_webapp.cacheManager
[...]
Caused by: net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=CacheManager,name=org.onebusaway.transit_data_federation_webapp.cacheManager

One of the other apps (almost certainly the transit data federation webapp) is already registering the EHCache bean, and the onebusaway-webapp is trying to create its own, additional one. I've tried changing the cacheManager.cacheManagerName property to various things, including 'org.onebusaway.cacheManger'; I've tried giving the transit data federation app its own databases, etc. Any other suggestions or success stories?

Interestingly, out of the three caches I see started in the logs (one for each webapp, perhaps?), one of them is storing the cache in the bundle directory, while the other two are trying to use the same location in the Windows temp directory.

Thanks,
MS.

-Jeff

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.

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/-/XFeXYvwPfBsJ.

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 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 post to this group, send email to onebusaway-developers@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.

Jeff Maki

unread,
Jul 29, 2012, 10:56:01 PM7/29/12
to onebusaway...@googlegroups.com
This exception is actually expected in some cases--we used to get tons of these on the pilot project in NYC. The NYC branch, FWIW, doesn't seem to get these given it's revised use of ehcache. 

But the fix was to erase the .cache and .index files in the bundle directory, and that seemed to fix it. Otherwise, they are supposedly safe to ignore (that is, the cache supposedly still works--I think this is just an exception about creating some management bean (beans for beans, right?) that isn't directly used by the cache itself. 

This never caused my webapp not to start, though--are you sure there isn't another error buried in there somewhere? 

Failing all the above, maybe try restarting the machine to clear out the windows temp directory just to see if that makes any difference?

-Jeff

To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/1YKj6Vnmnx0J.
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.

Michael Scheper

unread,
Jul 29, 2012, 11:22:14 PM7/29/12
to onebusaway...@googlegroups.com
Jeff: Thanks for the quick response.

It's the only 'ERROR' in the log, and all the 'SEVERE' entries stem from it, and while I haven't gone so far as restarting my environment, I've certainly removed the cache directory under the temp directory a couple of times.

For now, I'm just going to create a separate bundle for each app, like you suggested before. But could you tell me whether the bundle-updating part of your Transit Data Manager will work with HSQLDB? Did you use the Eclipse debugger to develop that at all?

Thanks,
MS.
-Jeff

-Jeff

>> > 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/-/Bh4-hTM9bEIJ.
>
> To post to this group, send email to onebusaway-developers@googlegroups.com.
> To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>
> To post to this group, send email to onebusaway-developers@googlegroups.com.
> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.
To post to this group, send email to onebusaway-developers@googlegroups.com.

To unsubscribe from this group, send email to onebusaway-developers+unsubscri...@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/-/XFeXYvwPfBsJ.
To post to this group, send email to onebusaway-developers@googlegroups.com.

To unsubscribe from this group, send email to onebusaway-developers+unsubscri...@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 post to this group, send email to onebusaway-developers@googlegroups.com.

To unsubscribe from this group, send email to onebusaway-developers+unsubscri...@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 post to this group, send email to onebusaway-developers@googlegroups.com.

To unsubscribe from this group, send email to onebusaway-developers+unsubscri...@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/-/1YKj6Vnmnx0J.
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.

Michael Scheper

unread,
Aug 1, 2012, 12:10:55 AM8/1/12
to onebusaway...@googlegroups.com
Hey, does Team→Compare With work for you guys? The only option I ever see is a disabled 'Each Other'.

Also, Sean: I think I'm seeing the NPE you were talking about when I go back to the origin, but my project's already been imported—I see an 'internal error' NPE, when I right-click on onebusaway-webapps and select Maven
→Update Project Configuration. You never found a solution for that, right? I initially imported it without seeing errors, but that was before I installed Maven Integration for WTP.

MS.

Barbeau, Sean

unread,
Aug 1, 2012, 9:33:23 AM8/1/12
to onebusaway...@googlegroups.com

MS,

I’m using Eclipse Juno EE 64-bit with the most recent release version of the plugins now, and I don’t have a “Team->Compare With”.  I do have a “Compare With” (not under “Team”), and these are the options I see:

“Each Other” (disabled)

“Commit”

“Git Index with Head” (disabled)

“Head Revision”

“Previous Revision”

“Branch, Tag, or Reference..”

“Git Index”

 

The “Maven->Update Project Configuration” NPE disappears with this fix, which changes the format of an empty tag in the onebusaway-webapp pom.xml file:

https://github.com/CUTR-at-USF/onebusaway-application-modules/commit/0ab3b4812da885d56bd00c7c8e6f05a04f56e218

 

I opened an issue on this as well in the main OBA repo:

https://github.com/OneBusAway/onebusaway-application-modules/issues/19

 

I haven’t had a chance to do much testing since I found this fix, so I don’t know if it has other consequences.  Please let me know if this works properly for you, and if so I’ll do a pull request to get this commit into the main OBA repo.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Michael Scheper
Sent: Wednesday, August 01, 2012 12:11 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

Hey, does Team→Compare With work for you guys? The only option I ever see is a disabled 'Each Other'.

-Jeff

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Jeff Maki
Sent: Friday, July 27, 2012 11:40 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

You can't have multiple webapps using the same HSQLDB database in the bundle directory, since when one locks it, the other can't access it. So either duplicate the bundle multiple times so each has its own HSQLDB file, or use a regular relational DB like PostgreSQL or MySQL which doesn't lock the file in the same way.

 

-Jeff

On Fri, Jul 27, 2012 at 10:36 AM, Barbeau, Sean <bar...@cutr.usf.edu> wrote:

MS,

I’m getting the same database lock issue now, and deleting the lock files doesn’t seem to help me now either (this solution worked earlier with the same problem).  I’m not sure if this is a result of my commit to our CUTR fork, or some other issue.

 

I did find this solution for what seems to be the same problem:

http://stackoverflow.com/questions/3968595/database-lock-acquisition-failure-and-hsqldb

 

But haven’t tried it out yet.  I don’t know if switching from a file reference to the db reference would cause any other issues. 

 

I’m trying to document problems/solutions in a new Troubleshooting page:

https://github.com/OneBusAway/onebusaway/wiki/Troubleshooting

 

So if you figure this out, please feel free to add to this page. I have a few other things on my plate now so likely won’t get back to this until late next week.

 

Sean

 

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway...@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.

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/-/XFeXYvwPfBsJ.

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 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 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/-/1YKj6Vnmnx0J.

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/-/Y_4RzkAdqS0J.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.

Sean Barbeau

unread,
Aug 2, 2012, 5:44:22 PM8/2/12
to onebusaway...@googlegroups.com
MS,
Did you figure out the ehCacheMBeanRegistration issue below?  I'm having the exact same error in Eclipse if I point the webapp, api-webapp, and transit-data-fed-webapp at three different copies of bundle using the default HSQLDB setup.

Sean

Michael Scheper

unread,
Aug 4, 2012, 5:52:59 PM8/4/12
to onebusaway...@googlegroups.com
Sean: Awesome you sussed that out. Thank you! Your efforts are certainly making my life easier. Thanks for all the work on the docs, too.

I really wish I could return the favour by saying I've found a fix for the ehCacheMBeanRegistration issue, but I haven't. There's some stuff I'm burning midnight oil to get ready for performance testing, so for now, I've gone back to deploying the combined webapp by exploding the war manually into Eclipse's Tomcat directory. I haven't given up, though.

BTW, you're right: 'Compare With' isn't under 'Team'—I still look for it there sometimes. I'll try updating to Juno and see if it works there.

Thanks,
MS.


On Wednesday, August 1, 2012 11:33:23 PM UTC+10, Sean Barbeau wrote:

MS,

I’m using Eclipse Juno EE 64-bit with the most recent release version of the plugins now, and I don’t have a “Team->Compare With”.  I do have a “Compare With” (not under “Team”), and these are the options I see:

-Jeff

-Jeff

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

>> > To unsubscribe from this group, send email to

>> > 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/-/Bh4-hTM9bEIJ.
>

> To post to this group, send email to onebusaway-developers@googlegroups.com.

> To unsubscribe from this group, send email to

> 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/-/Jxnr8t3QQnwJ.

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/-/XFeXYvwPfBsJ.

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 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 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/-/1YKj6Vnmnx0J.

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/-/Y_4RzkAdqS0J.

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.

Frumin, Michael

unread,
Aug 4, 2012, 6:46:03 PM8/4/12
to onebusaway...@googlegroups.com
Mik, please do me a favor: please confirm that in terms of web service API's and UI's, you are working with the straight up OBA core.

If that is the case, I wonder what your thoughts are in terms of how attached to that you are, or whether that has just been the path of least resistence for now. The reason that I ask is that we are trying to roadmap a dovetailing of sorts between the OBA core and OBA-NYC, and at the current time this road map is not focused on supporting the original UI's. An open question in this analysis is whether the OBA API/webservices should continue to include real-time data, or just the static/discovery methods.

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

Michael Scheper

unread,
Aug 5, 2012, 5:33:07 PM8/5/12
to onebusaway...@googlegroups.com
I've been doing all my work on 'straight up' OBA, because (a) as you said, it was the path of least resistence (initial quick attempts on getting it to build didn't go well), and (b) that's what all the docs were for, so that's what our app developers have been using.

However, right at the moment, I'm attempting to include some OBA-NYC projects, namely onebusaway-nyc-transit_data_federation and its dependencies, to swap out the transit bundles. Since the POMs refer to core OBA projects, I'm hoping it'll play nicely with the mods I've made to it. We'll see.

Thanks,
MS.

Sean Barbeau

unread,
Aug 7, 2012, 10:54:54 AM8/7/12
to onebusaway...@googlegroups.com
Mike F.,
My two cents on future OBA core roadmap:  We should keep the original OBA real-time APIs, since we will inherit a number of open-source mobile apps (Android, iPhone, Windows Phone 7) that have been extensively tested and deployed against the original OBA real-time APIs. 

These apps on different platforms aren't trivial to implement, and it would be a shame to loose these in a transition to a new code base.  I see these open-source apps as one of the biggest assets of the OBA project in general.

Sean

Sheldon A. Brown

unread,
Aug 7, 2012, 11:24:49 AM8/7/12
to onebusaway...@googlegroups.com
There are two reasons (that I know of) why that exception can occur:

1) as Jeff said, your cache can be corrupted. Clearing out your
bundle directory and re-deploying the bundle is the easiest way to fix
it
2) you are trying to load multiple bundles in the same JVM. While this
is actually possible, it requires an extra bit of configuration.

In data-sources.xml, tell ehCache to use a different name for the cache:

<bean class="org.onebusaway.container.spring.PropertyOverrideConfigurer">
<property name="properties">
<props>
<prop key="cacheManager.cacheManagerName">org.onebusaway.nyc.webapp.cacheManager</prop>
</props>
</property>
</bean>

The name can be anything, just make sure it doesn't conflict with one
already in use.

Sheldon
>> >> > 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/-/Bh4-hTM9bEIJ.
>> >
>> > To post to this group, send email to
>> > onebusaway...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > onebusaway-devel...@googlegroups.com.
>> >> > 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/-/Bh4-hTM9bEIJ.
>> >
>> > 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/-/Jxnr8t3QQnwJ.
>> 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/-/XFeXYvwPfBsJ.
>> 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 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 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/-/1YKj6Vnmnx0J.
> To post to this group, send email to onebusaway...@googlegroups.com.
> To unsubscribe from this group, send email to
> onebusaway-devel...@googlegroups.com.

Sean Barbeau

unread,
Aug 7, 2012, 3:36:10 PM8/7/12
to onebusaway...@googlegroups.com
Sheldon,
Thanks!  I can confirm that this works on my machine (Windows 7 64bit with Eclipse Juno EE 64bit) when using bundles in separate directories.  I've updated the data-sources.xml files accordingly on the Developer Installation Guide page to include this property with a unique value for each webapp, and added an entry on the Troubleshooting page for this issue.

One additional question - we still need separate bundles in different directories for each webapp when using HSQLDB, though, right?  There is no way around this via data-sources.xml configuration, other than using a DBMS?

Sean
>> >> > 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/-/Bh4-hTM9bEIJ.
>> >
>> > 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.
>> >> > 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/-/Bh4-hTM9bEIJ.
>> >
>> > 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/-/Jxnr8t3QQnwJ.
>> 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/-/XFeXYvwPfBsJ.
>> 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 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 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/-/1YKj6Vnmnx0J.
> 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.

Sheldon A. Brown

unread,
Aug 8, 2012, 10:27:36 AM8/8/12
to onebusaway...@googlegroups.com
Actually I'm not sure. Because scaling is currently our concern, our
focus is the opposite; we place one maven webapp in one Tomcat
instance on one server. This is why the default configuration makes
those assumptions and why I haven't run into this problem. As we do
more marketing and demo versions, inevitably we will face these
problems and deal with them, unless you beat me to them!

I will say I'd be tempted to run separate tomcat instances on multiple
ports to avoid this problem, but that brings with it its own
configuration issues. However, debugging Tomcat configuration is much
easier that debugging Spring configuration in my experience. The
"local-multi-port" profiles in maven are there to support this, BTW.

If you've tried it out and are getting exceptions, post them and I'll
take a look.

Sheldon
>> >> >> > 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/-/Bh4-hTM9bEIJ.
>> >> >
>> >> > To post to this group, send email to
>> >> > onebusaway...@googlegroups.com.
>> >> > To unsubscribe from this group, send email to
>> >> > onebusaway-devel...@googlegroups.com.
>> >> >> > 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/-/Bh4-hTM9bEIJ.
>> >> >
>> >> > 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/-/Jxnr8t3QQnwJ.
>> >> 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/-/XFeXYvwPfBsJ.
>> >> 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 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 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/-/1YKj6Vnmnx0J.
>> > 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/-/yn47SPJJH6sJ.
> 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,
Aug 10, 2012, 4:31:20 PM8/10/12
to onebusaway...@googlegroups.com
Sean, good points.

I think it's worth exploring what it would take to transition those apps to use SIRI for the real-time portion only. Isn't that confluent with a project you have going anyway? I discussed this briefly with Brian last week and he thought it was a real but not crazy effort to make this transition.

The question really is this -- what is more costly and difficult: (a) updating a few mobile apps to get real-time data from an easy-to-use SIRI API, or (b) maintaining/supporting 2 sets of real-time API's and UI's from now until forever...

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

Barbeau, Sean

unread,
Aug 10, 2012, 4:40:45 PM8/10/12
to onebusaway...@googlegroups.com

Mike,

I agree that the long-term roadmap should be SIRI-based for the mobile APIs, and if it’s less effort in the immediate timeframe to move the apps over to SIRI than it is to continue support (on a temporary basis) for the existing OBA real-time APIs, then I agree transitions to the SIRI APIs in the mobile apps makes the most sense.

 

As long as I have time/budget remaining in the project I’m currently working on I’d like to add the SIRI APIs to the OBA Android app.  Or, if we think we can get the existing developers to move to the SIRI APIs for all the apps, even better.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Frumin, Michael
Sent: Friday, August 10, 2012 4:31 PM
To: 'onebusaway...@googlegroups.com'
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

Sean, good points.

I think it's worth exploring what it would take to transition those apps to use SIRI for the real-time portion only. Isn't that confluent with a project you have going anyway? I discussed this briefly with Brian last week and he thought it was a real but not crazy effort to make this transition.

The question really is this -- what is more costly and difficult: (a) updating a few mobile apps to get real-time data from an easy-to-use SIRI API, or (b) maintaining/supporting 2 sets of real-time API's and UI's from now until forever...

Thanks,
Mike

 

From: Sean Barbeau [mailto:bar...@cutr.usf.edu]
Sent: Tuesday, August 07, 2012 10:54 AM
To: onebusaway...@googlegroups.com <onebusaway...@googlegroups.com>
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse
 

Mike F.,
My two cents on future OBA core roadmap:  We should keep the original OBA real-time APIs, since we will inherit a number of open-source mobile apps (Android, iPhone, Windows Phone 7) that have been extensively tested and deployed against the original OBA real-time APIs. 

These apps on different platforms aren't trivial to implement, and it would be a shame to loose these in a transition to a new code base.  I see these open-source apps as one of the biggest assets of the OBA project in general.

Sean

On Saturday, August 4, 2012 6:46:03 PM UTC-4, Michael Frumin wrote:

Mik, please do me a favor: please confirm that in terms of web service API's and UI's, you are working with the straight up OBA core.

If that is the case, I wonder what your thoughts are in terms of how attached to that you are, or whether that has just been the path of least resistence for now. The reason that I ask is that we are trying to roadmap a dovetailing of sorts between the OBA core and OBA-NYC, and at the current time this road map is not focused on supporting the original UI's. An open question in this analysis is whether the OBA API/webservices should continue to include real-time data, or just the static/discovery methods.

Thanks,
Mike

 

From: Michael Scheper [mailto:goo...@michaelscheper.com]
Sent: Saturday, August 04, 2012 05:52 PM
To: onebusaway...@googlegroups.com <onebusaway...@googlegroups.com>
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse
 

Sean: Awesome you sussed that out. Thank you! Your efforts are certainly making my life easier. Thanks for all the work on the docs, too.



I really wish I could return the favour by saying I've found a fix for the ehCacheMBeanRegistration issue, but I haven't. There's some stuff I'm burning midnight oil to get ready for performance testing, so for now, I've gone back to deploying the combined webapp by exploding the war manually into Eclipse's Tomcat directory. I haven't given up, though.

BTW, you're right: 'Compare With' isn't under 'Team'—I still look for it there sometimes. I'll try updating to Juno and see if it works there.

Thanks,
MS.

On Wednesday, August 1, 2012 11:33:23 PM UTC+10, Sean Barbeau wrote:

MS,

I’m using Eclipse Juno EE 64-bit with the most recent release version of the plugins now, and I don’t have a “Team->Compare With”.  I do have a “Compare With” (not under “Team”), and these are the options I see:

“Each Other” (disabled)

“Commit”

“Git Index with Head” (disabled)

“Head Revision”

“Previous Revision”

“Branch, Tag, or Reference..”

“Git Index”

 

The “Maven->Update Project Configuration” NPE disappears with this fix, which changes the format of an empty tag in the onebusaway-webapp pom.xml file:

https://github.com/CUTR-at-USF/onebusaway-application-modules/commit/0ab3b4812da885d56bd00c7c8e6f05a04f56e218

 

I opened an issue on this as well in the main OBA repo:

https://github.com/OneBusAway/onebusaway-application-modules/issues/19

 

I haven’t had a chance to do much testing since I found this fix, so I don’t know if it has other consequences.  Please let me know if this works properly for you, and if so I’ll do a pull request to get this commit into the main OBA repo.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Michael Scheper
Sent: Wednesday, August 01, 2012 12:11 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

Hey, does Team→Compare With work for you guys? The only option I ever see is a disabled 'Each Other'.

-Jeff

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Jeff Maki
Sent: Friday, July 27, 2012 11:40 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

You can't have multiple webapps using the same HSQLDB database in the bundle directory, since when one locks it, the other can't access it. So either duplicate the bundle multiple times so each has its own HSQLDB file, or use a regular relational DB like PostgreSQL or MySQL which doesn't lock the file in the same way.

 

-Jeff

On Fri, Jul 27, 2012 at 10:36 AM, Barbeau, Sean <bar...@cutr.usf.edu> wrote:

MS,

I’m getting the same database lock issue now, and deleting the lock files doesn’t seem to help me now either (this solution worked earlier with the same problem).  I’m not sure if this is a result of my commit to our CUTR fork, or some other issue.

 

I did find this solution for what seems to be the same problem:

http://stackoverflow.com/questions/3968595/database-lock-acquisition-failure-and-hsqldb

 

But haven’t tried it out yet.  I don’t know if switching from a file reference to the db reference would cause any other issues. 

 

I’m trying to document problems/solutions in a new Troubleshooting page:

https://github.com/OneBusAway/onebusaway/wiki/Troubleshooting

 

So if you figure this out, please feel free to add to this page. I have a few other things on my plate now so likely won’t get back to this until late next week.

 

Sean

 

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Michael Scheper
Sent: Friday, July 27, 2012 5:28 AM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

Sean:

From: onebusaway...@googlegroups.com [mailto:onebusaway...@googlegroups.com] On Behalf Of Michael Scheper
Sent: Tuesday, July 24, 2012 8:01 PM
To: onebusaway...@googlegroups.com
Subject: Re: [onebusaway-developers] Re: OBA debugging in Eclipse

 

It's funny—I had one of those shower realisations this morning, where our deployment process would be easier if we just cherry-picked the webapps, instead of using the combined webapp—they'd coexist better with our in-house apps too. And then I thought, maybe that would make debugging easier as well. :-P

>> > 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/-/Bh4-hTM9bEIJ.
>

> 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.



>> > 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/-/Bh4-hTM9bEIJ.
>

> 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/-/Jxnr8t3QQnwJ.

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/-/XFeXYvwPfBsJ.

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 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 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/-/1YKj6Vnmnx0J.

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/-/Y_4RzkAdqS0J.

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/-/LbRN7D_rRsYJ.

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/-/TAVfAuHSuxUJ.
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.

Reply all
Reply to author
Forward
0 new messages