• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JAR file

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm new to ejb.I made the jar file and when i tried to compile my jar file with ejbc i got the following error.
I have my jar file at C:\weblogic\examples\ejb\basic\myfirstbean\build and i'm running the command "java -classpath %CLASSPATH% -Dweblogic.home=%WL_HOME% weblogic.ejbc -compiler javac build\std_ejb_basic_myfirstbean.jar %MYSERVER%\ejb_basic_myfirstbean.jar" from C:\weblogic\examples\ejb\basic\myfirstbean
---------------------------------------------
ERROR: Error from ejbc:
------------------------------------------------ C:\weblogic\examples\ejb\basic\myfirstbean\ejbcgen\Files
\JavaSoft\JRE\1\2\lib\rt\jar;C:\ProgramAD.ser (The filename, directory name, or
volume label syntax is incorrect)
ERROR: ejbc found errors
Can some body help me with a solution?
Regards,
Sushma
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sushma, please would you take a look at http://www.javaranch.com/ubb/Forum10/HTML/000180.html
Thanks
 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Sushma
please try the following(type in the same line )from the directory which contains the jar on which you have to run the ejbc compiler after you have set the environment variables as directed in the documentation and also run the setenv script in your weblogic directory..before this

java -Dweblogic.home=%WL_HOME% weblogic.ejbc yourjarname.jar -d %WL_HOME%\myserver\yourjarname.jar
hope this helps you
pranav
 
Sushma
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pranav,
thanks a lot for your reply.I could do ejbc, but when i try to run the client it says something like_______________
"
Begining statelessSession.Client....
The client was unable to lookup the EJBHome.Plese make sure that you have deployed the ejb with the JNDI name mypackage.mybeannameHome on the weblogic server at t3://localhost:7001
"_______________________________
Can some body please help me with this?
Regards and thanks,
Sushma

 
Sushma
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank u guys!
I got the solution for this.
Regards,
Sushma
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sushma,
if you could post your solution it may help someone in future. Thanks
 
Sushma
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi George,
It was very silly.
I didn't deploy the bean and I tried running the Client, which failed.
Regards,
Sushma
[This message has been edited by George Brown (edited October 20, 2000).]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic