Configure java EE project on glassfish server

0

I have a Java EE Webapp project, I am in the process of configuring it on a server with glassfish 5, JDK8.0_172 and plesk as the control panel.

The project is divided into 3, EAR EJB and web. After executing them in Netbeans 8.2 IDE, I generate some .ear and .war files in the EAR project and .war in the web project. Those files I upload to the application server, to the autodeploy folder of glassfish. The .ear file gave me and continues giving failure (deployFailed), so I upload the .war generated in the same folder.

After several days I can not get an error, but only the glassfish server's default screen is displayed:

"Your server is now running To replace this page, overwrite the file index.html in the document root folder of this server. The document root folder for this server is the docroot subdirectory ...... "

In the root folder of the server (httpdocs) there are the folders of the 3 projects (ear, ejb, web). Any idea what I may be doing wrong?

Thank you very much.

EDIT:

I enclose the errors of the glassfish server log when trying to deploy the .ear:

"[javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID = 92 _ThreadName = AutoDeployer] [timeMillis: 1536681698563] [levelValue: 900] [[Attempt to create file / var / www / vhosts / ocium.net/appservers/glassfish-5x/domains/domain1/autodeploy/.autodeploystatus/ociumfinal-ear.ear failed; no further information.]]

Exception during lifecycle processing java.lang.IllegalArgumentException: Can not resolve reference [Local ejb-ref name = chat.ChatResource / talkEjb, Local 3.x interface = com.eventos.ConversacionFacadeLocal, ejb-link = null, lookup =, mappedName =, jndi-name =, refType = Session] because there are [2] ejbs in the application with interface com.eventos.ConversacionFacadeLocal.

Some of the possible causes: 1. The EJB bean class was packaged in an ear lib library (or through any other library mechanism which makes the library visible to all component modules), this makes all the component modules include this bean class indirectly. 2. The EJB bean class was packaged in a component module which references the EJB, either directly or indirectly through Manifest, WEB-INF / lib. The EJB bean class should only be packaged in the declaring module and not the referencing modules. The referencing modules should only include EJB interfaces. "

    
asked by Rodrigo Pérez López 11.09.2018 в 16:42
source

0 answers