Class Loader issue

anon <[email protected]> Sun, 4 Jan 2015 03:04:26 +0100
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
--===============6906130595314044231==
Content-Type: multipart/alternative;
	boundary="------------000608070404020105090301"

--------------000608070404020105090301
Content-Type: text/plain; charset="windows-1252"; format=flowed
Content-Transfer-Encoding: 7bit

I am getting this exception when I test the AjaxExample; I can tell for 
sure that all the classes and component have been generated/compiled but 
at runtime, they can't be found by the application when I click on a link.
=-O


/WARN  02:46:29 (NSLog               :44): 
WOBundle.lookForClassInAllBundles(AjaxUpdateLink) failed!//
//WARN  02:46:29 (NSLog               :44): 
<er.extensions.appserver.ERXComponentRequestHandler>: Exception occurred 
while handling request://
//com.webobjects.foundation.NSForwardException 
[java.lang.ClassNotFoundException] Cannot find class or component named 
AjaxUpdateLink in runtime or in a loadable 
bundle:<com.webobjects.appserver._private.WOComponentDefinition: Error 
parsing template for Component : 
'file:/home/anon/git/wonder/Examples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo'://
//java.lang.ClassNotFoundException: Cannot find class or component named 
AjaxUpdateLink in runtime or in a loadable bundle//
//[2015-1-4 2:46:29 CET] <WorkerThread2> 
com.webobjects.foundation.NSForwardException 
[java.lang.ClassNotFoundException] Cannot find class or component named 
AjaxUpdateLink in runtime or in a loadable 
bundle:<com.webobjects.appserver._private.WOComponentDefinition: Error 
parsing template for Component : 
'file:/home/anon/git/wonder/Examples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo'://
//java.lang.ClassNotFoundException: Cannot find class or component named 
AjaxUpdateLink in runtime or in a loadable bundle//
//    at 
com.webobjects.appserver._private.WOComponentDefinition.template(WOComponentDefinition.java:375)//
//    at 
com.webobjects.appserver.WOComponent.template(WOComponent.java:499)//
//    at 
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1112)//
//    at HelloAjaxWorld.appendToResponse(HelloAjaxWorld.java:21)/
     at 
com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
     at 
er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:571)
     at 
com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
     at 
er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:2023)



On 04.01.2015 02:35, anon wrote:
> I have just found the problem.
> The ERMovies and the ERExtensions do have a  build.xml symlinking -> 
> ../../../Build/build/build.xml. Somehow eclipse was complaining about 
> the structure of the xml "Content is not allowed in prolog" and the 
> ant error was keeping the depending projects from compiling correctly. 
> I could not get eclipse to ignore errors in those specifics ant files 
> and I just deleted them.
> Now I can get the classes to be generated ...:-)
>
> On 04.01.2015 02:19, Paul Yu wrote:
>> Did you load WOLips plugin?
>>
>> Sent from my iPhone
>> Please excuse iOS autocomplete
>>
>>> On Jan 3, 2015, at 7:20 PM, anon <[email protected]> wrote:
>>>
>>> The only eclipse version that was able to work with wonder latest is 
>>> the
>>> version that I have installed using the ubuntu package manager (sudo
>>> apt-get install eclipse). It did install eclipse 3.8.1.
>>> Now I am "almost" there but there is a weird thing happening with my
>>> eclipse not being able to load the main application class. I get the
>>> error: "Error: Could not find or load main class
>>> er.ajax.example2.Application". I figure that the compiler can't seem to
>>> be able to generate the class files in the output
>>> folder("target/classes") and I still have not found out the reason.
>>> Any idea?
>>>
>>>> On 03.01.2015 21:15, Ricardo Rolon wrote:
>>>> Hi Anon,
>>>>
>>>> Welcome back !
>>>>
>>>> What I know, the WOLips version is linked with the Eclipse version,
>>>> that is, if you're using WOLips version 3.7 you must use Eclipse 
>>>> version 3.7
>>>>
>>>> I believe the latest stable WOLips version at this point is 3.7.
>>>>
>>>> Could you install Eclipse version 3.7 in Ubuntu?
>>>>
>>>> - Ricardo
>>>>
>>>>> On 2015-01-03, at 1:02 PM, anon wrote:
>>>>>
>>>>> Hello Wonderful list,
>>>>> I left Webobjects 6 years ago and am back again after I have been
>>>>> disenchanted with what is going on out there. Now I would like to 
>>>>> have
>>>>> Ubuntu, eclipse( the version 3.8.1 shipped with Ubuntu14.04) and 
>>>>> maven
>>>>> play nice alongside Webobjects. I have been trying for 4 hours to no
>>>>> avail. Here are my issues:
>>>>> - WOLips doesnt work with any version of eclipse which has been
>>>>> installed manually on ubuntu (The WOComponent editor cannot open) .
>>>>> Tried many different things from googling (firefox library linking,
>>>>> different versions of firefox + eclipse installed)... not working :-(
>>>>>
>>>>> - Since I am stuck with the version of eclipse that is shipped with
>>>>> ubuntu, there is no maven plugin for that old version and I have 
>>>>> to use
>>>>> the maven goal eclipse:eclipse to generate the classpath, and it 
>>>>> works.
>>>>> yeah :-)
>>>>>
>>>>> - Eclipse still cannot resolve the classpath of my maven-generated
>>>>> $M2_REPO/classes and is still showing error all over the place, which
>>>>> means that I cannot start the WOApplication. I suspect that the 
>>>>> WOLisp
>>>>> compiler does not pick up the $M2_REPO classpath... sad. :-(
>>>>>
>>>>> Is there anyone out there that is stuck with Ubuntu 14.04 and was 
>>>>> able
>>>>> to have maven, wolisp and eclipse3.8.1 to work nicely? Or may be 
>>>>> to have
>>>>> a newer version of eclipse working with wolisp without having to 
>>>>> link to
>>>>> some firefox external library?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> ------------------------------------------------------------------------------ 
>>>>>
>>>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>>>> sponsored by Intel and developed in partnership with Slashdot 
>>>>> Media, is your
>>>>> hub for all things parallel software development, from weekly thought
>>>>> leadership blogs to news, videos, case studies, tutorials and 
>>>>> more. Take a
>>>>> look and join the conversation now. http://goparallel.sourceforge.net
>>>>> _______________________________________________
>>>>> Wonder-disc mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>>
>>> ------------------------------------------------------------------------------ 
>>>
>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, 
>>> is your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. 
>>> Take a
>>> look and join the conversation now. http://goparallel.sourceforge.net
>>> _______________________________________________
>>> Wonder-disc mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>
>


--------------000608070404020105090301
Content-Type: text/html; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html=3B charset=3Dwindows-1252"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    I am getting this exception when I test the AjaxExample=3B I can tell
    for sure that all the classes and component have been
    generated/compiled but at runtime=2C they can't be found by the
    application when I click on a link. <br>
    <span class=3D"moz-smiley-s8"><span> =3D-O </span></span><br>
    <br>
    <br>
    <i>WARN=A0 02:46:29 (NSLog=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 :4=
4):=A0
      WOBundle.lookForClassInAllBundles(AjaxUpdateLink) failed!</i><i><br>
    </i><i>WARN=A0 02:46:29 (NSLog=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 :44):=A0
      &lt=3Ber.extensions.appserver.ERXComponentRequestHandler&gt=3B:
      Exception occurred while handling request:</i><i><br>
    </i><i>com.webobjects.foundation.NSForwardException
      [java.lang.ClassNotFoundException] Cannot find class or component
      named AjaxUpdateLink in runtime or in a loadable
      bundle:&lt=3Bcom.webobjects.appserver._private.WOComponentDefinition:
      Error parsing template for Component :
'<a class=3D"moz-txt-link-freetext" href=3D"file:/home/anon/git/wonder/Exam=
ples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo">file:/home/anon/git/won=
der/Examples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo</a>':</i><i><br>
    </i><i>java.lang.ClassNotFoundException: Cannot find class or
      component named AjaxUpdateLink in runtime or in a loadable bundle</i>=
<i><br>
    </i><i>[2015-1-4 2:46:29 CET] &lt=3BWorkerThread2&gt=3B
      com.webobjects.foundation.NSForwardException
      [java.lang.ClassNotFoundException] Cannot find class or component
      named AjaxUpdateLink in runtime or in a loadable
      bundle:&lt=3Bcom.webobjects.appserver._private.WOComponentDefinition:
      Error parsing template for Component :
'<a class=3D"moz-txt-link-freetext" href=3D"file:/home/anon/git/wonder/Exam=
ples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo">file:/home/anon/git/won=
der/Examples/Ajax/AjaxExample/Components/HelloAjaxWorld.wo</a>':</i><i><br>
    </i><i>java.lang.ClassNotFoundException: Cannot find class or
      component named AjaxUpdateLink in runtime or in a loadable bundle</i>=
<i><br>
    </i><i>=A0=A0=A0 at
com.webobjects.appserver._private.WOComponentDefinition.template(WOComponen=
tDefinition.java:375)</i><i><br>
    </i><i>=A0=A0=A0 at
      com.webobjects.appserver.WOComponent.template(WOComponent.java:499)</=
i><i><br>
    </i><i>=A0=A0=A0 at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1112=
)</i><i><br>
    </i><i>=A0=A0=A0 at
      HelloAjaxWorld.appendToResponse(HelloAjaxWorld.java:21)</i><br>
    =A0=A0=A0 at
    com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385=
)<br>
    =A0=A0=A0 at
    er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:571=
)<br>
    =A0=A0=A0 at
com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:=
1794)<br>
    =A0=A0=A0 at
er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java=
:2023)<br>
    <br>
    <br>
    <br>
    <div class=3D"moz-cite-prefix">On 04.01.2015 02:35=2C anon wrote:<br>
    </div>
    <blockquote cite=3D"mid:[email protected]" type=3D"cite">I
      have just found the problem.
      <br>
      The ERMovies and the ERExtensions do have a=A0 build.xml symlinking
      -&gt=3B ../../../Build/build/build.xml. Somehow eclipse was
      complaining about the structure of the xml "Content is not allowed
      in prolog" and the ant error was keeping the depending projects
      from compiling correctly. I could not get eclipse to ignore errors
      in those specifics ant files and I just deleted them.
      <br>
      Now I can get the classes to be generated ...:-)
      <br>
      <br>
      On 04.01.2015 02:19=2C Paul Yu wrote:
      <br>
      <blockquote type=3D"cite">Did you load WOLips plugin?
        <br>
        <br>
        Sent from my iPhone
        <br>
        Please excuse iOS autocomplete
        <br>
        <br>
        <blockquote type=3D"cite">On Jan 3=2C 2015=2C at 7:20 PM=2C anon
          <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:akemerofako@hot=
mail.de">&[email protected]&gt=3B</a> wrote:
          <br>
          <br>
          The only eclipse version that was able to work with wonder
          latest is the
          <br>
          version that I have installed using the ubuntu package manager
          (sudo
          <br>
          apt-get install eclipse). It did install eclipse 3.8.1.
          <br>
          Now I am "almost" there but there is a weird thing happening
          with my
          <br>
          eclipse not being able to load the main application class. I
          get the
          <br>
          error: "Error: Could not find or load main class
          <br>
          er.ajax.example2.Application". I figure that the compiler
          can't seem to
          <br>
          be able to generate the class files in the output
          <br>
          folder("target/classes") and I still have not found out the
          reason.
          <br>
          Any idea?
          <br>
          <br>
          <blockquote type=3D"cite">On 03.01.2015 21:15=2C Ricardo Rolon
            wrote:
            <br>
            Hi Anon=2C
            <br>
            <br>
            Welcome back !
            <br>
            <br>
            What I know=2C the WOLips version is linked with the Eclipse
            version=2C
            <br>
            that is=2C if you're using WOLips version 3.7 you must use
            Eclipse version 3.7
            <br>
            <br>
            I believe the latest stable WOLips version at this point is
            3.7.
            <br>
            <br>
            Could you install Eclipse version 3.7 in Ubuntu?
            <br>
            <br>
            - Ricardo
            <br>
            <br>
            <blockquote type=3D"cite">On 2015-01-03=2C at 1:02 PM=2C anon
              wrote:
              <br>
              <br>
              Hello Wonderful list=2C
              <br>
              I left Webobjects 6 years ago and am back again after I
              have been
              <br>
              disenchanted with what is going on out there. Now I would
              like to have
              <br>
              Ubuntu=2C eclipse( the version 3.8.1 shipped with
              Ubuntu14.04) and maven
              <br>
              play nice alongside Webobjects. I have been trying for 4
              hours to no
              <br>
              avail. Here are my issues:
              <br>
              - WOLips doesnt work with any version of eclipse which has
              been
              <br>
              installed manually on ubuntu (The WOComponent editor
              cannot open) .
              <br>
              Tried many different things from googling (firefox library
              linking=2C
              <br>
              different versions of firefox + eclipse installed)... not
              working :-(
              <br>
              <br>
              - Since I am stuck with the version of eclipse that is
              shipped with
              <br>
              ubuntu=2C there is no maven plugin for that old version and
              I have to use
              <br>
              the maven goal eclipse:eclipse to generate the classpath=2C
              and it works.
              <br>
              yeah :-)
              <br>
              <br>
              - Eclipse still cannot resolve the classpath of my
              maven-generated
              <br>
              $M2_REPO/classes and is still showing error all over the
              place=2C which
              <br>
              means that I cannot start the WOApplication. I suspect
              that the WOLisp
              <br>
              compiler does not pick up the $M2_REPO classpath... sad.
              :-(
              <br>
              <br>
              Is there anyone out there that is stuck with Ubuntu 14.04
              and was able
              <br>
              to have maven=2C wolisp and eclipse3.8.1 to work nicely? Or
              may be to have
              <br>
              a newer version of eclipse working with wolisp without
              having to link to
              <br>
              some firefox external library?
              <br>
              <br>
              Thanks.
              <br>
              <br>
---------------------------------------------------------------------------=
---
              <br>
              Dive into the World of Parallel Programming! The Go
              Parallel Website=2C
              <br>
              sponsored by Intel and developed in partnership with
              Slashdot Media=2C is your
              <br>
              hub for all things parallel software development=2C from
              weekly thought
              <br>
              leadership blogs to news=2C videos=2C case studies=2C tutoria=
ls
              and more. Take a
              <br>
              look and join the conversation now.
              <a class=3D"moz-txt-link-freetext" href=3D"http://goparallel.=
sourceforge.net">http://goparallel.sourceforge.net</a>
              <br>
              _______________________________________________
              <br>
              Wonder-disc mailing list
              <br>
              <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Wonder-d=
[email protected]">[email protected]</a>
              <br>
              <a class=3D"moz-txt-link-freetext" href=3D"https://lists.sour=
ceforge.net/lists/listinfo/wonder-disc">https://lists.sourceforge.net/lists=
/listinfo/wonder-disc</a>
              <br>
            </blockquote>
          </blockquote>
          <br>
---------------------------------------------------------------------------=
---
          <br>
          Dive into the World of Parallel Programming! The Go Parallel
          Website=2C
          <br>
          sponsored by Intel and developed in partnership with Slashdot
          Media=2C is your
          <br>
          hub for all things parallel software development=2C from weekly
          thought
          <br>
          leadership blogs to news=2C videos=2C case studies=2C tutorials a=
nd
          more. Take a
          <br>
          look and join the conversation now.
          <a class=3D"moz-txt-link-freetext" href=3D"http://goparallel.sour=
ceforge.net">http://goparallel.sourceforge.net</a>
          <br>
          _______________________________________________
          <br>
          Wonder-disc mailing list
          <br>
          <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Wonder-disc@=
lists.sourceforge.net">[email protected]</a>
          <br>
          <a class=3D"moz-txt-link-freetext" href=3D"https://lists.sourcefo=
rge.net/lists/listinfo/wonder-disc">https://lists.sourceforge.net/lists/lis=
tinfo/wonder-disc</a>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>

--------------000608070404020105090301--


--===============6906130595314044231==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
--===============6906130595314044231==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc

--===============6906130595314044231==--