OneBusAway / onebusaway-application-modules

The core OneBusAway application suite.
https://github.com/OneBusAway/onebusaway-application-modules/wiki
Other
207 stars 133 forks source link

Casting same class - loader issues on api-webapp start #296

Open Greg0 opened 2 years ago

Greg0 commented 2 years ago

Hi, I'm facing problem with quickstart guide.

I'm following instructions from QuickStart Guide

I've downloaded version 2.0.0 of api-webapp

Step 1. Generating bundle

Done with no problems by JDK 8.

Step 2. Run webapp

And on webapp start I have errors ClassCastException from casting same clasess. I've read that is problem with many loaders working on same classes.

java.lang.ClassCastException: org.apache.commons.cli.CommandLine cannot be cast to org.apache.commons.cli.CommandLine
    at org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext.loadBeanDefinitions(BootstrapWebApplicationContext.java:54)

FULL LOG: https://gist.github.com/Greg0/3dfd05e0b6b2099356c7d97762a002fc

There is nothing working on localhost:8080 after that.

sheldonabrown commented 2 years ago

Hi Greg,

the quickstart application is deprecated in 2.0 sadly -- I just haven't had time to maintain it.

The admin webapp replaces the functionality of the quickstart application, but that requires some documentation to make that more clear. I hope this points you in the right direction.

Greg0 commented 2 years ago

So can I somehow use api-webapp instead of admin-webapp just to host API for mobile app?

sheldonabrown commented 2 years ago

No, sorry. The admin-webapp contains a web interface that guides you through the bundle build process, and then hosts the bundles for the api-webapp to download.

But with that said, the admin-webapp is optional if you build the bundles by hand.

Sheldon

On Mon, Oct 11, 2021 at 7:07 AM Grzegorz K @.***> wrote:

So can I somehow use api-webapp instead of admin-webapp just to host API for mobile app?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OneBusAway/onebusaway-application-modules/issues/296#issuecomment-939926179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHUSHLP4C5BEN53NL3W5N3UGLAQHANCNFSM5FXYTUWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.