È possivel instalar geplanes 2.0.1 sem precisar instalar o 1.0.0, digo isso pois instalei aqui usando Ubunto 10.04 postgres 8.4 e jboss-4.2.3.
editei o arquivo login-config.xml mas quando inicio o jboss ocorre vários erros Segue o inicio do erro:
11:30:01,936 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
11:30:02,574 WARN [XMLLoginConfigImpl] End loadConfig, failed to load config: file:/opt/as/geplanes/jboss-4.2.3.GA/server/default/conf/login-config.xml
org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, column 1.
Was expecting one of:
<EOF>
<IDENTIFIER> ...
at org.jboss.security.auth.login.SunConfigParser.generateParseException(SunConfigParser.java:395)
at org.jboss.security.auth.login.SunConfigParser.jj_consume_token(SunConfigParser.java:333)
at org.jboss.security.auth.login.SunConfigParser.config(SunConfigParser.java:98)
at org.jboss.security.auth.login.SunConfigParser.parse(SunConfigParser.java:57)
at org.jboss.security.auth.login.SunConfigParser.doParse(SunConfigParser.java:79)
at org.jboss.security.auth.login.XMLLoginConfigImpl.loadSunConfig(XMLLoginConfigImpl.java:310)
at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:294)
at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:268)
at org.jboss.security.auth.login.XMLLoginConfig.startService(XMLLoginConfig.java:176)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
Quando uso o aquivo original login-config.xml o jboss sobe mas ao logar na aplicação ocorre erre de conexão com banco, onde posso estar errado ao editar esse arquivo?
Att,
Rodrigo
Autor: rodrigo barreto
77 comentários
15:35:04,462 INFO [TomcatDeployer] deploy, ctxPath=/geplanes, warUrl=.../deploy/geplanes.war/
15:35:04,887 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
15:35:04,887 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
15:35:04,887 ERROR [STDERR] log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@1d74c03
] whereas object of type
15:35:04,887 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@691f36].
15:35:04,888 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
15:35:04,966 INFO [STDOUT] 15:35:04,966 INFO [ContextLoader] Root WebApplicationContext: initialization started Porem a aplicação sobe e na tela de login, coloco os usuário admin senha admin e ocoore erro de conexão no banco de dados, segue o erro: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.RuntimeException: Erro ao conseguir conexão com o banco de dados!
br.com.linkcom.sgm.util.JndiGeplanesFactory.getCurrentDataSource(JndiGeplanesFactory.java:33)
br.com.linkcom.sgm.util.JndiGeplanesFactory.access$0(JndiGeplanesFactory.java:28)
br.com.linkcom.sgm.util.JndiGeplanesFactory$1.getConnection(JndiGeplanesFactory.java:78)
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
org.hibernate.loader.Loader.doQuery(Loader.java:696)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
org.hibernate.loader.Loader.doList(Loader.java:2232)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
org.hibernate.loader.Loader.list(Loader.java:2124)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
br.com.linkcom.neo.persistence.QueryBuilder$3.doInHibernate(QueryBuilder.java:903)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:365)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:333)
br.com.linkcom.neo.persistence.QueryBuilder.unique(QueryBuilder.java:883)
br.com.linkcom.sgm.dao.GeplanesAuthorizationDAO.findUserByLogin(GeplanesAuthorizationDAO.java:75)
br.com.linkcom.neo.authorization.AuthenticationControlFilter.authenticateUser(AuthenticationControlFilter.java:163)
br.com.linkcom.neo.authorization.AuthenticationControlFilter.doFilter(AuthenticationControlFilter.java:93)
br.com.linkcom.neo.core.web.NeoFilter.doFilterInternal(NeoFilter.java:103)
br.com.linkcom.sgm.util.RequestFilter.doFilterInternal(RequestFilter.java:45)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause javax.naming.NameNotFoundException: 10.1.3.16_geplanes_PostgreSQLDS not bound
org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
org.jnp.server.NamingServer.getObject(NamingServer.java:543)
org.jnp.server.NamingServer.lookup(NamingServer.java:296)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
javax.naming.InitialContext.lookup(InitialContext.java:409)
org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
br.com.linkcom.sgm.util.JndiGeplanesFactory.getCurrentDataSource(JndiGeplanesFactory.java:30)
br.com.linkcom.sgm.util.JndiGeplanesFactory.access$0(JndiGeplanesFactory.java:28)
br.com.linkcom.sgm.util.JndiGeplanesFactory$1.getConnection(JndiGeplanesFactory.java:78)
org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
org.hibernate.loader.Loader.doQuery(Loader.java:696)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
org.hibernate.loader.Loader.doList(Loader.java:2232)
org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
org.hibernate.loader.Loader.list(Loader.java:2124)
org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
br.com.linkcom.neo.persistence.QueryBuilder$3.doInHibernate(QueryBuilder.java:903)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:365)
org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:333)
br.com.linkcom.neo.persistence.QueryBuilder.unique(QueryBuilder.java:883)
br.com.linkcom.sgm.dao.GeplanesAuthorizationDAO.findUserByLogin(GeplanesAuthorizationDAO.java:75)
br.com.linkcom.neo.authorization.AuthenticationControlFilter.authenticateUser(AuthenticationControlFilter.java:163)
br.com.linkcom.neo.authorization.AuthenticationControlFilter.doFilter(AuthenticationControlFilter.java:93)
br.com.linkcom.neo.core.web.NeoFilter.doFilterInternal(NeoFilter.java:103)
br.com.linkcom.sgm.util.RequestFilter.doFilterInternal(RequestFilter.java:45)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) O Que pode estar ocorrendo? Att,
Rodrigo Barreto