Link to home
Start Free TrialLog in
Avatar of u4jef
u4jef

asked on

9iAS EJB Deployment

When attempting to deploy a simple session EJB from JDeveloper 3.2.2 to Oracle 8iJVM 8.1.7 the error:

Message [IOEXCEPTION_DESERIALIZING] not found in 'oracle.aurora.ejb.deployment.server.Messages'.

is returned (deployment output below).
This result is identical to a known issue regarding deploying to Solaris, however I am deploying to/from Win2K. Oracle state that the known bug does NOT related to other platforms.
Can anyone help?


DEPLOYMENT OUTPUT:

*** Executing deployment profile C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1Source.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Deploying the EJB to 8i JVM ***
EJB deployment argument list:
"C:\Program Files\Oracle\JDeveloper 3.2.870\java1.2\jre\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.2.870\bin;C:\Program Files\Oracle\JDeveloper 3.2.870\java1.2\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\lib\javax-ssl-1_2.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\jasper.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\aurora.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\sqlj\lib\translator.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\aurora\lib\mts.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\myclasses\DemoApp;C:\Program Files\Oracle\JDeveloper 3.2.870\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\lib\connectionmanager.zip;C:\Program Files\Oracle\JDevelop
r 3.2.870\lib\javax_ejb.zip;C:\Program Files\Oracle\JDeveloper 3.2.870\java1.2\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2.870\lib\xmlparserv2.jar"
oracle.aurora.ejb.deployment.GenerateEjb
-u
system
-p
manager
-s
sess_iiop://xml.reo.cpqcorp.net:2481:APPSRV
-republish
-keep
-temp
TEMP
-descriptor
"C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1.xml"
-oracledescriptor
C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1_oracle.xml
-generated
"C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1Generated.jar"
"C:\Program Files\Oracle\JDeveloper 3.2.870\myprojects\DemoApp\SessEJB1Source.jar"
Reading Deployment Descriptor...done
Verifying Deployment Descriptor...done
Gathering users...done
Generating Comm Stubs.......................................done
Compiling Stubs...done
Generating Jar File...done
Loading EJB Jar file and Comm Stubs Jar file...done
Generating EJBHome and EJBObject on the server...
Message [IOEXCEPTION_DESERIALIZING] not found in 'oracle.aurora.ejb.deployment.server.Messages'.
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
Avatar of bpouydog
bpouydog

hi

this error comes when the component of an attribute which is reffered in not found in the desired class.

check whether "oracle.aurora.ejb.deployment.server.Messages"
class is there in classpath.

when i got the errors loading the EJB. i found that the
permission was not there to load it.

to check the permissions use the following command on c:\

sess_sh  -user sys -password change_on_install -server
sess_iiop://localhost:2481:ORCL

this command will bring the $ prompt to check the permissions
use the following command on $ prompt

ls -l

the commands which r supported can be seen by typing "help"
command

this is similar to unix; but this unix is inside the Oracle
Database.


i'm attaching 2 files which will help u upload the EJB in the oracle database.
one is batch file and second is .ejb which is nothing but the ejb descriptor.


hope this helps u

#########################################

loadit.bat

REM Author=Habib Rangoonwala
@echo off
if (%1) == () GOTO usage
SET ORACLE_SERVICE=sess_iiop://localhost:2481:ORCL
set HSRPATH=D:\Habib\EJB\jars
set CLASSPATH=.;%HSRPATH%\aurora_client.jar;%HSRPATH%\classes12.zip;%HSRPATH%\vbjorb.jar;%HSRPATH%\vbjapp.jar;%HSRPATH%\HSRApplication.jar
cd %1
@echo on
javac %1\%1Interface.java
javac %1\%1Record.java
javac %1\%1Home.java
javac %1\%1Bean.java

jar cf0 %1.jar %1\%1Interface.class  %1\%1Record.class  %1\%1Home.class %1\%1Bean.class

call deployejb -republish -temp temp -u habib -p habib -s %ORACLE_SERVICE%  -descriptor %1.ejb %1.jar
cd ..
goto finish

:usage
@echo -------------------------------------------------------
@echo Following are the requirements to run this script
@echo         you must pass the Bean Directory
@echo              makeit [BeanDirectory]
@echo -------------------------------------------------------

:finish

REM What is %1?
REM -----------
REM i've designed my directory structure as ..\BeanName and i used to have the four classes
REM in this beandirectory which also starts with the same name as bean directory and ends with
REM one of the four viz. Interface,Record,Home,Bean.
REM Now suppose i've the bean name UserMaster so i'll call the loadit.bat as follows
REM c:\temp> loadit UserMaster

##################################################

UserMaster.ejb

// EJB deployment descriptor
// author=Habib Rangoonwala

SessionBean UserMaster.UserMasterBean
{

     BeanHomeName = "test/UserMaster/UserMasterBean";
     RemoteInterfaceClassName = UserMaster.UserMasterInterface;
     HomeInterfaceClassName = UserMaster.UserMasterHome;

     AllowedIdentities = {HABIB};

     SessionTimeout = 20;
     StateManagementType = STATEFUL_SESSION;

     RunAsMode = CLIENT_IDENTITY;

     TransactionAttribute = TX_REQUIRED;
}


ASKER CERTIFIED SOLUTION
Avatar of bpouydog
bpouydog

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please update and finalize this old, open question.  Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,
Moondancer - EE Moderator

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
Zero response, finalized today.
Moondancer - EE Moderator