>> import javax.sql.rowset;
>
> You want the package's contents, so use
>
> import javax.sql.rowset.*;
that it were so easy!
The class file(s) were written by someone else, and I have no access (as
far as I know) to the original source code.
The app works just fine on the test machine, so it must be a case of a
missing jar file, or a duff path?
Oliver Wong - 21 Sep 2005 21:38 GMT
>>> import javax.sql.rowset;
>>
[quoted text clipped - 9 lines]
> The app works just fine on the test machine, so it must be a case of a
> missing jar file, or a duff path?
The line:
<code>
import javax.sql.rowset;
</code>
should NOT work. It should cause a compile time error (specially, it should
give the error message: "Only a type can be imported. javax.sql.rowset
resolves to a package"). Either you are mistaken in thinking that the code
compiled on the test machine, or your test machine has code written by
someone very malicious and is trying to screw with your mind (i.e. if it
compiled, it implies that someone actually wrote a class called "rowset",
with a lowercase r, and put it in the package "javax.sql" which is owned by
Sun and shouldn't be touched).
- Oliver
s_m_b - 22 Sep 2005 09:36 GMT
>>>> import javax.sql.rowset;
>>>
[quoted text clipped - 27 lines]
>
> - Oliver
well, I'll take you word on that! I'm not a Java developer, just the guy
who's trying to get this app to work on the kit we've got.
The page that has the 'import' statement is a .jsp so I've edited and it
seems to be working now.
The only difference between the two servers is that the test one runs
1.4.2_05 + tomcat 5.0.18 and the live runs 1.4.2_09
anyway, thanks for the pointer!
Roedy Green - 22 Sep 2005 02:49 GMT
>The class file(s) were written by someone else, and I have no access (as
>far as I know) to the original source code.
You must have the JSP source code that gets compiled into Java. That
error message is complaining about source code. Further, it should
NEVER have worked. Something does not add up. Have you or anyone
else changed any import statements?
What has changed?

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.