javax.naming.NameNotFoundException

El nombre GestionDS no este asociado a este contexto

Samebug tips3

Add localDataSource="true" to the realm when using local database.

Make sure you use the same name for your database everywhere in context.xml.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web340

  • El nombre GestionDS no este asociado a este contexto
  • El nombre InvoicingDS no este asociado a este contexto
  • El nombre jdbc no este asociado a este contexto
  • Stack trace

    • javax.naming.NameNotFoundException: El nombre GestionDS no este asociado a este contexto at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) at javax.naming.InitialContext.lookup(Unknown Source) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:179) at org.openxava.jpa.XPersistence.createManager(XPersistence.java:107) at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2539) at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2457) at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2409) at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:203) at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:46) at org.openxava.component.ComponentParser.parse(ComponentParser.java:35) at org.openxava.component.MetaComponent.get(MetaComponent.java:60) at org.openxava.tab.Tab.getMetaTab(Tab.java:238) at org.openxava.tab.Tab.getPreferences(Tab.java:995) at org.openxava.tab.Tab.loadUserPreferences(Tab.java:1199) at org.openxava.tab.Tab.setModelName(Tab.java:928)

    Write tip

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

    Users with the same issue

    6 times, 2 months ago
    Once, 6 months ago
    2 times, 10 months ago
    13 times, 10 months ago
    Unknown user
    Once, 11 months ago
    29 more bugmates