• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mavenized project and custom components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mavenized project and custom components


  • Subject: Re: Mavenized project and custom components
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 8 Oct 2009 10:50:35 +1100

In other words (pointing to the wiki :)
http://wiki.objectstyle.org/confluence/display/WOL/Tutorials >
Maven Running or Debugging as WO Application

i.e., <http://wiki.objectstyle.org/confluence/display/WOL/Maven+Running+or+Debugging+as+WO+Application >

On 08/10/2009, at 5:35 AM, Henrique Prange wrote:

Hi Alexis,

Did you add the build/YourApp.woa/Contents/Resources/Java folder to the classpath in the Run Configuration window?

If not, you have to select the menu Run -> Run Configurations... Select the application configuration in the left pane. Go to the Classpath tab, select User Entries, click in the Advanced button (in the right). Choose Add Folders and select YourApp/build/YourApp.woa/ Contents/Resources/Java folder.

Run your application again and check if the problem was solved.

Cheers,

Henrique

Alexis Tual wrote:
Hi list,
i'm using the maven layout structure on a new project (woapplication-archetype 2.1). When i launch the application with WOLips, custom component classes cannot be found , i get the following error :
<WorkerThread0> WOBundle.lookForClassInAllBundles(MyComp) failed!
[2009-10-7 17:57:9 CEST] <WorkerThread0> <com.webobjects.appserver._private.WOComponentDefinition> WARNING: Unable to find component class named "MyComp". If this is not intended to be a classless component, check your framework settings and the contents of your classpath file (in the .woa's Contents/ <PLATFORM_NAME> subdirectory).
I can use the qualified name within the template to solve this problem or do this _NSUtilities.setClassForName(MyComp.class, "MyComp"); in the Application constructor.
But it's a bit tedious and error prone...
Are the wo maven guys facing the same problem in dev mode ?
Thanks for your feedback,
Alexis
------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

with regards, --

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Mavenized project and custom components
      • From: Alexis Tual <email@hidden>
References: 
 >Mavenized project and custom components (From: Alexis Tual <email@hidden>)
 >Re: Mavenized project and custom components (From: Henrique Prange <email@hidden>)

  • Prev by Date: Re: Let's play "Spot the Deadlock" ;-)
  • Next by Date: Re: Let's play "Spot the Deadlock" ;-)
  • Previous by thread: Re: Mavenized project and custom components
  • Next by thread: Re: Mavenized project and custom components
  • Index(es):
    • Date
    • Thread