+ ".java.javaURLContextFactory");
}
- } catch (Throwable t) {
+ } catch (Exception e) {
state = STOPPED;
notification = new AttributeChangeNotification
(this, sequenceNumber++, System.currentTimeMillis(),
System.setProperty(Context.URL_PKG_PREFIXES, oldUrlValue);
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, oldIcValue);
- } catch (Throwable t) {
-
+ } catch (Exception e) {
// FIXME
- t.printStackTrace();
-
+ e.printStackTrace();
}
state = STOPPED;
if (factoryClass != null) {
try {
factory = (ObjectFactory) factoryClass.newInstance();
- } catch (Throwable t) {
- if (t instanceof NamingException)
- throw (NamingException) t;
+ } catch (Exception e) {
+ if (e instanceof NamingException)
+ throw (NamingException) e;
NamingException ex = new NamingException
("Could not create resource factory instance");
- ex.initCause(t);
+ ex.initCause(e);
throw ex;
}
}
factory = (ObjectFactory)
Class.forName(javaxSqlDataSourceFactoryClassName)
.newInstance();
- } catch (Throwable t) {
+ } catch (Exception e) {
NamingException ex = new NamingException
("Could not create resource factory instance");
- ex.initCause(t);
+ ex.initCause(e);
throw ex;
}
} else if (ref.getClassName().equals("javax.mail.Session")) {
service = factory.createService( new URL(wsdlRefAddr),
serviceQname );
}
- } catch (Throwable t) {
+ } catch (Exception e) {
NamingException ex = new NamingException
("Could not create service");
- ex.initCause(t);
+ ex.initCause(e);
throw ex;
}
} else {
serviceInterfaceClass,
new Properties() );
}
- } catch (Throwable t) {
+ } catch (Exception e) {
NamingException ex = new NamingException
("Could not create service");
- ex.initCause(t);
+ ex.initCause(e);
throw ex;
}
}
m.invoke(service, new Object[] {port.getName(), endpoint });
portComponentRef.put(endpoint, new QName(port.getName()));
}
- } catch (Throwable t) {
+ } catch (Exception e) {
NamingException ex = new NamingException
("Error while reading Wsdl File");
- ex.initCause(t);
+ ex.initCause(e);
throw ex;
}
}