Fout tijdens artifact deployment: Probleem terwijl afmelden MBean: javax.management.InstanceNotFoundException

stemmen
0

Ik ben aan het leren java ee. En probeerde het maken van eenvoudige Hello World applicatie met model en repository, maar ik kreeg: fout terwijl het proberen om te zetten naar glassfish5. Ik gebruik IntelliJ.

Ik dacht dat het zou kunnen zijn omdat de oorlog niet compileert, maar toen ik liep Maven vanaf de command line deze pakketten alles.

BookRepository.java


    @PersistenceContext(unitName = bookStorePU)
    private EntityManager em;

    public Book find(Long id){
        return em.find(Book.class, id);
    }
}

persistence.xml

    <persistence-unit name=bookStorePU transaction-type=JTA>
        <class>com.learning.model.Book</class>
        <properties>
            <property name=javax.persistance.schema-generation.database.action value=drop-and-create/>
            <property name=javax.persistence.schema-generation.scripts.action value=drop-and-create/>
            <property name=javax.persistence.schema-generation.scripts.create-target value=bookStoreCreate.ddl/>
            <property name=javax.persistance.schema-generation.scripts.drop-target value=bookStoreDrop.ddl/>
        </properties>
    </persistence-unit>

Ik verwacht dat het compileren en inzetten om Glassfish maar ik krijg uitzondering:

[2019-10-09T11:56:48.412+0200] [glassfish 5.0] [WARNING] [] [org.eclipse.persistence.session./file:/C:/projects/projectname/target/projectname-1.0-SNAPSHOT/WEB-INF/classes/_bookStorePU.server] [tid: _ThreadID=46 _ThreadName=admin-listener(5)] [timeMillis: 1570615008412] [levelValue: 900] [[
  Problem while unregistering MBean: javax.management.InstanceNotFoundException: TopLink:Name=Development-/file_/C_/projects/projectname/target/projectname-1.0-SNAPSHOT/WEB-INF/classes/_bookStorePU,Type=Configuration]]

[2019-10-09T11:56:48.414+0200] [glassfish 5.0] [WARNING] [] [org.eclipse.persistence.session./file:/C:/projects/projectname/target/projectname-1.0-SNAPSHOT/WEB-INF/classes/_bookStorePU.server] [tid: _ThreadID=46 _ThreadName=admin-listener(5)] [timeMillis: 1570615008414] [levelValue: 900] [[
  Problem while unregistering MBean: javax.management.InstanceNotFoundException: TopLink:Name=Session(/file_/C_/projects/projectname/target/projectname-1.0-SNAPSHOT/WEB-INF/classes/_bookStorePU)]]

in Glassfish logs

De vraag is gesteld op 09/10/2019 om 13:02
bron van user
In andere talen...                            

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more