Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » EJB validator and IllegalStateException
EJB validator and IllegalStateException [message #120792] Thu, 14 July 2005 08:38 Go to next message
Eclipse UserFriend
Originally posted by: susanne.deiters.gmail.com

Hi all,

I successfully created an EJB project with EJB client and EAR.

But so far, I'm not able to start my App server if I add my EJB project
to it. There are only two warnings shown in eclipse:

A warning starting with the string "IWAE0010E". An IllegalStateException
is reported by the EJB validator; but no reason is given for the
exception an there's no entry in the log file

The serializable class <EJB-name>Session does not declare a static
final serialVersionUID field of type long.

I don't know if the IllegalStateException might be a follow up to the
warning regarding field serialVersionUID. But the <EJB-name>Session
class is Xdoclet generated, so I can't edit it.

Any help is appreciated.

Susanne
Re: EJB validator and IllegalStateException [message #120796 is a reply to message #120792] Thu, 14 July 2005 09:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: harry.raceeend.demon.nl

Susanne Deiters wrote:
> Hi all,
>
> I successfully created an EJB project with EJB client and EAR.
>
> But so far, I'm not able to start my App server if I add my EJB project
> to it. There are only two warnings shown in eclipse:
>
> A warning starting with the string "IWAE0010E". An IllegalStateException
> is reported by the EJB validator; but no reason is given for the
> exception an there's no entry in the log file
>
> The serializable class <EJB-name>Session does not declare a static
> final serialVersionUID field of type long.
>
> I don't know if the IllegalStateException might be a follow up to the
> warning regarding field serialVersionUID. But the <EJB-name>Session
> class is Xdoclet generated, so I can't edit it.
>
> Any help is appreciated.
>
> Susanne
>
Hi Susanne,
How did you manage that ? I get a message when adding an EJB to an EJB
project like "Source folder path must be absolute".
Re: EJB validator and IllegalStateException [message #120797 is a reply to message #120796] Thu, 14 July 2005 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: susanne.deiters.gmail.com

Harry van Rijn wrote:
> Susanne Deiters wrote:
>
>> Hi all,
>>
>> I successfully created an EJB project with EJB client and EAR.
>>
>> But so far, I'm not able to start my App server if I add my EJB
>> project to it. There are only two warnings shown in eclipse:
>>
>> A warning starting with the string "IWAE0010E". An
>> IllegalStateException is reported by the EJB validator; but no reason
>> is given for the exception an there's no entry in the log file
>>
>> The serializable class <EJB-name>Session does not declare a
>> static final serialVersionUID field of type long.
>>
>> I don't know if the IllegalStateException might be a follow up to the
>> warning regarding field serialVersionUID. But the <EJB-name>Session
>> class is Xdoclet generated, so I can't edit it.
>>
>> Any help is appreciated.
>>
>> Susanne
>>
> Hi Susanne,
> How did you manage that ? I get a message when adding an EJB to an EJB
> project like "Source folder path must be absolute".
Hi Harry,

I just observed that you get this message, if you use the "Browse"
button beneath the "Folder" field in dialog "Create Enterprise Java
Bean" to select a folder. By default, this field is prefilled with
"\<projectName>\ejbModule". If I select exacly this folder using the
"Browse" button, slashes instead of backslashes are used and the error
message is shown. Replacing the slashes by backslashes again removes the
problem.

Susanne
Re: EJB validator and IllegalStateException [message #120806 is a reply to message #120797] Thu, 14 July 2005 11:00 Go to previous message
Eclipse UserFriend
Originally posted by: harry.raceeend.demon.nl

Susanne Deiters wrote:
> Harry van Rijn wrote:
>
>> Susanne Deiters wrote:
>>
>>> Hi all,
>>>
>>> I successfully created an EJB project with EJB client and EAR.
>>>
>>> But so far, I'm not able to start my App server if I add my EJB
>>> project to it. There are only two warnings shown in eclipse:
>>>
>>> A warning starting with the string "IWAE0010E". An
>>> IllegalStateException is reported by the EJB validator; but no reason
>>> is given for the exception an there's no entry in the log file
>>>
>>> The serializable class <EJB-name>Session does not declare a
>>> static final serialVersionUID field of type long.
>>>
>>> I don't know if the IllegalStateException might be a follow up to the
>>> warning regarding field serialVersionUID. But the <EJB-name>Session
>>> class is Xdoclet generated, so I can't edit it.
>>>
>>> Any help is appreciated.
>>>
>>> Susanne
>>>
>> Hi Susanne,
>> How did you manage that ? I get a message when adding an EJB to an EJB
>> project like "Source folder path must be absolute".
>
> Hi Harry,
>
> I just observed that you get this message, if you use the "Browse"
> button beneath the "Folder" field in dialog "Create Enterprise Java
> Bean" to select a folder. By default, this field is prefilled with
> "\<projectName>\ejbModule". If I select exacly this folder using the
> "Browse" button, slashes instead of backslashes are used and the error
> message is shown. Replacing the slashes by backslashes again removes the
> problem.
>
> Susanne
Good heaven, that cannot be true. I work with linux. There the / is a
standard path separator. So I must changed this to \ ?
Well I did. (One \ at the very beginning also seems to do the job.)
Very strange.
Anyhow, now an error occurs when "Create EnterpriseJavaBean finished"
(java.lang.reflect.InvocationTargetException).
Pffft this eclipse reminds me to the times of 15 years back, nothing worked.
However, this is really a big problem, I want to learn J2ee, but I spent
most of the time getting tools to work.
Can you create an EJB this way ?
Previous Topic:error when creating servlet
Next Topic:hooking up xml outline view to custom xml contentType
Goto Forum:
  


Current Time: Wed May 07 13:08:08 EDT 2025

Powered by FUDForum. Page generated in 0.05153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top