Open glassfishrobot opened 13 years ago
@glassfishrobot Commented Reported by emiddio@java.net
@glassfishrobot Commented emiddio@java.net said: Created an attachment (id=5) success ful test – Debug test file
@glassfishrobot Commented emiddio@java.net said: Created an attachment (id=6) failed test – Test file
@glassfishrobot Commented emiddio@java.net said: Created an attachment (id=7) result of Project/ Test – vs File/ Test – all tests done with netbeans
@glassfishrobot Commented emiddio@java.net said: also posted to netbeans – and it references here also
@glassfishrobot Commented emiddio@java.net said: To post the log of the ejb-embedded-client subproject successful run, after making mods to the build.xml;
what is a bit strange to me is that the JNDI name is the same as the one that had to be changed in the nbtest – SimpleEjbTest.java;
@glassfishrobot Commented emiddio@java.net said: Created an attachment (id=8) show successful run of embedded-ejb-client after build.xml changes
@glassfishrobot Commented emiddio@java.net said: a simple nb project with 2 main test classes, and a test class in the test dir ;
the mains run fine; the test class will only run as debug file, or debug test file
both mains classes run fine – one constructed from the test class;
uses the ejb-embedded.jar as a project local library – all self contained except for glassfish libraries location;
@glassfishrobot Commented emiddio@java.net said: Created an attachment (id=9) project example of issues with netbeans
@glassfishrobot Commented File: ejb-embedded-client-nb-geb.zip Attached By: emiddio@java.net
@glassfishrobot Commented File: embeddedClientRunSucceed.txt Attached By: emiddio@java.net
@glassfishrobot Commented File: testBad.txt Attached By: emiddio@java.net
@glassfishrobot Commented File: testFailProject.txt Attached By: emiddio@java.net
@glassfishrobot Commented File: testGood.txt Attached By: emiddio@java.net
@glassfishrobot Commented Was assigned to glassfish-samples-issues
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH_SAMPLES-31
using Samples svn checked out with last week; gfv3.1b24, netbeans 6.9.1;
Summary – with detail later in this post.
subproject ejb-embedded-client will not run – Until I changed its build.xml to add the dist directory; see below
after the change i can use netbeans to run the run target and it works;
netbeans/project - test fails; have a log file will post
netbeans/file test – the nbtest/.../SimpleEjgTest.java fails; also a log file
netbeans/debug-file test – succeeds; also have log file; only succeeds, runs without errors after changing the SimpleEjbTest.java – the jndi name is wrong; the correct name is part of the Container output to the log.
see below: 2 jndi names will work; original will not;
//SimpleEjb ejb1 = (SimpleEjb) ic.lookup("java:global/ejb-embedded/SimpleEjb"); SimpleEjb ejb2 = (SimpleEjb) ic.lookup ("java:global/jar/SimpleEjb!ejb.embedded.SimpleEjb"); SimpleEjb ejb = (SimpleEjb) ic.lookup("java:global/jar/SimpleEjb");
have 3 logs files; unable to discover how to fix – why will run as Debug Test, and Not Run as simply Test
By The Way – after the change to the TestClient.java build.xml – can also do project/Run – and it works – side effect – it starts gfv3.1 and deployes the Jar to it; then runs the embedded client that is separate from gfv3.1
Environment
Operating System: All Platform: All
Affected Versions
[javaee6]