Back Forum Reply New

How to configure postgres driver on a osgi enviornment?

.germantech.repo.JPADao.findAllPais(JPADao.java:16)
at br.com.germantech.repo.JPADao$$FastClassByCGLIB$$dcf8016c.invoke(lt;generatedgt;)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org..aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617)
at br.com.germantech.repo.JPADao$$EnhancerByCGLIB$$9ccc57c9.findAllPais(lt;generatedgt;)
at br.com.germantech.commands.AbrirEditorTeste.execute(AbrirEditorTeste.java:21)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at br.com.germantech.application.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
and yes, i DO HAVE postgres driver added as a dependecie from my bundle

here's all the stack trace:
1566055
as you can see here:
Code:
[EL Config]: 2011-02-15 10:32:32.421--ServerSession(2572110)--Connection(1349553)--Thread(Thread[main,6,main])--connecting(DatabaseLogin( platform=gtostgreSQLPlatform user name=gt; quot;postgresquot; connector=gt;JNDIConnector datasource name=gt;null
))
[EL Severe]: 2011-02-15 10:32:32.421--ServerSession(2572110)--Thread(Thread[main,6,main])--Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:postgresql--192.168.0.10:5432/ti_fiscal
spring tries to instantiate a datasource, which i don't use, i never used at all

my config files:
appContext.xml
1566048

persistence.xml

Code:
lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;
lt;persistence xmlns=quot;xml/ns/persistencequot;
xmlns:xsi=quot;2001/XMLSchema-instancequot;
xsi:schemaLocation=quot;
xml/ns/persistence
xml/ns/persistence/persistence_2_0.xsdquot; version=quot;2.0quot;gt;
lt;persistence-unit name=quot;Fiscalquot; transaction-type=quot;RESOURCE_LOCALquot;gt;

lt;providergt;org.eclipse.persistence.jpa.PersistenceProviderlt;/providergt;

lt;classgt;br.com.germantech.modelos.GrupoAcessolt;/classgt;
lt;classgt;br.com.germantech.modelos.GrupoUsuariolt;/classgt;
lt;classgt;br.com.germantech.modelos.Usuariolt;/classgt;
lt;classgt;br.com.germantech.modelos.Estadolt;/classgt;
lt;classgt;br.com.germantech.modelos.GrupoTelefonelt;/classgt;
lt;classgt;br.com.germantech.modelos.Municipiolt;/classgt;
lt;classgt;br.com.germantech.modelos.Paislt;/classgt;
lt;classgt;br.com.germantech.modelos.Telefonelt;/classgt;
lt;classgt;br.com.germantech.modelos.TipoLogradourolt;/classgt;
lt;classgt;br.com.germantech.modelos.ClienteFornecedorlt;/classgt;
lt;classgt;br.com.germantech.modelos.Contabilistalt;/classgt;
lt;classgt;br.com.germantech.modelos.Departamentolt;/classgt;
lt;classgt;br.com.germantech.modelos.Empresalt;/classgt;
lt;classgt;br.com.germantech.modelos.EmpresasEnderecolt;/classgt;
lt;classgt;br.com.germantech.modelos.EmpresasResponsavellt;/classgt;
lt;classgt;br.com.germantech.modelos.EmpresasSociolt;/classgt;
lt;classgt;br.com.germantech.modelos.Escritoriolt;/classgt;
lt;classgt;br.com.germantech.modelos.GrupoResponsavellt;/classgt;
lt;classgt;br.com.germantech.modelos.InscricaoSubstituicaolt;/classgt;
lt;classgt;br.com.germantech.modelos.Nacionalidadelt;/classgt;
lt;classgt;br.com.germantech.modelos.NaturezaJuridicalt;/classgt;
lt;classgt;br.com.germantech.modelos.Responsavellt;/classgt;
lt;classgt;br.com.germantech.modelos.Sindicatolt;/classgt;
lt;classgt;br.com.germantech.modelos.SituacaoEspeciallt;/classgt;
lt;classgt;br.com.germantech.modelos.TipoSociolt;/classgt;

lt;exclude-unlisted-classesgt;falselt;/exclude-unlisted-classesgt;

lt;propertiesgt;
lt;property name=quot;eclipselink.target-databasequot; value=quotostgreSQLquot; /gt;
lt;property name=quot;javax.persistence.jdbc.driverquot; value=quot;org.postgresql.Driverquot; /gt;
lt;property name=quot;javax.persistence.jdbc.uclquot; value=quot;jdbc:postgresql--192.168.0.10:5432/ti_fiscalquot; /gt;
lt;property name=quot;javax.persistence.jdbc.userquot; value=quot;postgresquot; /gt;
lt;property name=quot;javax.persistence.jdbc.passwordquot; value=quot;adminquot; /gt;
lt;/propertiesgt;
lt;/persistence-unitgt;
lt;/persistencegt;
what am i missing?
thanks in advice
¥
Back Forum Reply New