Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Why the JavaBeans created with JBuilder cant be found by Solaris JWS?

Dear folks,

I have made several JavaBeans in WinNT environment with JBuilder 3.5, and
then I copied it into Solaris directoy and use Java Server Page to use it,
just as:

<jsp:useBean id="jdbc_bean" scope="application" class="HttpJDBCBean" />

but, the JWS just can't find it? It response as:

Class: HttpJDBCBean not found.

Who can kindly tell me why?

Truly,
Franklin Shen
[447 byte] By [FRANKLIN SHEN] at [2007-11-9 21:18:15]
# 1 Re: Why the JavaBeans created with JBuilder cant be found by Solaris JWS?
Franklin,

You need to put the page directive up at the top of the page:

<%@ page import="HttpJDBCBean" session="true" %>

That should get it to work.

Reid
tagreid@hotmail.com

"FRANKLIN SHEN" <shenfranklin@hotmail.com> wrote:
>
>Dear folks,
>
>I have made several JavaBeans in WinNT environment with JBuilder 3.5, and
>then I copied it into Solaris directoy and use Java Server Page to use it,
>just as:
>
> <jsp:useBean id="jdbc_bean" scope="application" class="HttpJDBCBean" />
>
>but, the JWS just can't find it? It response as:
>
>Class: HttpJDBCBean not found.
>
>Who can kindly tell me why?
>
>Truly,
>Franklin Shen
>
>
>
tagreid at 2007-11-11 23:09:42 >
# 2 Re: Why the JavaBeans created with JBuilder cant be found by Solaris JWS?
Dear Reid,

Thank you for the post. But in my jsp files i had those lines already. I
tried later and find the actual problem is I had no system administrator
authorities just like a "root" role. So with the help from our system administrator
I can really made the JWP admit my JavaBean and run my JSP.

Anyway, thank you very much!

Best!
Franklin Shen

"tagreid" <tagreid@hotmail.com> wrote:
>
>Franklin,
>
>You need to put the page directive up at the top of the page:
>
><%@ page import="HttpJDBCBean" session="true" %>
>
>That should get it to work.
>
>Reid
>tagreid@hotmail.com
>
>
>"FRANKLIN SHEN" <shenfranklin@hotmail.com> wrote:
>>
>>Dear folks,
>>
>>I have made several JavaBeans in WinNT environment with JBuilder 3.5, and
>>then I copied it into Solaris directoy and use Java Server Page to use
it,
>>just as:
>>
>> <jsp:useBean id="jdbc_bean" scope="application" class="HttpJDBCBean" />
>>
>>but, the JWS just can't find it? It response as:
>>
>>Class: HttpJDBCBean not found.
>>
>>Who can kindly tell me why?
>>
>>Truly,
>>Franklin Shen
>>
>>
>>
>
Franklin Shen at 2007-11-11 23:10:38 >