Also Console prints

[WARN] Server class 'org.ietf.jgss.GSSException' could not be found in the 
web app, but was found on the system classpath
   [ERROR] Found resouce but unrecognized URL format: 
'jrt:/java.security.jgss/org/ietf/jgss/GSSException.class'


On Friday, August 13, 2021 at 1:53:45 PM UTC-5 Yibin Li wrote:

> I just upgrade my Eclipse to 2020-06 and Java JDK 11
>
> My Oracle client on my PC is Oracle 11.2. There is ojdbc6_g.jar is 
> in C:\Oracle\product\11.2.0\client_1\jdbc\lib
>
> I created a new GWT Web Application
>
> In Data connection module, I copied or Java 8 DB Connection code here
>
> 1. I tried
> OracleDataSource ods2 = new OracleDataSource();
> String url = "jdbc:oracle:thin:@/server:port/service";
>  ods2.setURL(url);
>  ods2.setUser(appsettings.getString("username"));
>   ods2.setPassword( appsettings.getString("pwd")  );
>
> It can compile. But when I debug the connection
> Line : OracleDataSource ods2 = new OracleDataSource(); throws exception
> [ERROR] Found resouce but unrecognized URL format: 
> 'jrt:/java.sql/javax/sql/DataSource.class'.
>
> 2. Then I try another way to connect to t DB
> Connection con=DriverManager.getConnection(  
> "jdbc:oracle:thin:@server:port","username","pwd");  
>
> It throws :
> java.lang.NoClassDefFoundError: org/ietf/jgss/GSSException
> at java.base/java.lang.Class.forName0(Native Method)
> at java.base/java.lang.Class.forName(Class.java:315)
> at oracle.net.ano.Ano.init(Unknown Source)
> at oracle.net.ns.NSProtocol.connect(NSProtocol.java:284)
> at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1407)
> at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
> at 
> oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:535)
> at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:218)
> at 
> oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)
> at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
> at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
>
>
> Any suggestions or comments
>
> Thank you for your help
>
> Yibin Li
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/f7bfbbe3-4c87-449b-b5ef-bac1787c5622n%40googlegroups.com.

Reply via email to