-
Notifications
You must be signed in to change notification settings - Fork 165
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
NoClassDefFoundError: javax/xml/bind/JAXBException #149
Comments
does your src/main/resources/META-INF/persistence.xml exist? do all your tables exist in you DB and the login details correct? I have not see this before but the errors when the DB connections are not working can be cryptic. |
As it's running the jar-with-dependencies, I think you probably mean cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar\META-INF, yes? There's a persistence.xml built into that. I did the db setup and it runs fine under eclipse so I assume the db is ok. |
Could it be something to do with the change of hibernate version? |
so may be the jvm? may be something needs to be set on the command Line.
The following oralce JVM works for me ok.
…On Mon, Apr 2, 2018 at 3:07 AM, IanWorthington ***@***.***> wrote:
Could it be something to do with the change of hibernate version?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AENHaiDehvnHPoXwUXHd1qHnT7kyx1DKks5tkYflgaJpZM4TCp7a>
.
|
java version "1.8.0_161"
On Mon, Apr 2, 2018 at 7:01 AM, Douggie melville-clarke <
douggie@melvilleclarke.com> wrote:
… so may be the jvm? may be something needs to be set on the command Line.
The following oralce JVM works for me ok.
On Mon, Apr 2, 2018 at 3:07 AM, IanWorthington ***@***.***>
wrote:
> Could it be something to do with the change of hibernate version?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#149 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AENHaiDehvnHPoXwUXHd1qHnT7kyx1DKks5tkYflgaJpZM4TCp7a>
> .
>
|
possible related gradle/gradle#3118.
On Mon, Apr 2, 2018 at 7:01 AM, Douggie melville-clarke <
douggie@melvilleclarke.com> wrote:
… java version "1.8.0_161"
On Mon, Apr 2, 2018 at 7:01 AM, Douggie melville-clarke <
***@***.***> wrote:
> so may be the jvm? may be something needs to be set on the command Line.
> The following oralce JVM works for me ok.
>
>
> On Mon, Apr 2, 2018 at 3:07 AM, IanWorthington ***@***.***>
> wrote:
>
>> Could it be something to do with the change of hibernate version?
>>
>> —
>> You are receiving this because you commented.
>> Reply to this email directly, view it on GitHub
>> <#149 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AENHaiDehvnHPoXwUXHd1qHnT7kyx1DKks5tkYflgaJpZM4TCp7a>
>> .
>>
>
>
|
could it be the your eclipse and local command line are suing different
JDK's?
On Mon, Apr 2, 2018 at 7:03 AM, Douggie melville-clarke <
douggie@melvilleclarke.com> wrote:
… possible related gradle/gradle#3118.
On Mon, Apr 2, 2018 at 7:01 AM, Douggie melville-clarke <
***@***.***> wrote:
> java version "1.8.0_161"
>
>
> On Mon, Apr 2, 2018 at 7:01 AM, Douggie melville-clarke <
> ***@***.***> wrote:
>
>> so may be the jvm? may be something needs to be set on the command Line.
>> The following oralce JVM works for me ok.
>>
>>
>> On Mon, Apr 2, 2018 at 3:07 AM, IanWorthington ***@***.***
>> > wrote:
>>
>>> Could it be something to do with the change of hibernate version?
>>>
>>> —
>>> You are receiving this because you commented.
>>> Reply to this email directly, view it on GitHub
>>> <#149 (comment)>,
>>> or mute the thread
>>> <https://github.com/notifications/unsubscribe-auth/AENHaiDehvnHPoXwUXHd1qHnT7kyx1DKks5tkYflgaJpZM4TCp7a>
>>> .
>>>
>>
>>
>
|
Buggeration. I had Java 9 installed. Eclipse was using 1.8. Looks like 9 breaks a lot of stuff. My bad. |
Any suggestions of what might be causing this? Have just rebuilt with the latest updates.
C:\Users\Ian\git2\cointrader\target>java -jar cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar console
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/C:/Users/Ian/git2/cointrader/target/cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
2018-03-31 18:58:58 [main] INFO o.h.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [
name: org.cryptocoinpartners.schema
...]
2018-03-31 18:58:58 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core {[WORKING]}
2018-03-31 18:58:58 [main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors:
at org.cryptocoinpartners.module.ApplicationInitializer.(ApplicationInitializer.java:68)
at org.cryptocoinpartners.module.ApplicationInitializer.class(ApplicationInitializer.java:31)
while locating org.cryptocoinpartners.module.ApplicationInitializer
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
at org.cryptocoinpartners.util.Injector.getInstance(Injector.java:35)
at org.cryptocoinpartners.bin.Main.main(Main.java:71)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.hibernate.boot.spi.XmlMappingBinderAccess.(XmlMappingBinderAccess.java:43)
at org.hibernate.boot.MetadataSources.(MetadataSources.java:87)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.(EntityManagerFactoryBuilderImpl.java:208)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.(EntityManagerFactoryBuilderImpl.java:170)
at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:76)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:181)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:129)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:71)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at com.google.inject.persist.jpa.JpaPersistService.start(JpaPersistService.java:108)
at org.cryptocoinpartners.module.ApplicationInitializer.(ApplicationInitializer.java:69)
at org.cryptocoinpartners.module.ApplicationInitializer$$FastClassByGuice$$ca919e6d.newInstance()
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
... 3 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 28 more
The text was updated successfully, but these errors were encountered: