I have been trying this for two days. Someone please tell me what may
go wrong. Thanks in advance.
I have BES5.0 installed on SunOS 5.8. When I build the sort example,
java2iiop, which was invoked by "iastool -gendeployable", always gave
me error "unable to access class" error. I have tried to set classpath
but still no luck.
Here is the error output from the make command. What I did is just cd
to sort example directory and run "make":
...
(/opt/corp/inm_3rdparty/BorlandEnterpriseServer5.0.1/bin/iastool
-gendeployable -src sort_beans_tmp.jar -target sort_beans.jar; rm -f
sort_beans_tmp.jar)
Generating deployable module
Generating stubs
java2iiop:unable to access class
com.borland.examples.ejb.mergesort.SortHome
java2iiop: fatal error: (possible classpath problem?)
java2iiop: fatal error: internal problem; please contact Inprise
Customer Support
Error type: com.borland.enterprise.util.FwException
Thread: Thread[main,5,main]
Stack trace:
com.borland.enterprise.util.FwException: java2iiop exited with
errorcode 1
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(RuntimeException.java:37)
at com.borland.enterprise.util.FwException.<init>(FwException.java:41)
at com.borland.enterprise.util.FwException.<init>(FwException.java:87)
at com.borland.enterprise.tools.StubGenerator$1.exit(StubGenerator.java:253)
at com.inprise.vbroker.compiler.util.ErrorReporter.fatal(ErrorReporter.java:477)
at com.inprise.vbroker.compiler.util.ErrorReporter.fatal(ErrorReporter.java:453)
at com.inprise.vbroker.compiler.util.ErrorReporter.fatal(ErrorReporter.java:445)
at com.inprise.vbroker.compiler.util.ErrorReporter.internalError(ErrorReporter.java:978)
at com.inprise.vbroker.compiler.tools.tool.main(tool.java:168)
at com.inprise.vbroker.compiler.tools.tool.main(tool.java:84)
at com.borland.enterprise.tools.StubGenerator.invokeTool(StubGenerator.java:359)
at com.borland.enterprise.tools.StubGenerator.processGenerateStubs(Compiled
Code)
at com.borland.enterprise.tools.StubGenerator.process(StubGenerator.java:444)
at com.borland.enterprise.tools.StubGenerator.generate(StubGenerator.java:401)
at com.borland.console.tools.stubs.GenerateClientCommand.execute(Compiled
Code)
at com.borland.console.cmdline.CommandBase.invokeCommand(CommandBase.java:118)
at com.borland.console.cmdline.CommandHandler.invokeCommands(Compiled
Code)
at com.borland.console.Console.main(Compiled Code)
Warning: No generated stub files were found.
#### Errors occurred generating stubs ####
Error type: java.io.FileNotFoundException
Thread: Thread[main,5,main]
Stack trace:
java.io.FileNotFoundException:
/var/tmp/tmpbes_13393/sort_beans_tmp.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:68)
at com.borland.enterprise.util.FileUtil.copyFile(FileUtil.java:626)
at com.borland.console.tools.stubs.GenerateClientCommand.execute(Compiled
Code)
at com.borland.console.cmdline.CommandBase.invokeCommand(CommandBase.java:118)
at com.borland.console.cmdline.CommandHandler.invokeCommands(Compiled
Code)
at com.borland.console.Console.main(Compiled Code)
Generate deployable module failed with errors
*** Error code 13
make: Fatal error: Command failed for target `sort_beans.jar'
Then if I put -verify at the end of "iastool -gendeployable" command,
I got
the following extra error message:
...
(/opt/corp/inm_3rdparty/BorlandEnterpriseServer5.0.1/bin/iastool
-gendeployable -src sort_beans_tmp.jar -target sort_beans.jar -verify;
rm -f sort_beans_tmp.jar)
Warning: No role specified. Assuming DEPLOYER
Verifying ejb module sort_beans_tmp.jar [role=deployer]
#### Error: [sort_beans_tmp.jar] Session Bean "sort"
Could not find bean class :
com.borland.examples.ejb.mergesort.SortBean
#### Error: [sort_beans_tmp.jar] Session Bean "sort"
Cannot proceed verifying other aspects of this bean unless fatal
error(s) are fixed
2 errors, 0 warnings
Generating deployable module
Generating stubs
java2iiop:unable to access class
com.borland.examples.ejb.mergesort.SortHome
java2iiop: fatal error: (possible classpath problem?)
java2iiop: fatal error: internal problem; please contact Inprise
Customer Support
Error type: com.borland.enterprise.util.FwException
Thread: Thread[main,5,main]
...
Do I need to modify any config file? set any environment variable?
give any
command line option? I also tried to append "-args -VBJdebug" to
iastool
command, but nothing happen.
Someone please give me a hint. Thanks in advance.
Quintin