java.lang.InstantiationException: oracle.jdbc.xa.OracleXADataSource

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • java.lang.InstantiationException
    via by 807541,
  • Tomcat: cannot load servlet name
    via by joshK,
  • Creating and using a BaseJSP servlet
    via by Rocky Angelini,
  • Reflection instantiation exception
    via by 843798,
    • java.lang.InstantiationException: oracle.jdbc.xa.OracleXADataSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.sun.enterprise.repository.JdbcXAResource.createDataSource(JdbcXAResource.java:66) at com.sun.enterprise.resource.ResourceInstaller.installJdbcXADataSources(ResourceInstaller.java:458) at com.sun.enterprise.resource.ResourceInstaller.installJdbcDataSources(ResourceInstaller.java:349) at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:264) at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)

    Users with the same issue

    Unknown User
    Unknown User178 times, last one,
    Andreas Häber
    Andreas Häber2 times, last one,
    filpgame
    filpgame8 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    38 more bugmates