Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RAD6 - Web Library Projects

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having a spot of bother with migrating an app from WSAD 5.0 to RAD 6.

I have an EAR, which contains a WAR and an EJB.

The EJB loads fine when running in the RAD6 Test Environment but the WAR classes are not being loaded by the Classloader at all.

After investigation I found the following.

In WSAD 5.0, my WAR projects are defined in the WAR (web.xml) as "Web Library Projects", or virtual jars as some call them.

If I start the server and hit it with a little class loader utility that I have then I can see that my WAR classes have loaded and it shows the classpath as

C:\App\Project1\Classes;C:\App\Project2\Classes and so on.

I have set things up exactly the same in RAD6, with the Projects output going to the \Classses directory in each project, however the app doesn't work, and if I use the class loader utility I see that the Classpaths are being written as

C:\App\Project1;C:\App\Project2 and so on.

Where has the \Classes bit gone ?

How do I get it back ?

Can anyone help ?

Cheers Matt
 
Ranch Hand
Posts: 2107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, not related to your question, but, did u have any trouble downloading and installing the rad? its taking too long to download and too long to install, and now after waiting for hours, it says one of my downloaded files is not okay, so i have do it again,...arggggg
 
Matt James
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I didn't install it so I don't know.

Cheers Matt
 
Matt James
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Long time since I asked this but thought I would post what I found for posterity. RAD requires that the code projects that you want to be used as 'Virtual JAR's' are in your workspace directory. I have my code seperate to the workspace which was why it never worked.

Cheers Matt
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the followup.

I'm sure there are plenty of other people that will experience the same pain.

-Cameron
 
The knights of nee want a shrubbery. And a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic