aspose file tools*
The moose likes Websphere and the fly likes Websphere Application Developer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere Application Developer" Watch "Websphere Application Developer" New topic
Author

Websphere Application Developer

richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Hi
Has anyone successfully developed EJB's on 'Websphere Studio Application Developer' (the new VAJ)?
I have been working on VAJ devloping CMP EJB's for a while and found it pretty basic. Now I am trying to convert to 'WS Application Developer' and find it very confusing. How has everyone else found it?
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
i am using VAJ for a while and just upgraded to 4.0 and it looks exactly like 3.5.3 to me
can you tell me what diffrences you are expeirencing?
richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Hi Fred
The tool I am talking about is supposed to replace VAJ.
They seem to have combined VAJ & WS Studio. It looks like a very impressive tool. But has changed a bit from VAJ.
You can download a beta for free at: http://www-4.ibm.com/software/webservers/studio/preregister.html
(WebSphere Studio Application Developer Preview for Windows)
The download is mode up of 3 70MB exe files.
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
thanx ill check it out
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Originally posted by richard marais:
Hi
Has anyone successfully developed EJB's on 'Websphere Studio Application Developer' (the new VAJ)?
I have been working on VAJ devloping CMP EJB's for a while and found it pretty basic. Now I am trying to convert to 'WS Application Developer' and find it very confusing. How has everyone else found it?

Hi. Yes, I've been working on the WSAD beta for several months now. I'll agree it's confusing. It's a big change from VAJ. I'll be happy to try to answer any questions you have, though.
Kyle

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Hi Kyle
As I said previously I have been having a few problems with WSAD. I am trying to migrate a working project from VAJ(3.5) to WSAD(beta). I looked at the 'Online Auction' sample WSAD provides & covers in the help documentation, and have tried to base my structure on it.
1. I seem to have a problem connecting my CMP EJBs to the db schema.
I have imported a deployed EJB jar file from VAJ (containing CMP & session EJBs). I have placed it in an 'EJB Project' in WSAD. In the J2EE View I can see each bean & their columns. However in the Navigator view I can only see the Schema.dbxmi, ejb-jar.xml & other xmi & MF files under META-INF.
I have managed to create an Oracle db connection. Can see the all the tables, no probs.
In the J2EE view I right click my EJB (under EJB Modules) select Generate for enterprise beans > Create EJB to RDB Mapping. I select Meet in the Middle, because the tables already exist on the db & the cmp beans already exist. I select 'match by name'.
I create a session ItemHelper EJB.
**In the J2EE View mode I can see all the beans, but when I double click them they do not open in the editor.
I set the JNDI name in the EJB extension editor tp 'jdbc/ora' where 'ora' is the name of the db. Each individual bean already has their JNDI name filled in matching the package structure from the exported ejb's from VAJ (ie. 'com/orygen/entity/Task'). But I changed it to 'ejb/Task'.
I imported a deployed EJB jar file from VAJ. The bean names have changed to include the dir structure (ie. 'com/orygen/entity/Task' has changed to 'com_orygen_entity_Task'). Is this right?
I select Generate for enterprise beans > Deploy code and RMIC Stub and Tie code. I select all the beans & finish. I get the following error:
RMIC deploy code: Deployment of TimesheetEJB did not complete successfully due to the following error: RMIC Command returned RC = 1.
Do you have any suggestions?
2. I have imported a jar from VAJ containing numerous classes into a 'Web Project' in WSAD. I have placed the packages in a source directory.
**When I click build it does not compile the code. I have some obvious errors (eg. no semi-colon) and it does not pick it up. It does not create the *.class file.
Thanks in advance
richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Kyle, please ignore quetion 2 above. I have managed to get the code to complie. (Did nothing apart from rebooting the pc, wierd). thanks
richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Hi Kyle,
I only got the EJB project to complie its classes. When I try and build/rebuild the web project I get the following error message:
Build Problems:
Problems occured building the selected resources: java.lang.NullPointerException encountered while running org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.
Do you have any suggestions?
Thanks
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
I have a possible solution for the first problem -- WSAD is very sensitive to having a primary key in the database schema -- if it doesn't have one, code generation fails (go figure). Try opening your schema xmi file and ensuring that there is a primary key there.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
richard marais
Ranch Hand

Joined: Aug 20, 2001
Posts: 30
Hi Kyle,
I checked and each cmp bean has a primary key.
I it incorrect to export 'deployed ejb' jar from VAJ into WSAD? Should I rather export an ejb jar?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Well, the difference is that a "deployed" JAR includes the mapping -- if you don't mind doing it all yourself, you can import an eJB-jar file. However, either should work.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Originally posted by richard marais:
Hi Kyle,
I checked and each cmp bean has a primary key.
I it incorrect to export 'deployed ejb' jar from VAJ into WSAD? Should I rather export an ejb jar?


Ahhh -- that's not what I meant. Make sure the TABLE in the schema has a primary key defined. Not the bean...
Kyle

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Dave Hill
Greenhorn

Joined: Mar 21, 2003
Posts: 6
Anyone figure this out? I'm having the same problem, nullpointerexception when I Build Project or Rebuild Project.
Originally posted by richard marais:
Hi Kyle,
I only got the EJB project to complie its classes. When I try and build/rebuild the web project I get the following error message:
Build Problems:
Problems occured building the selected resources: java.lang.NullPointerException encountered while running org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.
Do you have any suggestions?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere Application Developer
 
Similar Threads
Certification question, what should I go for next?
Visual Age for Java and WLS6.1/JDK1.3.
IBM Test 283 Or WCD?
who can brief about WSAD history
Why is VAJ replaced by Eclipse?