Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Greg0 opened this issue Oct 11, 2021 · 3 comments
Open

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

Greg0 opened this issue Oct 11, 2021 · 3 comments

Comments

@Greg0
Copy link

Greg0 commented Oct 11, 2021

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
Copy link
Member

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
Copy link
Author

Greg0 commented Oct 11, 2021

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

@sheldonabrown
Copy link
Member

sheldonabrown commented Oct 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants