Re: Unexplained WOSessionStore or NSProperties ClassNotFound Exceptions
Re: Unexplained WOSessionStore or NSProperties ClassNotFound Exceptions
- Subject: Re: Unexplained WOSessionStore or NSProperties ClassNotFound Exceptions
- From: Filippo Laurìa <email@hidden>
- Date: Tue, 16 Jul 2013 16:33:13 +0200
2013/7/16 Chuck Hill <email@hidden>:
> I think that I am completely lost by now. :)
I appreciate your interest for this cause :)
>
> Can you start again, and tell us what your specific goals are and how you are trying to accomplish them?
Few months ago my university tutors gave me, for my master thesis in
computer engineering, to modify a complex WebObjects based
web-application. Its name is Web-CAT
(http://sourceforge.net/projects/web-cat/).
So, the goal is start to modify this application.
Unfortunately authors don't provide technical infos on setting up a
development environment to start modifying application. Actually,
application source, when downloaded and put into eclipse, generates up
2000 java problems (that I solved including some external libraries
and changing few lines of code around).
Now troubles come out at runtime when application is fully deployed on
the famous tomcat7 servlet container (i'm unzipping the generated
war). One of this troubles was that one in the subject of this mail,
(that i solved thanks to suggestion of Henrique Prange).
You know, authors provide (from sourceforge) a delpoyable war that
runs with no problems (on anothere instance of the same servlet
container) and with inclusion of no jars into WEB-INF/lib directory.
So, clearly, the problem still persists.
As if that were not enough, when starting (application starts with an
installation wizard) the application falls in a deadlock after few
"installation steps". (we will discuss on this in another threat).
The application is structured as WebObjects frameworks linked
together. So i think that problem can be (it's a guess) framework
inclusion order.
I'm deploying with WOLips ant tasks
(org.objectstyle.woproject.ant.WOApplication), so here it comes a
little question: can I totally disable WOLips eclipse incremetal
building?
Another question is this: the order of WebObjects frameworks in
"Properties" -> "Java build path" (eclipse tab) (that eclipse saves
into .classpath files) is ininfluential if the application is builded
with ant tasks?
Typically, does ant tasks looks for frameworks to include (and the
inclusion order too) starting from a directory called "woproject"
(into the eclipse project root) or it's a particular case of this
specific application?
Thank you
Filippo
>
> Thanks
> Chuck
>
>
> On 2013-07-11, at 6:07 AM, Filippo Laurìa wrote:
>
>> 2013/7/10 Henrique Prange <email@hidden>:
>>> Hi Filippo,
>>>
>>> On 09/07/2013, at 11:17, Filippo Laurìa <email@hidden> wrote:
>>>
>>>> 2013/7/3 Chuck Hill <email@hidden>:
>>>>>
>>>>> On 2013-07-02, at 2:00 PM, Filippo Laurìa wrote:
>>>>>
>>>>> 2013/7/2 Chuck Hill <email@hidden>:
>>>>>
>>>>> The JavaWebObjects.framework/Resources/Java/javawebobjects.jar is different
>>>>> than WAR type jar bundles.
>>>>>
>>>>> That might be a problem?
>>>>>
>>>>> I don't think so.
>>>>> I took the same WebObjects frameworks that deployed and fully working
>>>>> application (on Tomcat, too) uses.
>>>>>
>>>>> If you think this could be a problem, maybe it is.
>>>>> Can you explain how to use WAR type jar bundles of frameworks used?
>>>>>
>>>>>
>>>>> They have the Resources/ folder contents embedded in them. They are
>>>>> stand-alone jar files.
>>>>>
>>>>
>>>> I don't think this is the problem, since I understood that there were
>>>> no needs to install all WebObjects+Project Wonder frameworks because I
>>>> was taking only needed (Ajax, EOJDBCPrototypes, ERDirectToWeb,
>>>> ERExtensions, ERJars, ExternalJars, JavaDirectToWeb,
>>>> JavaDTWGeneration, JavaEOAccess, JavaEOControl, JavaEOProject,
>>>> JavaFoundation, JavaJDBCAdaptor, JavaWebObjects, JavaWOExtensions,
>>>> JavaWOJSPServlet and WOOgnl).
>>>>
>>>> Now, I was wondering, is there some "precedence constraint" among
>>>> these frameworks?
>>>>
>>>> I know that dynamic class loader, maybe, was intended to bypass these
>>>> troubles but, I read, somewhere in the source code of application I'm
>>>> trying to build, to put into Eclipse build path always first
>>>> ERExtensions then JavaWOExtensions.
>>>>
>>>> Is that true?
>>>
>>> This is true, but I don't think it's related to your problem.
>>>
>>> Have you tried to put all the jars in the WEB-INF/lib folder? Do the application throw the same exception?
>>>
>>
>> With this advice the application starts (with its wizard installer).
>> But is that a dirty trick?! I mean, I'm happy because application
>> starts and this is better than a startup failure, but original
>> application (that one deployed from original authors) works - on
>> tomcat, I mean - without copying jars into WEB-INF/lib.
>>
>> I'm pretty sure that Eclipse is messing up something. Has this some
>> sense, considering that I've no java errors at build time, or I'm
>> wrong?
>>
>> Is there any alternative to Eclipse+WOLips on Linux systems?!
>>
>>> Also, as Chuck mentioned, you should use the correct WebObjects jars when deploying to Tomcat. The correct jars are available in the /Library/WebObjects/lib folder.
>>>
>>
>> I will try this as soon as possible.
>>
>> Thank you, both of you, for your advices and your patience.
>>
>> Filippo
>>
>>> Cheers,
>>>
>>> Henrique
>>>
>
> --
> Chuck Hill
> Executive Managing Partner, VP Development and Technical Services
>
> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/gvc/practical_webobjects
>
> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
>
> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>
>
>
>
>
>
>
>
>
>
>
>
_______________________________________________
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