PDA

View Full Version : Is Spring Framework plugin available for WSAD


theone
Aug 16th, 2004, 10:06 AM
Hi,

I'm looking for a Spring plugin I can use in my Websphere Studio Application Developer 5.1.2

Is there a working example in WSAD that I can download?

Thank you

Torsten Juergeleit
Aug 16th, 2004, 12:23 PM
Spring IDE should work with WSAD too. You only have to use a recent JRE (preferably v1.4.2) instead of IBM's JRE J9 (v1.3) which ships with WSAD.

Regards,
Torsten

davison
Aug 17th, 2004, 07:36 AM
How do you get WSAD to actually run under a different JRE? It's simple to select a different JDK for building projects etc, but I thought the IDE itself was hard linked to the IBM JDK..?

theone
Aug 17th, 2004, 10:49 AM
To change to different JRE, go to window->preferences->Java->Installed JRE's

davison
Aug 17th, 2004, 11:03 AM
To change to different JRE, go to window->preferences->Java->Installed JRE's

In WSAD that doesn't affect the JRE used to actually run the IDE unless I'm missing something. Dumping config settings (after switching to Sun JDK 1.4 for example and restarting the IDE) shows that J9 is still being used.

Torsten Juergeleit
Aug 17th, 2004, 02:00 PM
How do you get WSAD to actually run under a different JRE? It's simple to select a different JDK for building projects etc, but I thought the IDE itself was hard linked to the IBM JDK..?

I don't know WSAD. But if it's similar to Eclipse then the launcher may support an option to specify a JRE. Eclipse's eclipse.exe provides the option "-vm" for this. For details please refer to Eclipse / WSAD online help "Workbench User Guide / Tasks / Running Eclipse").

Regards,
Torsten

2devnull
Aug 17th, 2004, 02:34 PM
To get WSAD to run on a different JRE do the following (assuming Windows platform):

1. Create a shortcut

2. Put this in the target field (adjust path for your system):
"C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -vm "C:\j2sdk1.4.2_04\jre\bin\java.exe" -vmargs -Xms90m -Xmx256m

3. Put your workspace in the Start in field (adjust path for your system):
"C:\Documents and Settings\2devnull\My Documents\IBM\wsappdev51\spring"

4. Remove the line VMArgs=-Xj9 from wsappdev.ini (usually found in C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2) (THIS IS THE KEY, OR IT WOULDN'T WORK)

5. Restart WSAD using the Shortcut

BTW: Torsten Juergeleit had helped me with this. I have the Spring plugin working just fine. :D




*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
catalina.base=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.eclipse.tomcat_4.0.6.2/
catalina.home=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.eclipse.tomcat_4.0.6.2/
catalina.useNaming=true
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironm ent
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\.\eclipse\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\j2sdk1.4.2_04\jre\lib\endors ed
java.ext.dirs=C:\j2sdk1.4.2_04\jre\lib\ext
java.home=C:\j2sdk1.4.2_04\jre
java.io.tmpdir=C:\DOCUME~1\2devnull\LOCALS~1\Temp\
java.library.path=C:\j2sdk1.4.2_04\jre\bin;
java.naming.factory.initial=org.apache.naming.java .javaURLContextFactory
java.naming.factory.url.pkgs=org.apache.naming
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_04-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs .WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_04
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_04-b05
line.separator=

theone
Aug 17th, 2004, 02:45 PM
2devnull,

Can you help me get Spring working in my WSAD? Examples will be great too.

Thanks in advance

2devnull
Aug 17th, 2004, 03:46 PM
1. Open your Install/Update perspective.

2. Right click on the 'Features Update' pane and select NEW-> Site Bookmark...

3. In the Name: put 'Spring IDE'

4. In the URL put 'http://springframework.sourceforge.net/spring-ide/eclipse/updatesite/'

5. Leave the rest as defaults

6. Click Finish

7. Expand the bookmark (Spring Framework and Spring IDE) and install Spring Framework 1.0.2 and Spring IDE - Beans Configuration Support 1.0.3

8. Close WSAD and restart using shortcut (the one created to use JRE 1.4 - see post above)

9. In Web perspective, right click on your project folder and select Add Spring Beans Project Nature

10. Now you can use it Windows->Show View->Other->Spring IDE->Spring Beans

Torsten Juergeleit
Aug 17th, 2004, 04:32 PM
7. Expand the bookmark (Spring Framework and Spring IDE) and install Spring Framework 1.0.2 and Spring IDE - Beans Configuration Support 1.0.2

A little typo: "Spring IDE - Beans Configuration Support 1.0.3"

Regards,
Torsten

2devnull
Aug 17th, 2004, 04:39 PM
A little typo: "Spring IDE - Beans Configuration Support 1.0.3"


Thanks. fixed it.

theone
Aug 17th, 2004, 06:05 PM
Thanks for the help in setting up Spring in WSAD, 2devnull and Torsten.

Now I got the evirnoment set up. Can you tell me why I'm getting this error when I start up the test server? Why is the parent context null?

5:00] 3ceab98c DispatcherSer I org.springframework.web.servlet.DispatcherServlet Initializing servlet 'springapp'
[8/17/04 16:46:55:774 GMT-05:00] 3ceab98c DispatcherSer I org.springframework.web.servlet.DispatcherServlet Framework servlet 'springapp' init
[8/17/04 16:46:55:774 GMT-05:00] 3ceab98c WebGroup I SRVE0180I: [Servlet.LOG]: Initializing WebApplicationContext for servlet 'springapp'
[8/17/04 16:46:55:794 GMT-05:00] 3ceab98c DispatcherSer I org.springframework.web.servlet.DispatcherServlet Servlet with name 'springapp' will try to create custom WebApplicationContext context of class 'org.springframework.web.context.support.XmlWebApp licationContext' using parent context [null]
[8/17/04 16:46:56:074 GMT-05:00] 3ceab98c XmlBeanDefini I org.springframework.beans.factory.xml.XmlBeanDefin itionReader Loading XML bean definitions from resource [/WEB-INF/springapp-servlet.xml] of ServletContext
[8/17/04 16:46:56:194 GMT-05:00] 3ceab98c DispatcherSer E org.springframework.web.servlet.DispatcherServlet Context initialization failed
[8/17/04 16:46:56:275 GMT-05:00] 3ceab98c DispatcherSer E org.springframework.web.servlet.DispatcherServlet TRAS0014I: The following exception was logged org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'springappController' defined in resource [/WEB-INF/springapp-servlet.xml] of ServletContext: Bean class [SpringappController] not found; nested exception is java.lang.ClassNotFoundException: SpringappController
java.lang.ClassNotFoundException: SpringappController
at com.ibm.ws.classloader.CompoundClassLoader.findCla ss(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:300)
.....

2devnull
Aug 17th, 2004, 06:10 PM
NP...it appears SpringappController is defined in springapp-servlet.xml but not in your build path.

theone
Aug 17th, 2004, 06:42 PM
SpringWeb/Java Resources is in my build path though

theone
Aug 18th, 2004, 10:18 AM
2devnull,

Do you have a memory issue running WSAD through the created shortcut?

After running for a short while, the memory usages are registered as:

Java.exe +200,000K
javaw.exe +100,000K

Eventually Websphere gives me "Out of memory error"

And I still have the Bean class not found error

Thanks

2devnull
Aug 18th, 2004, 10:21 AM
No, No memory issues. I used these:
-vmargs -Xms90m -Xmx256m and I have 2 GB machine. Not sure if you need to adjust depending on your memory amount.

theone
Aug 21st, 2004, 03:07 PM
Hi

I'm getting an error whenever trying to run Junit test WSAD 5.1.2

Console[<terminated> C:\j2sdk1.4.2_05\bin\javaw.exe
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

etienno
Mar 30th, 2005, 09:39 AM
Hi,

I am using Spring IDE for WSAD 5.1.2 with JRE 1.3.1 and it works well.

The plugin Graphicial Editing Framework 2.1.3 should already be installed in WSAD 5.1.2. Do not install the GEF 3.0.1, because it needs Eclipse 3.0!

I have installed the updatesite_1.0.3 for the eclipse-ide.

Regards,

Etienne.

etienno
Mar 30th, 2005, 09:47 AM
Forget the last reply, I was using jre 1.4.

mabaza
Jan 14th, 2006, 04:18 PM
Hi everyone,

I've followed the above steps to get Spring to work with WSAD 5.1.2 and now 'm trying to figure out to install the jPetStore sample that comes with the framework....any takers?? :) Thanks!

Torsten Juergeleit
Jan 14th, 2006, 04:46 PM
Please refer to Dan Dobrin's description (http://forum.springframework.org/showpost.php?p=45904&postcount=2) here in this forum.

Torsten

mabaza
Jan 14th, 2006, 08:08 PM
Thanks Torsten.

Before I proceed any further down this path, I wanted to make sure that running the latest version of Spring (Framework and IDE) is even possible with WSAD 5.1.2 Lots of posts I have seen around the web seem to suggest that you cannot.

If it's not possible, which IBM IDE do I need to get to make it work? Thanks

Torsten Juergeleit
Jan 15th, 2006, 05:38 PM
Spring IDE 1.2.5 requires Eclipse 3.0 (or newer) with JDK 1.4.1 (or newer). So you need a version of WSAD which fulfills these requirements.

For versions of WSAD which are based on Eclipse 2 or running on JDK 1.3 you have to stick with Spring IDE 1.1.1 (the last version of Spring IDE which supports Eclipse 2 and JDK 1.3).

Torsten

shar_deo
Mar 1st, 2006, 11:20 AM
I have rationalSDP and I tried following these steps and it did not work.

DIfferences:
1. The exe file is "rationalsdp.exe" instead of "wsappdev.exe"
2. The config file is called rationalsdp.ini

When I run the shortcut I get the eclipse error dialog

JVM terminated. Exit code=1
etc...
see attached file error.jpg

Can you tell me what I need to do to get rationalsdp running with the Sun Java VM instead of the IBM VM?

Thanks.

sdeo

To get WSAD to run on a different JRE do the following (assuming Windows platform):

1. Create a shortcut

2. Put this in the target field (adjust path for your system):
"C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -vm "C:\j2sdk1.4.2_04\jre\bin\java.exe" -vmargs -Xms90m -Xmx256m

3. Put your workspace in the Start in field (adjust path for your system):
"C:\Documents and Settings\2devnull\My Documents\IBM\wsappdev51\spring"

4. Remove the line VMArgs=-Xj9 from wsappdev.ini (usually found in C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2) (THIS IS THE KEY, OR IT WOULDN'T WORK)

5. Restart WSAD using the Shortcut

BTW: Torsten Juergeleit had helped me with this. I have the Spring plugin working just fine. :D




*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
catalina.base=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.eclipse.tomcat_4.0.6.2/
catalina.home=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.eclipse.tomcat_4.0.6.2/
catalina.useNaming=true
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironm ent
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\.\eclipse\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\j2sdk1.4.2_04\jre\lib\endors ed
java.ext.dirs=C:\j2sdk1.4.2_04\jre\lib\ext
java.home=C:\j2sdk1.4.2_04\jre
java.io.tmpdir=C:\DOCUME~1\2devnull\LOCALS~1\Temp\
java.library.path=C:\j2sdk1.4.2_04\jre\bin;
java.naming.factory.initial=org.apache.naming.java .javaURLContextFactory
java.naming.factory.url.pkgs=org.apache.naming
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_04-b05
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs .WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_04
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_04-b05
line.separator=

RameshKuraviSrinivasan
Apr 20th, 2006, 03:57 AM
A little typo: "Spring IDE - Beans Configuration Support 1.0.3"

Regards,
Torsten
Hi,

I installed Spring Plug-in in my WSAD. I can also view the SpringIDE in my Show view window. But I can't change my project in Spring Nature by right clicking the project.

Please help me out.

Rgds/Ramesh.