[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-19 Thread nakker
I have the same problem that is explained in the origional post. Anyone figure 
out what the fix was?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878477#3878477

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878477


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-17 Thread vasu_virinchi
Hi , 
  The following is the log messag which i  got . Can anyone help me
 on this issue?

 I am giving my Folder structure here.

My ear file contans 

 1)cdviewer.war
2)cdviewer.har
3)jboss-app.xml
4)application.xml

My ear  file doesn't have any ejbs.

The following is the code i am using to get sessionfactory.

InitialContext ctx= new InitialContext();
SessionFactory 
sessionFactory=(SessionFactory)ctx.lookup("java:/hibernate/SessionFactory");
System.out.println("sessionFactory 
:===>"+sessionFactory);

Anyone please help me . What could  be the problem? I guess  SessionFactory is 
not binding with jndi. But while deploying which  gave
the following message .

INFO  [SessionFactoryImpl] Checking 0 named queries
INFO  [Hibernate] SessionFactory successfully built and bound into JNDI 
[java:/hibernate/SessionFactory]



Vasu.



 21:40:33,703 INFO  [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 
9.2.0.5.0
21:40:33,781 INFO  [Dialect] Using dialect: org.hibernate.dialect.Oracle9Dialect
21:40:33,968 INFO  [SettingsFactory] JDBC batch size: 15
21:40:33,968 INFO  [SettingsFactory] JDBC batch updates for versioned data: 
disabled
21:40:33,984 INFO  [SettingsFactory] Scrollable result sets: enabled
21:40:33,984 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
21:40:33,984 INFO  [SettingsFactory] Aggressive release : enabled
21:40:33,984 INFO  [SettingsFactory] Default batch fetch size: 1
21:40:33,984 INFO  [SettingsFactory] Generate SQL with comments: disabled
21:40:33,984 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
21:40:34,000 INFO  [SettingsFactory] Query translator: 
org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:40:34,015 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:40:34,015 INFO  [SettingsFactory] Query language substitutions: {}
21:40:34,015 INFO  [TransactionFactoryFactory] Transaction strategy: 
org.hibernate.transaction.JTATransactionFactory
21:40:34,046 INFO  [NamingHelper] JNDI InitialContext properties:{}
21:40:34,062 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: org.hibernate.transaction.JBossTransa
21:40:34,078 INFO  [TransactionManagerLookupFactory] instantiated 
TransactionManagerLookup
21:40:34,078 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: org.hibernate.transaction.JBossTransa
21:40:34,093 INFO  [TransactionManagerLookupFactory] instantiated 
TransactionManagerLookup
21:40:34,093 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): 
enabled
21:40:34,093 INFO  [SettingsFactory] Automatic session close at end of 
transaction: enabled
21:40:34,093 INFO  [SettingsFactory] Second-level cache: enabled
21:40:34,093 INFO  [SettingsFactory] Query cache: disabled
21:40:34,093 INFO  [SettingsFactory] Cache provider: 
org.hibernate.cache.HashtableCacheProvider
21:40:34,109 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
21:40:34,140 INFO  [SettingsFactory] Structured second-level cache entries: 
enabled
21:40:34,156 INFO  [SettingsFactory] Echoing all SQL to stdout
21:40:34,156 INFO  [SettingsFactory] Statistics: disabled
21:40:34,156 INFO  [SettingsFactory] Deleted entity synthetic identifier 
rollback: disabled
21:40:34,171 INFO  [SettingsFactory] Default entity-mode: pojo
21:40:34,734 INFO  [SessionFactoryImpl] building session factory
21:40:35,812 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, 
no JNDI name configured
21:40:35,859 INFO  [NamingHelper] JNDI InitialContext properties:{}
21:40:35,859 INFO  [SessionFactoryImpl] Checking 0 named queries
21:40:35,859 INFO  [Hibernate] SessionFactory successfully built and bound into 
JNDI [java:/hibernate/SessionFactory]
21:40:35,906 INFO  [TomcatDeployer] deploy, ctxPath=/cdviewer, 
warUrl=file:/D:/jboss-4.0.2/server/default/tmp/deploy/tmp4990cdview
21:40:38,359 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
21:40:38,359 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true
21:40:39,687 INFO  [PropertyMessageResources] Initializing, 
config='MessageResources', returnNull=true
21:40:39,828 INFO  [ValidatorPlugIn] Loading validation rules file from 
'/WEB-INF/validator-rules.xml'
21:40:40,359 INFO  [ValidatorPlugIn] Loading validation rules file from 
'/WEB-INF/validation.xml'
21:40:40,562 INFO  [EARDeployer] Started J2EE application: 
file:/D:/jboss-4.0.2/server/default/deploy/cdviewer.ear
21:40:40,875 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
21:40:41,062 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
21:40:41,234 INFO  [JkMain] Jk running ID=0 time=0/203  config=null
21:40:41,250 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: 
CVSTag=JBoss_4_0_2 date=200505022023)] Started in 2m:2s:672ms
21:41:43,609 INFO  [PropertyMessageRes

[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-17 Thread kirillp
Hello,

Did you get it working guys?
I have the same problem

Thanks
Kirill.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878044#3878044

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878044


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-17 Thread geoberle
i think my problem fits right into this topic.
is was migrating my webapplication from jboss 4.0.1 to 4.0.2 and from hibernate 
2.x to 3.0.3 when i came up with a strange problem. during the deployment of a 
hibernate archive i got those logmessages:


  | 15:43:19,286 DEBUG [SessionFactoryObjectFactory] registered: 
0f4de0b003eab2a80103eae4e5f60003 (unnamed)
  | 15:43:19,286 INFO  [SessionFactoryObjectFactory] Not binding factory to 
JNDI, no JNDI name configured
  | 15:43:19,286 DEBUG [SessionFactoryImpl] instantiated session factory
  | 15:43:19,286 DEBUG [SessionFactoryImpl] obtaining JTA TransactionManager
  | 15:43:19,287 INFO  [NamingHelper] JNDI InitialContext properties:{}
  | 15:43:19,287 INFO  [SessionFactoryImpl] Checking 0 named queries
  | 15:43:19,301 DEBUG [SessionFactoryImpl] Returning a Reference to the 
SessionFactory
  | 

interesting was the first line ending with (unnamed) instead of the JNDI 
bindname configured in the hibernate-service.xml


  | 
  | 
  | java:/lvonline
  | java:/hibernate/SessionFactory
  | org.hibernate.dialect.OracleDialect
  | org.hibernate.cache.HashtableCacheProvider
  | 
  | 
  | 

exactly the same har had worked fine with jboss 4.0.1

as a consecutive fault i get null if i perfom a lookup for the SessionFactory


  | InitialContext ctx = new InitialContext();
  | SessionFactory sf = 
((SessionFactory)ctx.lookup("java:/hibernate/SessionFactory"));
  | 

perhaps somebody can help me out here
best regards
gerd oberlechner

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878024#3878024

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878024


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-17 Thread vasu_virinchi
Hi,
 I am getting the simiklar kind of error. Can anybody help me in this?

java.lang.NullPointerException
at 
org.jboss.hibernate.session.HibernateContext.getSession(HibernateContext.java:79)
at login.ConnectionFactory.getSession(ConnectionFactory.java:45)
at login.ItemService.addUser(ItemService.java:77)
at login.LoginAction.execute(LoginAction.java:37)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

The above error  i am getting .  I tried the same suing Initialcontext also
Which is also giving the same error. 

And also I found this log message before above error
16:58:49,187 WARN  [SessionFactoryObjectFactory] Not found: 
4028810903ea680b0103ea680fb0


But when deploying which is giving the  following success message 

16:56:58,000 INFO  [Hibernate] SessionFactory successfully built and bound into 
JNDI [java:/hibernate/SessionFactory]

It seemz  JNDI name is not lookup to the SessionFactory .

Can anybody help me  in this . how to processed.

Vasu...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877973#3877973

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877973


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-11 Thread singular_droid
Sorry guys, it's my fault. Everything works fine)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877426#3877426

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877426


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: null after lookup in jboss4.0.2

2005-05-11 Thread singular_droid
In addition I want to say that I have downloaded the jboss4guide and build it's 
CaveatEmptor.har - it didn't deploy into default conf of jboss 4.0.2:

  | 11:00:11,843 INFO  [Environment] Hibernate 3.0.2
  | 11:00:11,875 INFO  [Environment] hibernate.properties not found
  | 11:00:11,875 INFO  [Environment] using CGLIB reflection optimizer
  | 11:00:11,875 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
  | 11:00:12,187 INFO  [Hibernate] Using JDBC batch size : null
  | 11:00:12,218 ERROR [Hibernate] Starting failed jboss.har:service=Hibernate
  | java.lang.NullPointerException
  | at 
org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:595)
  | at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
  | at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:418)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
  | at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy8.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
  | 11:00:12,218 WARN  [ServiceController] Problem starting service 
jboss.har:service=Hibernate
  | java.lang.NullPointerException
  | at 
org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:595)
  | at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(Serv