[JBoss-user] [Persistence & CMP/JBoss] - Could not instantiate CacheProvider: (Hibernate2 + JBoss4 us

2004-11-01 Thread mlapolla
I keep running into the no suitable driver error message:

  | 10:52:06,270 INFO  [DriverManagerConnectionProvider] using driver: 
com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: 
jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=hibernate
  | 10:52:06,270 INFO  [DriverManagerConnectionProvider] connection properties: 
{user=sa, password=4blueskies}
  | 10:52:06,598 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup 
configured (in JTA environment, use of process level read-write cache is not 
recommended)
  | 10:52:06,645 WARN  [SettingsFactory] Could not obtain connection metadata
  | java.sql.SQLException: No suitable driver
  | at java.sql.DriverManager.getConnection(DriverManager.java:532)
  | at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | at 
net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
  | at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
  | at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
  | at 
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
  | at epm1.SessionManager.(SessionManager.java:112)
  | at epm1.SessionManager.getInstance(SessionManager.java:177)
  | at 
epm1.common.processor.ApplicationEnvironment.initSessionManager(ApplicationEnvironment.java:405)
  | at 
epm1.common.processor.ApplicationEnvironment.init(ApplicationEnvironment.java:162)
  | at 
epm1.common.processor.ApplicationEnvironment.getInstance(ApplicationEnvironment.java:113)
  | at epm1.struts.Epm1ActionServlet.initAppEnv(Epm1ActionServlet.java:50)
  | at epm1.struts.Epm1ActionServlet.init(Epm1ActionServlet.java:65)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
  | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
  | at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
  | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
  | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  | 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:324)
  | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
  | 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:324)
  | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
  | at org.jboss.web.WebModule.startModule(WebModule.java:62)
  | at org.jboss.web.WebModule.startService(WebModule.java:40)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | 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:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
  | at $Proxy0.start(Unknown Sou

[JBoss-user] [Persistence & CMP/JBoss] - Hibernate stand-alone without JBoss this time and SqlServer

2004-10-30 Thread mlapolla
Well, I got Hibernate working in the stand-alone example, without JBoss or IntelliJ, 
but when I insert, or even when the other examples insert into the DB, I get two rows. 

Can anyone help me here. I haven't yet retried my example with JBoss but I think it'll 
work. However, I'd like to solve this two rows issue first.

Thanks.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Hibernate2 + IntelliJ + JBoss ('natch) + hibernate plugi

2004-10-28 Thread mlapolla
I didn't mention this but I am using SqlServer. 

With the IntelliJ plugin I get an error that says it cannot get the DB Catalog. I 
think these are all related. Thanks.

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

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


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Hibernate2 + JBoss : a problem with persisters

2004-10-28 Thread mlapolla
I didn't mention this but I am using SqlServer. 

With the IntelliJ plugin I get an error that says it cannot get the DB Catalog. I 
think these are all related. Thanks.

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

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


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Hibernate2 + JBoss : a problem with persisters

2004-10-28 Thread mlapolla
I tried to modify eg to persist the Cat class. When I call save on my session I get 
this error:


  |  [java] net.sf.hibernate.MappingException: No persister for: org.hibernate.a
  | uction.Cat
  |  [java] at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(Session
  | FactoryImpl.java:347)
  |  [java] at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionIm
  | pl.java:2690)
  |  [java] at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.ja
  | va:2697)
  |  [java] at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier
  | (SessionImpl.java:763)
  |  [java] at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:738)
  |  [java] at org.hibernate.auction.Main.viewAllAuctionsFast(Main.java:50)
  |  [java] at org.hibernate.auction.Main.main(Main.java:384)
  |  [java] Exception in thread "main"
  | 

My Cat.hbm.xml looks like this:


  | 
  | http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

and my hibernate.cfg.xml looks like this:

  | http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd";>
  | 
  | 
  | true
  | 
  | 
  | 
  | 
  | 
  | 

Thank you.

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

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


---
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins003001msi/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Hibernate2 + IntelliJ + JBoss ('natch) + hibernate plugin fo

2004-10-28 Thread mlapolla
I am getting this exception. I load up the hibernate.cfg.xml file using File, because 
I cannot seem to get hibernate to find it when debugging in IntelliJ, and it does the 
mappings nicely but it doesn't seem to be able to find a driver though I have 
configured the plugin so that it uses the driver and I can do things like export 
schema but really not much else with the plugin.


  | 15:12:49,366 WARN  [SettingsFactory] Could not obtain connection metadata
  | java.sql.SQLException: No suitable driver
  | at java.sql.DriverManager.getConnection(DriverManager.java:532)
  | at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | at 
net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:101)
  | at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:73)
  | at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
  | at 
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
  | at Cat.HibernateUtil.(HibernateUtil.java:37)
  | at epm1.SessionManager.(SessionManager.java:96)
  | at epm1.SessionManager.getInstance(SessionManager.java:144)
  | at 
epm1.common.processor.ApplicationEnvironment.initSessionManager(ApplicationEnvironment.java:405)
  | at 
epm1.common.processor.ApplicationEnvironment.init(ApplicationEnvironment.java:162)
  | at 
epm1.common.processor.ApplicationEnvironment.getInstance(ApplicationEnvironment.java:113)
  | at epm1.struts.Epm1ActionServlet.initAppEnv(Epm1ActionServlet.java:50)
  | at epm1.struts.Epm1ActionServlet.init(Epm1ActionServlet.java:65)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
  | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
  | at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
  | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
  | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  | 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:324)
  | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
  | 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:324)
  | at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
  | at org.jboss.web.WebModule.startModule(WebModule.java:62)
  | at org.jboss.web.WebModule.startService(WebModule.java:40)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | 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:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:416)
  | at sun.reflect.GeneratedMeth

[JBoss-user] [EJB/JBoss] - Entity Beans and EJBQL

2004-10-20 Thread mlapolla
I was wondering if EJBQL supports orderby or groupby now-a-days. I have not looked at 
the newest spec. Could someone point me in the right directions?

Has anyone seen a good comparison of Entity Beans vs. JDO vs. Hibernate?

Thanks,

M.


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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: multiple instances of jboss in the same machine

2004-10-18 Thread mlapolla
Ah, never mind. That was confusing, I restarted and all problems went away. Thanks.

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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: multiple instances of jboss in the same machine

2004-10-18 Thread mlapolla
Yes, thanks, that did the trick. 

Now, when I started up, it complained about not having a deploy directory. So, I 
copied over the directory, with everything in it, and got this error.


  | 14:13:31,297 INFO  [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=5
  | 0, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo
  | [EMAIL PROTECTED]
  | 14:13:31,656 ERROR [AbstractDeploymentScanner$ScannerThread] Scanning failed; co
  | ntinuing
  | java.io.FileNotFoundException: C:\Java_Env\jboss-4.0.0\server\JBoss0\deploy
  | at org.jboss.net.protocol.file.FileURLLister.listMembers(FileURLLister.j
  | ava:38)
  | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
  | canner.java:379)
  | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
  | doScan(AbstractDeploymentScanner.java:204)
  | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
  | bstractDeploymentScanner.java:277)
  | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:271)
  | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.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:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
  | ler.java:891)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:416)
  | at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.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:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
  | or.java:119)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
  | BeanOperationInterceptor.java:131)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy5.deploy(Unknown Source)
  | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
  | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
  | at org.jboss.Main.boot(Main.java:151)
  | at org.jboss.Main$1.run(Main.java:405)
  | at java.lang.Thread.run(Thread.java:534)
  | 14:13:31,812 ERROR [AbstractDeploymentScanner$ScannerThread] Scanning failed; co
  | ntinuing
  | java.io.FileNotFoundException: C:\Java_Env\jboss-4.0

[JBoss-user] [Installation & Configuration] - Re: multiple instances of jboss in the same machine

2004-10-17 Thread mlapolla
I don't think I am doing this correctly. I am running Jboss-4.0.0. I cannot get this 
to work for one server. I do the following steps:

1. I create JBoss0 and JBoss1 under server
2. I then move, from the default server, lib, conf, and data.
3. I then go into the jboss-service.xml file in JBoss0 and I uncomment the 
ServiceBindingManager def:
   
  |
  |  ports-01
  |  file:/c:/java_env/jboss-4.0.0/docs/examples/binding-manager/sample-bindings.xml
  |  
  |org.jboss.services.binding.XMLServicesStoreFactory
  |  
  |
  | 
and use the ServerName of ports-01 from the sample-bindings.xml. Just in case I used 
absolute pathnames.
4. I then go into the JBoss0 and run the following:

  | c:/java_env/jboss-4.0.0/bin/run -c JBoss0
  | 
and I get

  | 14:40:48,522 INFO  [Server] Core system initialized
  | 14:40:50,913 ERROR [MainDeployer] could not create deployment: file:/C:/Java_Env
  | /jboss-4.0.0/server/JBoss0/conf/jboss-service.xml
  | org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.s
  | ervices.binding.ServiceBindingManager; - nested throwable: (java.lang.ClassNotFo
  | undException: No ClassLoaders found for: org.jboss.services.binding.ServiceBindi
  | ngManager)
  | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
  | :139)
  | at org.jboss.system.ServiceController.install(ServiceController.java:200
  | )
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.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:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.install(Unknown Source)
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
  | or.java:119)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
  | BeanOperationInterceptor.java:131)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:242)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy5.deploy(Unknown Source)
  | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
  | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
  | at org.jboss.Main.boot(Main.java:151)
  | at org.jboss.Main$1.run(Main.java:405)
  | at java.lang.Thread.run(Thread.java:534)
  | Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jbos
  | s.services.binding.ServiceBindingManager
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
  | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
  | assLoader.java:463)
  | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
  | oader.java:374)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
  | 1183)
  | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
  | 269)
  | at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:

[JBoss-user] [EJB/JBoss] - Re: JBoss4 ContextClassLoader

2004-10-15 Thread mlapolla
Pardon me, I'm using JBoss 4.0 with IntelliJ 4.5 and I am calling the getResource from 
my SessionBean. I am deploying in an .ear wtih a ejb module and a web module.

Sorry about the lack of context.

Thanks.

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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss4 ContextClassLoader

2004-10-15 Thread mlapolla
I have some observations and I'd like to know what's going on here. If I call the 
following:

  | Thread.currentThread().getContextClassLoader().getResource(".");
  | 
I get this path:

  | 
"file:/C:/Java_Env/jboss-4.0.0/server/default/tmp/deploy/tmp33748app.ear-contents/web-exp.war/"
  | 
If I call an actual resource name:

  | 
Thread.currentThread().getContextClassLoader().getResource(ApplicationResources.mDATABASE_CONNECTION_POOL_PROPERTIES_RESOURCE);
  | 
I get the path to my ejb jar.

  | 
"file:/C:/Java_Env/jboss-4.0.0/server/default/tmp/deploy/tmp33748app.ear-contents/ejb.jar!/resources/DatabaseConnectionPool.properties"
  | 
Thanks.

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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss4 ContextClassLoader

2004-10-14 Thread mlapolla
I would like to know the answer to this. I ported some Java ClassLoader code from a 
web application into my ejb module and though I could look up the resource in my jar, 
I could not manipulate the path or load the resource.

I am interested in this answer. What I am going to try next is to 

Thread.currentThread().getContextClassLoader().getResource("resources") 

After packaging my resources directory into my ejb.jar.

Any help on this will be greatly appreciated.

Thank you.




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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Session Bean Client hangs at Context Lookup

2004-10-12 Thread mlapolla
If I used java:comp/env it worked just fine when the bank-ejb.jar was part of the .ear.

I am having trouble using the URL to look up other ejbs that are not part of a war or 
ear. (See my last posting.) Those ejbs that are, in the same JVM but not in the same 
project.

The error I keep on getting is:


  | javax.naming.NamingExc
  | eption: Could not dereference object [Root exception is javax.naming.Communicati
  | onException [Root exception is java.lang.ClassNotFoundException: com.sun.ebank.e
  | jb.account.SimpleHome (no security manager: RMI class loader disabled)]]
  | 

Thanks.

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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Session Bean Client hangs at Context Lookup

2004-10-11 Thread mlapolla
I have a question about this:

I modified the Duke's Bank to include a very simple object called SimpleEJB, with JNDI 
name MySimpleEJB and with a ref that was
ejb/Simple.

When I got the default initial context, it worked just great using

initial.lookup("java:comp/env/ejb/Simple");

However, when I tried this:

   
  | Hashtable env = new Hashtable();
  | env.putContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  | env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
  | env.put"java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
  | InitialContext initial2 = new InitialContext(env);
  | Object objref2 = initial2.lookup("ejb/Simple");
  | 

It didn't work. It said it couldn't deference it and that was part of a 
NameNotFoundException because ejb was not bound.

However, if I change that last line to read:


  | Object objref2 = initial2.lookup("MySimpleEJB");
  | 

It worked just great. Do I always have to use the JNDI name when not using the 
java:comp/env? That is, accessing a remote bean. I thought that JBoss would do that 
making using the refs.

What I am trying to do is modify another war file I have to use an session bean but I 
am having trouble getting the bean even by the JNDI name. The war file I am using does 
include the bank-ejb.jar, I put it in there to try it out, and there is no way I can 
look up that bean.

Some hints would help. Do I need the clientall-jboss.jar for the JNDI look up? I've 
been reading up on the Jboss JNDI but so far the book I am using, SAMS JBoss, says 
that I am settng up everything correctly.

Thanks.


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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB client jar files

2004-10-09 Thread mlapolla
JBoss 4.0 embedded Tomcat and Tomcat 4 and 5.

So, If I understand this correctly, I need to generate the client.jar and use the 
jbossall-client.jar with my client and I'm OK. And my client should be running with 
JBoss. (I used to run Tomcat with a connector. Now, I assume I can just use JBoss with 
embedded Tomcat on my client tier. ?)

So, I generate myclient.jar with the JBoss-IDE. How do I do that with the IntelliJ 
IDE? I'm assuming I'd need the JBoss plugin. How is that coming?

Could someone point me to good documentation for the JBoss-IDE? I've seen some stuff 
but specifically generating client jars would be nice. 

So, am I correct in thinking that if I use IntelliJ, I stilll need the JBoss-IDE, to 
generate the client interfaces? Is there a command line? Could someone point me to the 
appropriate WIKI or Forum answer?

Thanks.

M.


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

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


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user