javax.management.InstanceAlreadyExistsException: Catalina:type=DataSource,class=javax.sql.DataSource,name="fypDatasource"

Stack Overflow | Furqan Hasan | 2 months ago
  1. 0

    Error registering Catalina:type=DataSource,host=localhost,context=/Fyp-0.0.1-SNAPSHOT,class=javax.sql.DataSource,name="jdbc/FypDatasource"

    Stack Overflow | 2 months ago | Furqan Hasan
    javax.management.InstanceAlreadyExistsException: Catalina:type=DataSource,class=javax.sql.DataSource,name="fypDatasource"
  2. 0

    Re: How to get generated keys without requerying the database?

    openjpa-users | 6 years ago | robsinner
    java.lang.reflect.UndeclaredThrowableException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Spring instrumentation is loading but not working

    Stack Overflow | 2 years ago | Beto Neto
    java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.
  5. 0

    Spring 4 LTW not compatible with 64 bit JVM and Tomcat

    Stack Overflow | 3 years ago | Terry
    java.lang.IllegalStateException: Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation.

      at org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.addTransformer()
    2. Spring Context
      InstrumentationLoadTimeWeaver.addTransformer
      1. org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.addTransformer(InstrumentationLoadTimeWeaver.java:87)
      1 frame
    3. Spring ORM
      SpringPersistenceUnitInfo.addTransformer
      1. org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.addTransformer(SpringPersistenceUnitInfo.java:111)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. Spring ORM
      DefaultPersistenceUnitManager$Jpa2PersistenceUnitInfoDecorator.invoke
      1. org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager$Jpa2PersistenceUnitInfoDecorator.invoke(DefaultPersistenceUnitManager.java:617)
      1 frame
    6. com.sun.proxy
      $Proxy78.addTransformer
      1. com.sun.proxy.$Proxy78.addTransformer(Unknown Source)
      1 frame
    7. EclipseLink (non-OSGi)
      PersistenceProvider.createContainerEntityManagerFactory
      1. org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:348)
      1 frame
    8. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)
      2. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
      2 frames
    9. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
      2 frames
    10. Java RT
      JmxMBeanServer.registerMBean
      1. com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
      2. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
      4. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
      5. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
      6. com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
      6 frames
    11. Embedded GlassFish Web
      Registry.registerComponent
      1. org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:634)
      1 frame
    12. Glassfish Core
      NamingContextListener.processGlobalResourcesChange
      1. org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1090)
      2. org.apache.catalina.core.NamingContextListener.processGlobalResourcesChange(NamingContextListener.java:574)
      2 frames