EJB validator and IllegalStateException [message #120792] |
Thu, 14 July 2005 08:38  |
Eclipse User |
|
|
|
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 #120806 is a reply to message #120797] |
Thu, 14 July 2005 11:00  |
Eclipse User |
|
|
|
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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.03347 seconds