Skip to main content

Mobicents 1.2.o beta

8 replies [Last post]
abdujaparov
Offline
Joined: 2007-11-03

Hi, I've downloaded the new version of mobicents, the server start correctly but I've problem when I try to deploy the googlebot example.
When I try to deploy the example I receive this error:

<br />
C:\mobicents-all-1_2_00_BETA\examples\googletalk-bot>ant deploy-all<br />
Buildfile: build.xml<br />
     [echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples<br />
     [echo] EXAMPLES HOME[C:\mobicents-all-1_2_00_BETA\examples]</p>
<p>lib-init:</p>
<p>management-init:<br />
     [echo] TASKS LOCATION[C:\mobicents-all-1_2_00_BETA\examples/lib/slee-ant-ta<br />
sks.jar]<br />
     [echo] Mobicents SLEE Management tasks defined</p>
<p>deploy-all:<br />
     [echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples</p>
<p>lib-init:</p>
<p>management-init:<br />
     [echo] TASKS LOCATION[C:\mobicents-all-1_2_00_BETA\examples/lib/slee-ant-ta<br />
sks.jar]<br />
     [echo] Mobicents SLEE Management tasks defined</p>
<p>create-deploy-urls:</p>
<p>ra-install:<br />
     [echo] Installing XMPPRA.</p>
<p>BUILD FAILED<br />
C:\mobicents-all-1_2_00_BETA\examples\googletalk-bot\build.xml:83: The following<br />
 error occurred while executing this line:<br />
C:\mobicents-all-1_2_00_BETA\examples\lib\xmppra\build.xml:43: javax.naming.Nami<br />
ngException: Could not dereference object [Root exception is javax.naming.Commun<br />
icationException [Root exception is java.io.InvalidClassException: org.jboss.uti<br />
l.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509<br />
836244263718, local class serialVersionUID = 6926421946503004889]]</p>
<p>Total time: 15 seconds<br />

How can I resolve this error?
In the readme.txt I read this:"*set "jnpHost" variable in lib/build.xml so it is correct jb container bind address"
where can I find the jnpHost and how can I set it?
Thanks, bye bye.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
deruelle_jean
Offline
Joined: 2003-06-24

It seems that your JBOSS_HOME is still set to an earlier version of JBOSS(JBOSS 3.2.X). Try to set your JBOSS_HOME to your C:\mobicents-all-1_2_00_BETA, it should work fine.
The serial version UID of this class org.jboss.util.id.GUID has changed between JBOSS 3.2.X and Jboss 4.2.X. In your case, the serialization is done (by slee management task) with JBOSS 3.2.X and the deserialization is done with the server currently running (which is the one bundled with the release which is a 4.2.X flavor of JBOSS); since their serial version UID are not equals the serialization/deserialization cannot be done, hence the error.

you can find the jnphost in your C:\mobicents-all-1_2_00_BETA\server\server\all\conf and set it in your C:\mobicents-all-1_2_00_BETA\examples\lib\build.xml

Best regards
Jean

abdujaparov
Offline
Joined: 2007-11-03

Hi Jean, I've done what you have said but I receive the same error.
I've setted the enviromental variable JBOSS_HOME=C:\mobicents-all-1_2_00_BETA but I receive the same error.
Then I've setted the enviromental variable JBOSS_HOME=C:\mobicents-all-1_2_00_BETA\server but the error is the same.

This is the errore that I receive with C:\mobicents-all-1_2_00_BETA:

[code]
C:\mobicents-all-1_2_00_BETA\examples>cd googletalk-bot

C:\mobicents-all-1_2_00_BETA\examples\googletalk-bot>ant deploy-all
Buildfile: build.xml
[echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples
[echo] EXAMPLES HOME[C:\mobicents-all-1_2_00_BETA\examples]

lib-init:

management-init:
[echo] TASKS LOCATION[C:\mobicents-all-1_2_00_BETA\examples/lib/slee-ant-ta
sks.jar]
[echo] Mobicents SLEE Management tasks defined

deploy-all:
[echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples

lib-init:

management-init:
[echo] TASKS LOCATION[C:\mobicents-all-1_2_00_BETA\examples/lib/slee-ant-ta
sks.jar]
[echo] Mobicents SLEE Management tasks defined

create-deploy-urls:

ra-install:
[echo] Installing XMPPRA.

BUILD FAILED
C:\mobicents-all-1_2_00_BETA\examples\googletalk-bot\build.xml:83: The following
error occurred while executing this line:
C:\mobicents-all-1_2_00_BETA\examples\lib\xmppra\build.xml:43: javax.naming.Nami
ngException: Could not dereference object [Root exception is javax.naming.Commun
icationException [Root exception is java.io.InvalidClassException: org.jboss.uti
l.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509
836244263718, local class serialVersionUID = 6926421946503004889]]
[/code]

What can I do?
Thanks a lot, bye bye.

deruelle_jean
Offline
Joined: 2003-06-24

The fact that when you change it to some other locations doesn't change the error you get makes think that your JBOSS_HOME property is not taken into account.

JBOSS_HOME should really be to your C:/mobicents-all-1_2_00_BETA/server. (take care to replace \ by / when you set it in windows)

Try to set your JBOSS_HOME to some dumb location like D: to see if the error you get is still the same

Alternatively, can you try to add the following to your C:/mobicents-all-1_2_00_BETA/examples/googletalk-bot/build.xml :

MOBICENTS HOME[${mobicents.home}]
JBOSS HOME[${jboss.home}]

just below this line :

EXAMPLES HOME[${examples.home}]

run ant deploy-all again and check that the variables outputed on the console are the same ones that you set into windows ?

best regards
Jean

abdujaparov
Offline
Joined: 2007-11-03

Hi Jean, I've changed the JBOSS_HOME but the error is the same everything I write.
I've added the line that you have write and the output is this:

[code]
[echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples
[echo] EXAMPLES HOME[C:\mobicents-all-1_2_00_BETA\examples]
[echo] MOBICENTS HOME[${system.MOBICENTS_HOME}]
[echo] JBOSS HOME[C:\mobicents-all-1_2_00_BETA\server]
[/code]

I think the error is in the installation of xmppra in fact the error is always this:

[code]
C:\mobicents-all-1_2_00_BETA\examples\lib\xmppra>ant ra-deploy
Buildfile: build.xml
[echo] lib/build.xml examples.home=C:\mobicents-all-1_2_00_BETA\examples

lib-init:

management-init:
[echo] TASKS LOCATION[C:\mobicents-all-1_2_00_BETA\examples/lib/slee-ant-ta
sks.jar]
[echo] Mobicents SLEE Management tasks defined

create-deploy-urls:

ra-install:
[echo] Installing XMPPRA.

BUILD FAILED
C:\mobicents-all-1_2_00_BETA\examples\lib\xmppra\build.xml:43: javax.naming.Nami
ngException: Could not dereference object [Root exception is javax.naming.Commun
icationException [Root exception is java.io.InvalidClassException: org.jboss.uti
l.id.GUID; local class incompatible: stream classdesc serialVersionUID = 3289509
836244263718, local class serialVersionUID = 6926421946503004889]]

Total time: 12 seconds
[/code]

What can I do?
Thank you very much, bye bye.

deruelle_jean
Offline
Joined: 2003-06-24

This is weird.
There is some incompatibility issue between the client used and the server, though the jar(jboss-common.jar which is holding the GUID class) used should be the same.
Could you try that :
set the ANT_OPTS environnement variable to -Dorg.jboss.j2ee.Serialization
in a cygwin shell on windows you can do export ANT_OPTS="-Dorg.jboss.j2ee.Serialization".
and do again ant deploy-all

Alternatively you can try various verious compatibility things, please check out this link, that might help
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossVersionCompatibilityMatrix

if that's still doesn't work do ant -v deploy-all and post the output here

Best regards
Jean

abdujaparov
Offline
Joined: 2007-11-03

Hi Jean thanks!
The example now work! In cygwin I've executed export ANT_OPTS="-Dorg.jboss.j2ee.Serialization" and then I launch "ant deploy-all" and it works!
Thanks a lot.
Bye Bye.

deruelle_jean
Offline
Joined: 2003-06-24

Hey I'm glad it works but there is still something strange.

It seems that your client uses the Jboss 3.2.x jboss-common.jar instead of 4.2.x's, but your env variables seem to be correct in ant... I don't get it.

Jean

abdujaparov
Offline
Joined: 2007-11-03

Weel Jean, all works now must I do anything?
Thansk a lot again.
Bye bye.