This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267982 - Issues with session beans from entitites option
Summary: Issues with session beans from entitites option
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-12 17:38 UTC by jmp_xip
Modified: 2016-09-13 20:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
EE structure project (169.03 KB, image/jpeg)
2016-09-13 20:03 UTC, jmp_xip
Details
source (7.14 KB, application/octet-stream)
2016-09-13 20:20 UTC, jmp_xip
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmp_xip 2016-09-12 17:38:40 UTC
Hello guys!

I'm using Netbeans 8.1 with mysql database; I'm doing an EE and in ejb source, I added my entitites (entities from database); my issues is when I want to use session beans from entities. It raises an error.

These files are created after selecting session beans from entities:

AbstractFacade.java
ClienteFacade.java
ClienteFacadeLocal.java

No issues compiling.

But when I try to execute,

"
Undeploying ...
Initial deploying EnterpriseApplication27 to C:\Users\jordi\Documents\NetBeansProjects\EnterpriseApplication27\EnterpriseApplication27\dist\gfdeploy\EnterpriseApplication27
Completed initial distribution of EnterpriseApplication27
GlassFish Server (2), deploy, null, false
C:\Users\jordi\Documents\NetBeansProjects\EnterpriseApplication27\EnterpriseApplication27\nbproject\build-impl.xml:307: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 4 seconds)
"

"
 <target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
    <target if="netbeans.home" name="-run-deploy-nb">
***********   <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
    </target>
    <target name="-init-deploy-ant" unless="netbeans.home">
        <property name="deploy.ant.archive" value="${dist.jar}"/>
"

If I deleted the three files in the beans folder... issue desapeared.

Could you help me where could be the issue?

Thank you
Comment 1 jmp_xip 2016-09-12 18:07:41 UTC
There was an issue in,

"
Grave:   Exception while preparing the app : Invalid resource : java:module/jdbc/facturacion2__pm
java.lang.RuntimeException: Invalid resource : java:module/jdbc/facturacion2__pm
"

I corrected it and Netbeans deployed fine.
Comment 2 jmp_xip 2016-09-13 20:03:41 UTC
Created attachment 162037 [details]
EE structure project
Comment 3 jmp_xip 2016-09-13 20:04:38 UTC
Actually, I've got an issue with PrimeFaces. I want to show a mysql table, but it doesn't show any record, and in fact, there are one record and I don't understand where is the issue.
Comment 4 jmp_xip 2016-09-13 20:20:24 UTC
Created attachment 162038 [details]
source