• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I think my web project is mis-structured

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We're using WSAD 5.1 and moving to 6 as soon as the spirit moves me.

I decided I'd check out my app into WSAD 6. I got CVS configured and did the "import CVS with wizard" thing.

The first problem is that not all my files came down. Some of my jars were marked as "deleted" at some point in the past, like 5 revisions ago. These jars live happily in 5.1 and seem to behave. Any idea on how to address this?

Second, is the difficulty in creating a project from scratch using a project in CVS as a starting point. I have almost certainly mis-configured the projet. We've had to hand-massage every developer installation to get it to work. I guess I have put files in the wrong place. I put my company's jar files in WebContent/WEB-INF/lib. Is this better used for standard jars exclusively? Or is the problem that I included websphere-ish jars in my project? This is probably more of a J2EE question than anything, but whatever I do needs to work with WSAD.
[ October 20, 2006: Message edited by: Tony Smith ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tony Smith:
I decided I'd check out my app into WSAD 6. I got CVS configured and did the "import CVS with wizard" thing.


This sounds like the root of the problem. Are you sure the files are in CVS?

These jars live happily in 5.1 and seem to behave. Any idea on how to address this?


This further leads me to believe the jars aren't in CVS. Try pulling the CVS project into a different WSAD 5 workspace to make sure.

Second, is the difficulty in creating a project from scratch using a project in CVS as a starting point. I have almost certainly mis-configured the projet. We've had to hand-massage every developer installation to get it to work. I guess I have put files in the wrong place. I put my company's jar files in WebContent/WEB-INF/lib.


It's fine to put any jar files you want in WebContent/WEB-INF/lib. Can you elaborate on what you had to "hand-massage" to get things to work? Did you release the .project and .classpath files afterwards.
 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I am 100% positive the files are in CVS. My WSAD 5.1 installation reports one of then as version 1.15 (with the proper tag, I did a release a few weeks back.) But that's WSAD 6 and will require a project conversion to 6 I suppose.

I can't even recreate the project properly in 5.1 (for other reasons.) So let me put off the WSAD 6 issues for another day.

I was going to go through the steps I normally go through to create the project in 5.1, then realized I don't have a procedure. I make it work on each developer's machine and it stays there forever, being CVS UPDATEd when needed.

So allow me to rephrase. How does one properly create a new Web Project (project + projectEAR) from a seeingly working Web project that's in CVS? As I was trying to explain how I did it, I created the project without using CVS then was in the position of having to import from CVS, overwriting any files WSAD had just created. Sounds wrong.
[ October 20, 2006: Message edited by: Tony Smith ]
 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been fiddling with this all off and on all day (again.)

This time, from windows, I did a CVS checkout into my workspace.
Then I created a new J2EE Application Application Project attempting to use the same name as I checked out. This failed because the directory already existed. So I renamed the stuff I checked out, made the Project and associated ProjectEAR projects, and swapped my checked-out code into the place where I think it should be.

After getting the JVM right (1.4.2) and the libraries set up, everything compiled.

However, now I am getting "CHKJ1004E: The URI, Blah.war, does not match anything in the EAR file.application.xmlBlahEAR/META-INFline 3" errors and
"CHKJ1000E: Validation failed because the application client file is not valid. Ensure that the deployment descriptor is valid.Blah"

errors. Everything looks good but you know how that is.

I'll jack around with this and get it to work. Until the next time I want a clean deploy. Then I'll be going through this again.

How do you all do this?


 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tony,
I don't have any problems sharing code from CVS. Is there any reason you don't save the EAR in CVS in addition to the Web project? It sounds like this is where a lot of the difficulties are coming from.
 
Tony Smith
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, adding the EAR tothe code mangler is a good idea.

Take 1 -

I did that and, from Windows (not WSAD) checked the project out.
Then I checked out the EAR, again from Windows.

Now WSAD won't recognize these directories - they aren't 'projects' known to WSAD.

Take 2 -

I moved the checked-out goodies to c:\temp, then did an IMPORT from WSAD which put the files into a weird place (Servers). I deleted them out - it isn't what I want.

It comes down to I don't know how to check projects directly out of CVS in such a way that they are known to WSAD as projects.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic