First of all I have to say that I am not new to EJB and more in general
to J2EE development. I used BES since 4.0 release. In the last time I
preferred JBoss because it implements J2EE 1.4 from a lot of time but
today I tried the new BAS 6.6.
I just downloaded BAS 6.6 and the plugin for JBuilder 2006.
I immediately tried a Session Bean development. I developed a simple
Stateless Session Bean with a simple hello method. I deployed
it and all was working. Then I created the TestClient using the Wizard
and when I run it I received and error messages.
Then I tried to expose the Session Bean as WebService but I had an error
during compilation.
Then I tried to create a new Simple WebApplication using JSF, I had some
errors during compilation but I avoided them unchecking a property on
JSP errors. I deployed it but nothing is working.
Where is the problem????
Many thanks and bye,
I get same error when 'new IniticalContext()' is called as follows.
My environment is JBuilder2006 Enterprise and Borland AppServer6.6.
--------------------------------------------------------------------------------
C:\BAS66\jdk\jdk1.5.0\bin\javaw -classpath "...;C:\BAS66\lib\xercesImpl.jar;C:\BAS66\lib\asrt.jar;C:\BAS66\lib\mail.jar;C:\BAS66\lib\vbjorb.jar;..." -Dvbroker.agent.port=16600 bas66test.Enterprise1TestClient1
Exception in thread "main" java.lang.Error: org.omg.CORBA.ORBPackage.InvalidName: org.omg.CORBA.NO_IMPLEMENT: This is a locally constrained object. vmcid: 0x0 minor code: 0 completed: No
at com.inprise.j2ee.utils.POAUtils.getRootPoa(POAUtils.java:57)
at com.inprise.ejb.Init.resolve(Init.java:60)
at com.inprise.vbroker.interceptor.InterceptorManagerImpl$ServiceManager.resolve(Unknown Source)
at com.inprise.vbroker.orb.ORB.resolve_initial_references(Unknown Source)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:340)
at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:237)
at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:69)
at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.inprise.j2ee.jndi.CtxFactory.getInitialContext(CtxFactory.java:59)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at bas66test.Enterprise1TestClient1.initialize(Enterprise1TestClient1.java:24)
at bas66test.Enterprise1TestClient1.<init>(Enterprise1TestClient1.java:16)
at bas66test.Enterprise1TestClient1.main(Enterprise1TestClient1.java:82)
--------------------------------------------------------------------------------
Giordano Vicoli wrote:
>
> Dear All,
>
> First of all I have to say that I am not new to EJB and more in general
> to J2EE development. I used BES since 4.0 release. In the last time I
> preferred JBoss because it implements J2EE 1.4 from a lot of time but
> today I tried the new BAS 6.6.
>
> I just downloaded BAS 6.6 and the plugin for JBuilder 2006.
> I immediately tried a Session Bean development. I developed a simple
> Stateless Session Bean with a simple hello method. I deployed
> it and all was working. Then I created the TestClient using the Wizard
> and when I run it I received and error messages.
--
KEN <TAKAHASHI, Tomohiro>
Training & Consulting / Professional Service Division
Borland Software Corporation
ttaka...@borland.com
http://www.borland.co.jp/
Borland Software is a global leader in Software Delivery Optimization,
helping customers maximize the business value of their software.
I added '-Djava.endorsed.dirs=C:\BAS66\lib\endorsed' to java.exe.
It works fine, too.
So, I guess the property is required for Standalone EJB Client.
Tomohiro Takahashi wrote:
>
> Hi,
>
> I tried 'vbj.exe' instead of 'java.exe'. It works fine!
> I think that some properties and .jar files are required when using java.exe.
>
> Tomohiro Takahashi wrote:
> >
> > Hi,
> >
> > I get same error when 'new IniticalContext()' is called as follows.
> > My environment is JBuilder2006 Enterprise and Borland AppServer6.6.
> >
> > --------------------------------------------------------------------------------
> > C:\BAS66\jdk\jdk1.5.0\bin\javaw -classpath "...;C:\BAS66\lib\xercesImpl.jar;C:\BAS66\lib\asrt.jar;C:\BAS66\lib\mail.jar;C:\BAS66\lib\vbjorb.jar;..." -Dvbroker.agent.port=16600 bas66test.Enterprise1TestClient1
snip
I tried 'vbj.exe' instead of 'java.exe'. It works fine!
I think that some properties and .jar files are required when using java.exe.