Skip to main content

Migrating From jboss-4.2.1 to GlassFish

12 replies [Last post]
Anonymous

Hi,
I am planning to migrate from jboss-4.2.1.GA to GlassFish. Can anyone tell
me what needs to be done as part of the migration or how to go about and do
the migration.I am unable to use the migration tool of GlassFish also, cos
migrate tool works only for jboss 3.x.
Thanks for ur help in advance
Sonia.
--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
naveen08

Even I faced a similar problem, the war was created using jdk 1.6, but i had
jdk 1.5 on the system where i wanted to deploy. I upgraded my jdk to 1.6 and
it worked.

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Sonia_08

Hi.
I was able to get what I had asked for in the following link..
http://wiki.glassfish.java.net/attach/QSG_Instructions/glassfish-qsg.html

glassfish wrote:
>
> I would suggest:
>

    >
  • create a war file on JBoss
    >
  • run the war file through GlassFish verifier tool. You can find the
    > verifier tool in the GlassFish distribution. /bin. The
    > verifier has proven to be a useful tool in migration and catches issues
    > related to URL patterns, packing issues for e.g.
    >
  • Migrate the JBoss specific deployment descriptors and configuration
    > files to GlassFish deployement descriptors. The GlassFish specific
    > deployment descriptors are documented in
    > http://docs.sun.com/app/docs/doc/819-3673/beaqi?a=view .
    >
  • Check the
    > http://wiki.glassfish.java.net/Wiki.jsp?page=M2GMigrationGuide for known
    > JBoss -> GlassFish migration issues. I update and maintain this guide as
    > more issues become known. So, if you encounter a migration issue not yet
    > documented, please consider adding to the migration guide or at least
    > post to this forum, so I can link to the migration guide. This would
    > benefit the GlassFish community.
    >
  • Instead of a war file, you can use an exploded directory (i.e. in a
    > format you would get for e.g. by unjarring a war/ear file).
    >
  • The Java EE AVK http://java.sun.com/j2ee/avk/ is useful for testing
    > portability of you application to J2EE/Java EE APIs. At least for some of
    > the examples I have been migrating and blogging about, I have not found
    > the need to use the AVK.
    >

> Please post any questions you have to this forum.
>
> Thanks,
> Sekhar
> [Message sent by forum member 'sekhar' (sekhar)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289438
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Sonia_08

Hi,

I need to deploy certain .sar files and .wsr files to GlassFish. I don't
find any option where i can add those. I tried from command line also, but
got an error msg. So can someone suggest how i can go about deploying those
files.

Thanks
--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Hong Zhang

I am not sure what .wsr files are. To deploy sar files, you would need
to use the sailfin version of the glassfish.
https://sailfin.dev.java.net/

Sonia_08 wrote:
> Hi,
>
> I need to deploy certain .sar files and .wsr files to GlassFish. I don't
> find any option where i can add those. I tried from command line also, but
> got an error msg. So can someone suggest how i can go about deploying those
> files.
>
> Thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

sekhar
Offline
Joined: 2003-06-25

.wsr file is a Web Services Archive file. It is a standard jar file with a META-INF/web-services.xml (a Axis standard descriptor). A .wsr file can't be deployed directly in GlassFish. I thought that .wsr file was supported in JBoss.NET (included in JBoss 3.x) and has entered in end of life. It has been replaced with JBossWS (included in JBoss 4.x) and supports portable J2EE/Java EE web services (JAX-RPC/JAX-WS). If so, then the migration path appears to be migrate to JAX-RPC or JAX-WS depending upon your application. Let me know your comments.

As for .sar files. While the prefix is the same, the .sar files are completely different in SailFin and JBoss. A .sar file in SailFin is used to package SIP applications but a .sar file in JBoss is a service archive ( a jar file with META-INF/jboss-service.xml) deployed using SARDeployer MBean. If have a service developed using a custom MBean on JBoss, then I suggest you look at the custom MBeans are developed and deployed on GlassFish (it does not use .sar archive files) - see http://docs.sun.com/app/docs/doc/819-3672/gbdzi?a=view . If your custom MBean is tied to JBoss appserver, then you will need to remove that dependency.

Sonia_08

Thanks for the reply.
I am facing this issue now

|Exception occured in J2EEC Phase
java.lang.NoSuchMethodError:
com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I

i am not able to deploy any web services. I tried browsing the net and found
that the exception might be because of the tools.jar. I tried version jdk5,
jdk 5_06, jdk5_16 tools.jar resp. But in vain, can someone help me out with
this?

Thanks

glassfish wrote:
>
> .wsr file is a Web Services Archive file. It is a standard jar file with a
> META-INF/web-services.xml (a Axis standard descriptor). A .wsr file can't
> be deployed directly in GlassFish. I thought that .wsr file was supported
> in JBoss.NET (included in JBoss 3.x) and has entered in end of life. It
> has been replaced with JBossWS (included in JBoss 4.x) and supports
> portable J2EE/Java EE web services (JAX-RPC/JAX-WS). If so, then the
> migration path appears to be migrate to JAX-RPC or JAX-WS depending upon
> your application. Let me know your comments.
>
> As for .sar files. While the prefix is the same, the .sar files are
> completely different in SailFin and JBoss. A .sar file in SailFin is used
> to package SIP applications but a .sar file in JBoss is a service archive
> ( a jar file with META-INF/jboss-service.xml) deployed using SARDeployer
> MBean. If have a service developed using a custom MBean on JBoss, then I
> suggest you look at the custom MBeans are developed and deployed on
> GlassFish (it does not use .sar archive files) - see
> http://docs.sun.com/app/docs/doc/819-3672/gbdzi?a=view . If your custom
> MBean is tied to JBoss appserver, then you will need to remove that
> dependency.
> [Message sent by forum member 'sekhar' (sekhar)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290193
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

jitu
Offline
Joined: 2003-06-14

Can you post the entire stack trace.? apt classes should be available in JDK's tools.jar. You don't have to do anything for this, GF should take care of it.

Sonia_08

I was able to resolve the issue, the issue was with "javac". I had taken
tools.jar from java version 5.0_16 but for compling it took from java
version 5.0. That is the reason why the web service did not get deployed. I
changed the java home to the most recent version. and now it is wokring
fine.

glassfish wrote:
>
> Can you post the entire stack trace.? apt classes should be available in
> JDK's tools.jar. You don't have to do anything for this, GF should take
> care of it.
> [Message sent by forum member 'jitu' (jitu)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290504
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

naveen08

Even I faced a similar problem, the war was created using jdk 1.6, but i had
jdk 1.5 on the system where i wanted to deploy. I upgraded my jdk to 1.6 and
it worked.

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

John Clingan

Sekhar, our migration guru, has written a blog entry on the topic and
also manages our migration project on java.net. These resources may
help:
http://weblogs.java.net/blog/sekhar/archive/2008/02/migration_jboss.html
https://migrate2glassfish.dev.java.net/
http://wiki.glassfish.java.net/Wiki.jsp?page=M2GMigrationGuide

Hope this helps!

John Clingan
GlassFish Product Line Manager

On Jul 24, 2008, at 4:28 AM, Sonia_08 wrote:

>
> Hi,
> I am planning to migrate from jboss-4.2.1.GA to GlassFish. Can
> anyone tell
> me what needs to be done as part of the migration or how to go about
> and do
> the migration.I am unable to use the migration tool of GlassFish
> also, cos
> migrate tool works only for jboss 3.x.
> Thanks for ur help in advance
> Sonia.
> --
> View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
> Sent from the java.net - glassfish users mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

sekhar
Offline
Joined: 2003-06-25

I would suggest:

  • create a war file on JBoss
  • run the war file through GlassFish verifier tool. You can find the verifier tool in the GlassFish distribution. /bin. The verifier has proven to be a useful tool in migration and catches issues related to URL patterns, packing issues for e.g.
  • Migrate the JBoss specific deployment descriptors and configuration files to GlassFish deployement descriptors. The GlassFish specific deployment descriptors are documented in http://docs.sun.com/app/docs/doc/819-3673/beaqi?a=view .
  • Check the http://wiki.glassfish.java.net/Wiki.jsp?page=M2GMigrationGuide for known JBoss -> GlassFish migration issues. I update and maintain this guide as more issues become known. So, if you encounter a migration issue not yet documented, please consider adding to the migration guide or at least post to this forum, so I can link to the migration guide. This would benefit the GlassFish community.
  • Instead of a war file, you can use an exploded directory (i.e. in a format you would get for e.g. by unjarring a war/ear file).
  • The Java EE AVK http://java.sun.com/j2ee/avk/ is useful for testing portability of you application to J2EE/Java EE APIs. At least for some of the examples I have been migrating and blogging about, I have not found the need to use the AVK.

Please post any questions you have to this forum.

Thanks,
Sekhar

Sonia_08

Hi Sekhar,
Thanks for your help. I was looking out for basic information as to how to
start/stop the server.
I am now able to start the GlassFish server and am able to view the server
console.
Now that am moving to the next stage, I need to deploy my existing
application jars,wsr,sar and ejb's. I am not sure under which folder i shd
be putting them.
Can you let me know where i shd be deploying them?

Thanks

glassfish wrote:
>
> I would suggest:
>

    >
  • create a war file on JBoss
    >
  • run the war file through GlassFish verifier tool. You can find the
    > verifier tool in the GlassFish distribution. /bin. The
    > verifier has proven to be a useful tool in migration and catches issues
    > related to URL patterns, packing issues for e.g.
    >
  • Migrate the JBoss specific deployment descriptors and configuration
    > files to GlassFish deployement descriptors. The GlassFish specific
    > deployment descriptors are documented in
    > http://docs.sun.com/app/docs/doc/819-3673/beaqi?a=view .
    >
  • Check the
    > http://wiki.glassfish.java.net/Wiki.jsp?page=M2GMigrationGuide for known
    > JBoss -> GlassFish migration issues. I update and maintain this guide as
    > more issues become known. So, if you encounter a migration issue not yet
    > documented, please consider adding to the migration guide or at least
    > post to this forum, so I can link to the migration guide. This would
    > benefit the GlassFish community.
    >
  • Instead of a war file, you can use an exploded directory (i.e. in a
    > format you would get for e.g. by unjarring a war/ear file).
    >
  • The Java EE AVK http://java.sun.com/j2ee/avk/ is useful for testing
    > portability of you application to J2EE/Java EE APIs. At least for some of
    > the examples I have been migrating and blogging about, I have not found
    > the need to use the AVK.
    >

> Please post any questions you have to this forum.
>
> Thanks,
> Sekhar
> [Message sent by forum member 'sekhar' (sekhar)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289438
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Migrating-From-jboss-4.2.1-to-GlassFish-tp18629992...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net