Re: Migration help from JBoss to Geronimo

2006-10-26 Thread Lasantha Ranaweera

Hi Ashish,

As Manu has correctly suggested, currently you have to work with JBoss 
to G 1.0 migration articles and upgrade tool. There is effort going on 
converting these articles in to the G 1.1. Since the confluence is not 
working correctly  yet we can't share those latest articles with the 
users. So until it comes back feel free to add your problems in to the 
Geronimo user list.


Thanks,
Lasantha Ranaweera
Manu George wrote:

Hi Ashish,
 There are some migration docs given in this page
http://cwiki.apache.org/GMOxDOC10/apache-geronimo-v10-users-guide.html.
They are for migration to geronimo-1.0 from JBOSS.
Documentation for geronimo -1.1 is given in the link below
http://cwiki.apache.org/GMOxDOC11/apache-geronimo-v11-users-guide.html.

There is also a tool written by David Jencks which automatically
migratates geronimo 1.0 plans to the geronimo 1.1 format.

Hope this helps

Regards
Manu

On 10/25/06, Ashish Kumar <[EMAIL PROTECTED]> wrote:




Hi ,



I am currently using the Jboss 4 for my enterprise application. Would 
you

please guide me about, what are the changes required for moving my
application from Jboss 4 to Geronimo and also provide me the link 
from where

I can get more information about the same.

I will be very thankful for the same.



Thanking you in advance.



Regards

Ashish Chauhan






Re: Error deploying EAR because of DataSource

2006-10-26 Thread Guillaume Bilodeau

Ok let's try this again, without altering any names :)  I'm using
Geronimo+Tomcat 1.1.1 on Java 5.

Error:

Deployment failed:
Unable to resolve resource reference 'jdbc/AuchanPromoDS' (Could not find
resource 'AuchanPromoDS'. Perhaps it has not yet been configured, or your
application does not have a dependency declared for that resource module?) 

"Installed J2EE connectors" screen:
console.dbpool/AuchanPromoDS/1.0/rar running  Stop
Restart   
Uninstall

web.xml:



http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
...

jdbc/AuchanPromoDS
javax.sql.DataSource
Container
Shareable

...


geronimo-web.xml:



http://geronimo.apache.org/xml/ns/web";>


promo-war



console.dbpool
AuchanPromoDS




/auchan-promo


jdbc/AuchanPromoDS
AuchanPromoDS



applicationContext.xml:



application.xml:


http://java.sun.com/dtd/application_1_3.dtd";>

  promo-ear
  Promo Action Management System EAR
  

  promo-web-2.0.0-SNAPSHOT.war
  /auchan-promo

  
  
promo-server-2.0.0-SNAPSHOT.jar
  


It seems to me that I followed what the usage screen suggests.  Is this a
problem with dealing with EARs?

Thanks,
GB


On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
> Yes actually that was a mistake in my post, I forgot to remove all
> references
> to my current client :)  All names are correct in my code, all of them
> being
> jdbc/PromoDS.
>
> Any other idea?

Can you look in the database pool screen in the console, and select
the usage link next to your database pool, and make sure that all the
names in the example there match the ones in your geronimo-web.xml
file?  It's hard to troubleshoot from the config files if you're
changing the important entries as you post them.  :)

Also, are you using Geronimo 1.0 or Geronimo 1.1?  The XML namespaces
in the geronimo-web.xml file aren't really correct for Geronimo 1.1,
though it may auto-convert them.  I'd try putting in the proper values
(which you can get from here http://geronimo.apache.org/schemas.html).

Thanks,
  Aaron

-- 
View this message in context: 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7024975
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



RE: JAX-RPC Web Service - help needed

2006-10-26 Thread Clough, Ray C PWR



I sent you the app a minute ago, but got a "recipient 
mailbox full" failure.
 
- Ray Clough
[EMAIL PROTECTED]


From: Lasantha Ranaweera 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 25, 2006 
11:06 PMTo: user@geronimo.apache.orgCc: Hernan Cunico; 
Sanjiva WeerawaranaSubject: Re: JAX-RPC Web Service - help 
needed
Hi Ray,Please read my in line 
comments.Cheers,Lasantha RanaweeraClough, Ray C PWR wrote: 
Lasantha,

I have done some more development with your sample webservice app.  I've
redone the build file to create the mapping file on the fly, and done
some minor repackaging.  I have also added comments to the web.xml,
geronimo-web.xml, webservices.xml, wscompile-config.xml files to show
how they relate to eachother.  The app deploys fine in G1.1.1.  I used
the jaxrpc files from jwsdp 2.0 to give all the dependencies for
building the service.  I have not yet modified the client, but I'm
hoping to do that this evening.

  This is great input Ray. I am really interested to see your 
modifications. 
If you're interested I'd like to send you the modified app.  Assuming
you're interested, how and in what form should I send it to you (zip of
the project, email, ...? )
  Please share those modifications via email until the 
confluence is up and running. Would you like to further develop these sample 
applications with us? 
I still haven't figured out the flaw in my own tutorial app which
prevents it from working with G1.1.1, and am baffled that it deploys in
other servers.  I'll work on that later, I guess.  Thanks for your
sample app.  Without that success I was about to conclude that G1.1.1
wouldn't work for me.
  Happy to help. :-) 

The jaxrpc web services are really a poor spec (extremely fragile), and
it would be really nice to have the jax-ws implementation.  Everyone I
know keeps saying "I love .NET web services, but I hate JAXRPC".  It is
easy to see why.  Even Sun's jwsdp does not deploy jaxrpc-compliant
services.  I've always been disappointed that Axis didn't produce
jaxrpc-compliant services.  More problematic, from my personal
standpoint, is the fact that the only tool I know which produces both
wsdl and the mapping file is wscompile, and wscompile doesn't do
DOCLITERAL_WRAPPED wsdls.  (Until jwsdp2.0 the wscompile which came with
jwsdp wouldn't even make the mapping file, and you had to use the
wscompile which came with the Sun Server).  If axis had supplemented
their 'java2wsdl' tool with a mapping file generator, we'd be well ahead
of the game.  Do you, or does anyone, know an open source or freeware
tool which will produce both files?
  Yes I agree with your comments regarding JAX-RPC based web 
services. I am also wondering why still Apache Axis doesn't support the 
generation jax-rpc related files. I think we have to add issue in to the Axis 
user list.According to the JSR-109 JEE 5 will support web service 
implementation both JAX-RPC and JAX-WS. I think JAX-WS will be more user 
friendly API than JAX-RPC. Hope Geronimo comes in to that stage soon a real open 
source application server. ;-) 

Thanks,
Ray Clough
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 23, 2006 5:19 PM
To: user@geronimo.apache.org
Subject: Re: JAX-RPC Web Service - help needed

Hi Ray,

Have a look at
http://cwiki.apache.org/GMOxDOC11/simple-web-services-sample-application
..html
... This is a sample WS application which has been written to the G
1.1.1.
But it only has exposing Servlet as a WS.

We are expecting feedbacks from users :).

Thanks,
Lasantha Ranaweera


  
  I have a simple WS which I was easily able to deploy in Geronimo 1.0.

  
  I am also able to deploy it on Sun App Server 8.2 and Oracle App 
Server with no problems.  However I cannot get it to deploy on
Geronimo 1.1.1.
  
  The stack trace (below) tells me nothing - maybe it tells someone who 
knows more about Geronimo something, but it is mysterious to me.  
There are no examples of JAX-RPC compliant web services anywhere in 
the Geronimo documentation that I have seen, and I don't recall ever 
seeing anyone having done it in the mailing list.  Do we know, in 
fact, that Geronimo 1.1.1 can deploy such a service?  What I mean by a

  
  JAX-RPC-compliant WS is one which contains the WSDL, and mapping.xml 
files, as well as the web.xml, geronimo-web.xml files.  On Geronimo 
1.0 I could deploy it in an EAR file with a database, but I've 
simplified it to remove that potential error source, so now I'm trying

  
  to deploy it as a WAR file.

I would greatly appreciate any help which you can offer.  I'll gladly 
supply the full app source or any files needed.  If I can get this to 
deploy, I'll also happily write up instructions on how to do it.

Thank you very much,

Ray Clough
[EMAIL PROTECTED]

Here is the Exception code from the deployment process:

Geronimo Application Server started

Retrieving document at 'WEB-INF/wsdl/ApothegmService.wsdl'.

12:38

Apache load balancing w/ Geronimo

2006-10-26 Thread RShows
I have setup Apache using mod_jk to load balance across two Geronimo 1.1 .
It seems to work except for sticky sessions.  I kept getting switched back
and forth between the two geronimo servers.

Here is my Apache config:
# Location of the worker file
JkWorkersFile "conf/workers.properties"
# Location of the log file
JkLogFile "logs/mod_jk.log"
# Log level : debug, info, error or emerg
JkLogLevel debug
# Assign specific URL to Tomcat workers
JkMount /* loadbalancer

Here is my worker.properties:
# List the workers name
worker.list=loadbalancer,status

# 
# First worker
# 
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
# Load balance factor
worker.worker1.lbfactor=1
# 
# Second worker
# 
worker.worker2.port=8019
worker.worker2.host=localhost
worker.worker2.type=ajp13
worker.worker2.lbfactor=1
# --
# Load Balancer worker
# --
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=worker1,worker2
worker.loadbalancer.sticky_session=1
worker.status.type=status

config.xml server 1:







http://geronimo.apache.org/xml/ns/attributes-1.1";>
  

  1099


  rmi://0.0.0.0:1099


  http://people.apache.org/~ammulder/plugin-repository-list-1.1.txt
  []

  
  
  

  0.0.0.0
  4242


  rmi
  0.0.0.0
  9998
  /jndi/rmi://0.0.0.0:1099/JMXConnector

  
  
  

  0.0.0.0
  4201

  
  

  var/cosnaming.db
  1050


  -ORBInitRef,
NameService=corbaloc::localhost:1050/NameService


  -ORBInitRef,
NameService=corbaloc::localhost:1050/NameService

  
  

  0.0.0.0
  1527

  
  

  0.0.0.0
  61616

  
  
  


  name=Geronimo
jvmRoute=worker1


  0.0.0.0
  8080
  8443
  1000
  50
  1000


  0.0.0.0
  8009
  8443


  0.0.0.0
  8443


  var/catalina

  
  
  

  http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1


  
  

  ?name=TomcatWebContainer

  
  
  
  

  localhost
  25

  
  

  var/shared/classes
  var/shared/lib

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


config.xml server 2:







http://geronimo.apache.org/xml/ns/attributes-1.1";>
  

  1199


  rmi://0.0.0.0:1199


  http://people.apache.org/~ammulder/plugin-repository-list-1.1.txt
  []

  
  
  

  0.0.0.0
  4243


  rmi
  0.0.0.0
  
  /jndi/rmi://0.0.0.0:1199/JMXConnector

  
  
  

  0.0.0.0
  4202

  
  

  var/cosnaming.db
  1050


  -ORBInitRef,
NameService=corbaloc::localhost:1050/NameService


  -ORBInitRef,
NameService=corbaloc::localhost:1050/NameService

  
  

  0.0.0.0
  1527

  
  

  0.0.0.0
  61617

  
  
  


  name=Geronimo
jvmRoute=worker2


  0.0.0.0
  8081
  8444
  1000
  50
  1000


  0.0.0.0
  8019
  8444


  0.0.0.0
  8444


  var/catalina

  
  
  

  http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.1


  
  

  ?name=TomcatWebContainer

  
  
  
  

  localhost
  25

  
  

  var/shared/classes
  var/shared/lib

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  


Thanks,

Ryan Shows
Configuration Manager
Electronic Payment Services
Symcor Inc.
416-673-3824
[EMAIL PROTECTED]


Re: Migration help from JBoss to Geronimo

2006-10-26 Thread Jeff Genender
Ashish,

Now *this* I like to hear ;-)

You may wish to look at
http://cwiki.apache.org/GMOxDOC10/migrating-to-apache-geronimo.html, but
its a little out dated.

This link will bring you up to date on Geronimo specifically:

http://cwiki.apache.org/GMOxDOC11/apache-geronimo-v11-users-guide.html

Jeff

Ashish Kumar wrote:
> Hi ,
> 
>  
> 
> I am currently using the Jboss 4 for my enterprise application. Would
> you please guide me about, what are the changes required for moving my
> application from Jboss 4 to Geronimo and also provide me the link from
> where I can get more information about the same.
> 
> I will be very thankful for the same.
> 
>  
> 
> Thanking you in advance.
> 
>  
> 
> Regards
> 
> Ashish Chauhan
> 


error while compiling wsdl for notification message

2006-10-26 Thread Cute Tarun
Hi,

while compiling the below attached wsdl i get this error.. if i remove
notification message and from binding also then it works perfectly..
please help me out.. why it is not generating stubs..
Is there anything which i am missing out.. 

Tarun


log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle).

log4j:WARN Please initialize the log4j system properly.

java.lang.NullPointerException

    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addRPCStyleInputMessageToMethodInfo(WSDL2Ws.java:430)

    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(WSDL2Ws.java:236)

    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(WSDL2Ws.java:213)

    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(WSDL2Ws.java:650)

    at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:1139)



Code generation failed. Please see errors above.



  name="WeatherSummary"
  targetNamespace=
    "http://www.roguewave.com/soapworx/examples/WeatherSummary.wsdl"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:tns=
    "http://www.roguewave.com/soapworx/examples/WeatherSummary.wsdl"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:wsx=
   "http://www.roguewave.com/soapworx/examples/WeatherSummary.xsd">

  
    
  

  
    
  

  
    
    
  
  
    

    
    
  
    
  

  
    
  transport="http://schemas.xmlsoap.org/soap/http"/>
    
  
  
    
   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
   namespace="http://www.roguewave.com/soapworx/examples"/>
    
  
  
    
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
  namespace="http://www.roguewave.com/soapworx/examples"/>
  

    
  
  
    
  encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
  namespace="http://www.roguewave.com/soapworx/examples"/>
  
    
  
 
  
    WeatherSummary
    
  
    location="http://localhost/weather/WeatherSummary"/>
    
  


__
_





	

	
		 
Find out what India is talking about on  - Yahoo! Answers India  
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

Re: Error deploying EAR because of DataSource

2006-10-26 Thread Aaron Mulder

On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:

Yes actually that was a mistake in my post, I forgot to remove all references
to my current client :)  All names are correct in my code, all of them being
jdbc/PromoDS.

Any other idea?


Can you look in the database pool screen in the console, and select
the usage link next to your database pool, and make sure that all the
names in the example there match the ones in your geronimo-web.xml
file?  It's hard to troubleshoot from the config files if you're
changing the important entries as you post them.  :)

Also, are you using Geronimo 1.0 or Geronimo 1.1?  The XML namespaces
in the geronimo-web.xml file aren't really correct for Geronimo 1.1,
though it may auto-convert them.  I'd try putting in the proper values
(which you can get from here http://geronimo.apache.org/schemas.html).

Thanks,
 Aaron


Vamsavardhana Reddy-2 wrote:
>
> One problem I can see straight away is that your lookup code is not using
> the res-ref-name from web.xml and geronimo-web.xml is not linking the
> res-ref-name in web.xml with the actual resource.  To overcome this,
> change
> "jdbc/AuchanPromoDS" in web.xml to "jdbc/PromoDS" .  Regarding the
> resource-link, if you have used "jdbc/PromoDS" as the pool name, change
> the
> resource-link to "jdbc/PromoDS".
>
> Vamsi
> On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>>
>>
>> Here's the relevant web.xml part:
>>
>> 
>>
>> http://java.sun.com/xml/ns/j2ee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>> version="2.4">
>> ...
>> 
>> jdbc/AuchanPromoDS
>> javax.sql.DataSource
>> Container
>> Shareable
>> 
>> ...
>> 
>>
>> The lookup code is done by the Spring framework through the following
>> tag:
>>
>> > jndi-name="java:comp/env/jdbc/PromoDS"
>> proxy-interface="javax.sql.DataSource"
>> lookup-on-startup="false" />
>>
>> But it doesn't even get to the lookup part :)
>>
>> Thanks!
>> GB
>>
>>
>>
>> Vamsavardhana Reddy-2 wrote:
>> >
>> > Please post your web.xml and also the lookup code.
>> >
>> > Vamsi
>> >
>> > On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi guys,
>> >>
>> >> This is a different problem than the one I posted back in July,
>> hopefully
>> >> this one will be easier to solve :)
>> >>
>> >> I'm back with my EAR, containing an EJB module (JAR), a web
>> application
>> >> (WAR) and their relevant dependencies in its root.  The EAR contains
>> the
>> >> following application.xml file:
>> >>
>> >> 
>> >> > >> "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
>> >> "http://java.sun.com/dtd/application_1_3.dtd";>
>> >> 
>> >>   promo-ear
>> >>   
>> >> 
>> >>   promo-web-2.0.0-SNAPSHOT.war
>> >>   /promo
>> >> 
>> >>   
>> >>   
>> >> promo-server-2.0.0-SNAPSHOT.jar
>> >>   
>> >> 
>> >>
>> >> The WAR contains a web.xml with a reference to a data source and the
>> >> following geronimo-web.xml file:
>> >>
>> >> 
>> >>
>> >> http://geronimo.apache.org/xml/ns/web";
>> >> xmlns:naming="http://geronimo.apache.org/xml/ns/naming";>
>> >> 
>> >> 
>> >> promo-war
>> >> 
>> >> 
>> >> 
>> >> console.dbpool
>> >> PromoDS
>> >> 
>> >> 
>> >> 
>> >>
>> >> /promo
>> >>
>> >> 
>> >> jdbc/PromoDS
>> >> PromoDS
>> >> 
>> >> 
>> >>
>> >> I have already configured my database pool with the same name, it's up
>> >> and
>> >> running and correctly listed in the J2EE connectors.
>> >>
>> >> When I try to deploy this EAR, I get the following error:
>> >>
>> >> Unable to resolve resource reference 'jdbc/PromoDS' (Could not find
>> >> resource
>> >> 'PromoDS'.  Perhaps it has not yet been configured, or your
>> application
>> >> does
>> >> not have a dependency declared for that resource module?)
>> >> org.apache.geronimo.common.DeploymentException: Unable to resolve
>> >> resource
>> >> reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps
>> it
>> >> has
>> >> not yet been configured, or your application does not have a
>> dependency
>> >> declared for that resource module?)
>> >>
>> >> Any idea what the problem here?
>> >>
>> >> Thanks a lot!
>> >> GB
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354
>> >> Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.h

Re: Geronimo 1.1.1 not respecting WAR MANIFEST.MF for GBean

2006-10-26 Thread Aaron Mulder

The problem seems to be that the GBean is defined at the EAR level but
the classes are provided at the WAR level.  These are two different
class loaders.  It should work, for example, if you put the GBean in
geronimo-web.xml in the WAR rather than geronimo-application.xml in
the EAR.

Thanks,
 Aaron

On 10/26/06, Joe O'Pecko <[EMAIL PROTECTED]> wrote:

Hi,

I have an existing GBean packaged in an external jar file within an
EAR file, running on a Geronimo 1.0 server that refuses to load in
Geronimo 1.1.1. The simplified structure of the EAR is as follows:

example.ear
| - geronimo-application.xml (gbean defined herein)
| - gbean.jar
| - web-app.war
| - META-INF
| - MANIFEST.MF (Class-Path: gbean.jar)

This deploys in a 1.0 container and starts the GBean. However, in
1.1.1, I receive a DeploymentException caused by a
ClassNotFoundException. It appears to me that Geronimo 1.1.1 does not
respect the WAR Manifest CLASSPATH, WRT GBeans, in the same fashion as
1.0. Is this a regression in 1.1.1, or was this a "feature" of 1.0
that has since been corrected?

Thanks for any information you can provide.

Joe



Geronimo 1.1.1 not respecting WAR MANIFEST.MF for GBean

2006-10-26 Thread Joe O'Pecko

Hi,

I have an existing GBean packaged in an external jar file within an
EAR file, running on a Geronimo 1.0 server that refuses to load in
Geronimo 1.1.1. The simplified structure of the EAR is as follows:

example.ear
   | - geronimo-application.xml (gbean defined herein)
   | - gbean.jar
   | - web-app.war
   | - META-INF
   | - MANIFEST.MF (Class-Path: gbean.jar)

This deploys in a 1.0 container and starts the GBean. However, in
1.1.1, I receive a DeploymentException caused by a
ClassNotFoundException. It appears to me that Geronimo 1.1.1 does not
respect the WAR Manifest CLASSPATH, WRT GBeans, in the same fashion as
1.0. Is this a regression in 1.1.1, or was this a "feature" of 1.0
that has since been corrected?

Thanks for any information you can provide.

Joe


Re: Eclipse + Geronimo + EJB = NullPointerException?

2006-10-26 Thread Lasantha Ranaweera




There must be a tag like given in the web.xml if your EJB is locally
referred one. 


	
		ejb/BankManagerFacade
		Session
		org.apache.geronimo.samples.bank.ejb.BankManagerFacadeHomeLocal
		org.apache.geronimo.samples.bank.ejb.BankManagerFacadeLocal
		BankManagerFacadeBean
	

If still have problem please post your TigerUtil.java, ejb-jar.xml and
openejb-jar.xml files.

Have a look at :
http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html

Thanks,
Lasantha Ranaweera
HubertB wrote:

  Hi!



The web.xml looks like this:


"http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	
	ZooWeb
	
		index.html
		index.htm
		index.jsp
		default.html
		default.htm
		default.jsp
	




This is the content of geronimo-web.xml:


"http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
  

  default
  ZooWeb
  1.0
  car

  
  /ZooWeb


Am Donnerstag, den 26.10.2006, 16:46 +0530 schrieb Lasantha Ranaweera:
  
  
Hi Hurbert,

Can you post geronimo-web.xml file and web.xml files? I think you can 
find those files from your project.

Thanks,
Lasantha Ranaweera
HubertB wrote:


  Hi!

I need a bit help getting this EJB-Tutorial to run on Geronimo 1.1:
http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html

I am using Eclipse 3.2.1 with WTP 1.5.1, JEM 1.2.1, EMF 2.1, GEF 3.2.1,
Geronimo-Plugin 1.1 (from this file:
g-eclipse-plugin-1.1-v200610161117-deployable) and XDoclet 1.2.3.


This is what I have done:

1. Create a J2EE => Enterprise Application Project and name it
"ZooBeansProject"
2. Create a EJB => EJB Project, name it "ZooBeans", check "Add project
to an EAR" and choose "ZooBeansProject"
3. In "ZooBeans" I created a new EJB => XDoclet Enterprise JavaBean,
Type = Session Bean, Package = com.zoo, name = "TigerBean"
4. Rightclick on "Apache Geronimo v1.1 Server @ localhost", choose "Add
and Remove Projects..." and add "ZooBeansProject"
5. Started Geronimo and noticed that ZooBeansProject has been deployed
to the server
6. Created a Web => Dynamic Web Project named "ZooWeb", also checked
"Add project to an EAR" and chose "ZooBeansProject"
7. In "ZooWeb", I created "test.jsp" containing the following code:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
"http://www.w3.org/TR/html4/loose.dtd">



Insert title here


<%
com.zoo.Tiger tiger = null;
try {
	com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
	tiger = home.create();  
} catch(Exception exception) {
}
%>
<%= tiger.foo("Test") %>



8. Rightclick on "test.jsp", select "Run As" => "Run on Server" then I
get this error:

12:13:56,670 ERROR [[jsp]] Servlet.service() for servlet jsp threw
exception
java.lang.NullPointerException
	at org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:60)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
	at org.apache.geronimo.tomcat.GeronimoStandardContext
$SystemMethodValve.invoke(GeronimoStandardContext.java:342)
	at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWor

Re: Eclipse + Geronimo + EJB = NullPointerException?

2006-10-26 Thread HubertB
Hi!



The web.xml looks like this:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

ZooWeb

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp





This is the content of geronimo-web.xml:


http://geronimo.apache.org/xml/ns/j2ee/web-1.1";
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1";
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1";
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";>
  

  default
  ZooWeb
  1.0
  car

  
  /ZooWeb


Am Donnerstag, den 26.10.2006, 16:46 +0530 schrieb Lasantha Ranaweera:
> Hi Hurbert,
> 
> Can you post geronimo-web.xml file and web.xml files? I think you can 
> find those files from your project.
> 
> Thanks,
> Lasantha Ranaweera
> HubertB wrote:
> > Hi!
> >
> > I need a bit help getting this EJB-Tutorial to run on Geronimo 1.1:
> > http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html
> >
> > I am using Eclipse 3.2.1 with WTP 1.5.1, JEM 1.2.1, EMF 2.1, GEF 3.2.1,
> > Geronimo-Plugin 1.1 (from this file:
> > g-eclipse-plugin-1.1-v200610161117-deployable) and XDoclet 1.2.3.
> >
> >
> > This is what I have done:
> >
> > 1. Create a J2EE => Enterprise Application Project and name it
> > "ZooBeansProject"
> > 2. Create a EJB => EJB Project, name it "ZooBeans", check "Add project
> > to an EAR" and choose "ZooBeansProject"
> > 3. In "ZooBeans" I created a new EJB => XDoclet Enterprise JavaBean,
> > Type = Session Bean, Package = com.zoo, name = "TigerBean"
> > 4. Rightclick on "Apache Geronimo v1.1 Server @ localhost", choose "Add
> > and Remove Projects..." and add "ZooBeansProject"
> > 5. Started Geronimo and noticed that ZooBeansProject has been deployed
> > to the server
> > 6. Created a Web => Dynamic Web Project named "ZooWeb", also checked
> > "Add project to an EAR" and chose "ZooBeansProject"
> > 7. In "ZooWeb", I created "test.jsp" containing the following code:
> >
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> >  > "http://www.w3.org/TR/html4/loose.dtd";>
> > 
> > 
> > 
> > Insert title here
> > 
> > 
> > <%
> > com.zoo.Tiger tiger = null;
> > try {
> > com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
> > tiger = home.create();  
> > } catch(Exception exception) {
> > }
> > %>
> > <%= tiger.foo("Test") %>
> > 
> > 
> >
> > 8. Rightclick on "test.jsp", select "Run As" => "Run on Server" then I
> > get this error:
> >
> > 12:13:56,670 ERROR [[jsp]] Servlet.service() for servlet jsp threw
> > exception
> > java.lang.NullPointerException
> > at org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:60)
> > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> > at
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > at
> > org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
> > at org.apache.geronimo.tomcat.GeronimoStandardContext
> > $SystemMethodValve.invoke(GeronimoStandardContext.java:342)
> > at
> > org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
> > at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> > at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> > at org.apache.coyote.http11.Http11BaseProtocol
> > $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
> > at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > at
> > org.apache.tomcat.util.n

Re: Error deploying EAR because of DataSource

2006-10-26 Thread Guillaume Bilodeau

Yes actually that was a mistake in my post, I forgot to remove all references
to my current client :)  All names are correct in my code, all of them being
jdbc/PromoDS.

Any other idea?


Vamsavardhana Reddy-2 wrote:
> 
> One problem I can see straight away is that your lookup code is not using
> the res-ref-name from web.xml and geronimo-web.xml is not linking the
> res-ref-name in web.xml with the actual resource.  To overcome this,
> change
> "jdbc/AuchanPromoDS" in web.xml to "jdbc/PromoDS" .  Regarding the
> resource-link, if you have used "jdbc/PromoDS" as the pool name, change
> the
> resource-link to "jdbc/PromoDS".
> 
> Vamsi
> On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>>
>>
>> Here's the relevant web.xml part:
>>
>> 
>>
>> http://java.sun.com/xml/ns/j2ee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>> version="2.4">
>> ...
>> 
>> jdbc/AuchanPromoDS
>> javax.sql.DataSource
>> Container
>> Shareable
>> 
>> ...
>> 
>>
>> The lookup code is done by the Spring framework through the following
>> tag:
>>
>> > jndi-name="java:comp/env/jdbc/PromoDS"
>> proxy-interface="javax.sql.DataSource"
>> lookup-on-startup="false" />
>>
>> But it doesn't even get to the lookup part :)
>>
>> Thanks!
>> GB
>>
>>
>>
>> Vamsavardhana Reddy-2 wrote:
>> >
>> > Please post your web.xml and also the lookup code.
>> >
>> > Vamsi
>> >
>> > On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi guys,
>> >>
>> >> This is a different problem than the one I posted back in July,
>> hopefully
>> >> this one will be easier to solve :)
>> >>
>> >> I'm back with my EAR, containing an EJB module (JAR), a web
>> application
>> >> (WAR) and their relevant dependencies in its root.  The EAR contains
>> the
>> >> following application.xml file:
>> >>
>> >> 
>> >> > >> "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
>> >> "http://java.sun.com/dtd/application_1_3.dtd";>
>> >> 
>> >>   promo-ear
>> >>   
>> >> 
>> >>   promo-web-2.0.0-SNAPSHOT.war
>> >>   /promo
>> >> 
>> >>   
>> >>   
>> >> promo-server-2.0.0-SNAPSHOT.jar
>> >>   
>> >> 
>> >>
>> >> The WAR contains a web.xml with a reference to a data source and the
>> >> following geronimo-web.xml file:
>> >>
>> >> 
>> >>
>> >> http://geronimo.apache.org/xml/ns/web";
>> >> xmlns:naming="http://geronimo.apache.org/xml/ns/naming";>
>> >> 
>> >> 
>> >> promo-war
>> >> 
>> >> 
>> >> 
>> >> console.dbpool
>> >> PromoDS
>> >> 
>> >> 
>> >> 
>> >>
>> >> /promo
>> >>
>> >> 
>> >> jdbc/PromoDS
>> >> PromoDS
>> >> 
>> >> 
>> >>
>> >> I have already configured my database pool with the same name, it's up
>> >> and
>> >> running and correctly listed in the J2EE connectors.
>> >>
>> >> When I try to deploy this EAR, I get the following error:
>> >>
>> >> Unable to resolve resource reference 'jdbc/PromoDS' (Could not find
>> >> resource
>> >> 'PromoDS'.  Perhaps it has not yet been configured, or your
>> application
>> >> does
>> >> not have a dependency declared for that resource module?)
>> >> org.apache.geronimo.common.DeploymentException: Unable to resolve
>> >> resource
>> >> reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps
>> it
>> >> has
>> >> not yet been configured, or your application does not have a
>> dependency
>> >> declared for that resource module?)
>> >>
>> >> Any idea what the problem here?
>> >>
>> >> Thanks a lot!
>> >> GB
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354
>> >> Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008735
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7009322
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Error deploying EAR because of DataSource

2006-10-26 Thread Vamsavardhana Reddy
One problem I can see straight away is that your lookup code is not
using the res-ref-name from web.xml and geronimo-web.xml is not linking
the res-ref-name in web.xml with the actual resource.  To overcome
this, change "jdbc/AuchanPromoDS" in web.xml to "jdbc/PromoDS" . 
Regarding the resource-link, if you have used "jdbc/PromoDS" as the
pool name, change the resource-link to "jdbc/PromoDS".

VamsiOn 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
Here's the relevant web.xml part:http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"version="2.4">...jdbc/AuchanPromoDS
javax.sql.DataSourceContainerShareable
...The lookup code is done by the Spring framework through the following tag:jndi-name="java:comp/env/jdbc/PromoDS"
proxy-interface="javax.sql.DataSource"lookup-on-startup="false" />But it doesn't even get to the lookup part :)Thanks!GBVamsavardhana Reddy-2 wrote:
>> Please post your web.xml and also the lookup code.>> Vamsi>> On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:>>
 Hi guys, This is a different problem than the one I posted back in July, hopefully>> this one will be easier to solve :) I'm back with my EAR, containing an EJB module (JAR), a web application
>> (WAR) and their relevant dependencies in its root.  The EAR contains the>> following application.xml file: 
>> >> "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN">> "http://java.sun.com/dtd/application_1_3.dtd
">>> >>   promo-ear>>   >> >>   promo-web-2.0.0-SNAPSHOT.war
>>   /promo>> >>   >>   >> promo-server-2.0.0-SNAPSHOT.jar
>>   >>  The WAR contains a web.xml with a reference to a data source and the>> following geronimo-web.xml file:>>
>>  http://geronimo.apache.org/xml/ns/web"
>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming">>> >> 
>>
promo-war>> >> >>
>>
console.dbpool>>
PromoDS>>
>> >>  /promo 
>>
jdbc/PromoDS>>
PromoDS>> >>  I have already configured my database pool with the same name, it's up
>> and>> running and correctly listed in the J2EE connectors. When I try to deploy this EAR, I get the following error: Unable to resolve resource reference 'jdbc/PromoDS' (Could not find
>> resource>> 'PromoDS'.  Perhaps it has not yet been configured, or your application>> does>> not have a dependency declared for that resource module?)>> org.apache.geronimo.common.DeploymentException
: Unable to resolve>> resource>> reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps it>> has>> not yet been configured, or your application does not have a dependency
>> declared for that resource module?) Any idea what the problem here? Thanks a lot!>> GB -->> View this message in context:
>> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354>> Sent from the Apache Geronimo - Users mailing list archive at 
Nabble.com.>>--View this message in context: 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008735Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Eclipse + Geronimo + EJB = NullPointerException?

2006-10-26 Thread Lasantha Ranaweera

Hi Hurbert,

Can you post geronimo-web.xml file and web.xml files? I think you can 
find those files from your project.


Thanks,
Lasantha Ranaweera
HubertB wrote:

Hi!

I need a bit help getting this EJB-Tutorial to run on Geronimo 1.1:
http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html

I am using Eclipse 3.2.1 with WTP 1.5.1, JEM 1.2.1, EMF 2.1, GEF 3.2.1,
Geronimo-Plugin 1.1 (from this file:
g-eclipse-plugin-1.1-v200610161117-deployable) and XDoclet 1.2.3.


This is what I have done:

1. Create a J2EE => Enterprise Application Project and name it
"ZooBeansProject"
2. Create a EJB => EJB Project, name it "ZooBeans", check "Add project
to an EAR" and choose "ZooBeansProject"
3. In "ZooBeans" I created a new EJB => XDoclet Enterprise JavaBean,
Type = Session Bean, Package = com.zoo, name = "TigerBean"
4. Rightclick on "Apache Geronimo v1.1 Server @ localhost", choose "Add
and Remove Projects..." and add "ZooBeansProject"
5. Started Geronimo and noticed that ZooBeansProject has been deployed
to the server
6. Created a Web => Dynamic Web Project named "ZooWeb", also checked
"Add project to an EAR" and chose "ZooBeansProject"
7. In "ZooWeb", I created "test.jsp" containing the following code:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
http://www.w3.org/TR/html4/loose.dtd";>



Insert title here


<%
com.zoo.Tiger tiger = null;
try {
com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
	tiger = home.create();  
} catch(Exception exception) {

}
%>
<%= tiger.foo("Test") %>



8. Rightclick on "test.jsp", select "Run As" => "Run on Server" then I
get this error:

12:13:56,670 ERROR [[jsp]] Servlet.service() for servlet jsp threw
exception
java.lang.NullPointerException
at org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:60)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at org.apache.geronimo.tomcat.GeronimoStandardContext
$SystemMethodValve.invoke(GeronimoStandardContext.java:342)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Whats wrong here?


  




Re: Migration help from JBoss to Geronimo

2006-10-26 Thread Manu George

Hi Ashish,
 There are some migration docs given in this page
http://cwiki.apache.org/GMOxDOC10/apache-geronimo-v10-users-guide.html.
They are for migration to geronimo-1.0 from JBOSS.
Documentation for geronimo -1.1 is given in the link below
http://cwiki.apache.org/GMOxDOC11/apache-geronimo-v11-users-guide.html.

There is also a tool written by David Jencks which automatically
migratates geronimo 1.0 plans to the geronimo 1.1 format.

Hope this helps

Regards
Manu

On 10/25/06, Ashish Kumar <[EMAIL PROTECTED]> wrote:




Hi ,



I am currently using the Jboss 4 for my enterprise application. Would you
please guide me about, what are the changes required for moving my
application from Jboss 4 to Geronimo and also provide me the link from where
I can get more information about the same.

I will be very thankful for the same.



Thanking you in advance.



Regards

Ashish Chauhan


Re: Error deploying EAR because of DataSource

2006-10-26 Thread Guillaume Bilodeau

Here's the relevant web.xml part:



http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
...

jdbc/AuchanPromoDS
javax.sql.DataSource
Container
Shareable

...


The lookup code is done by the Spring framework through the following tag:



But it doesn't even get to the lookup part :)

Thanks!
GB



Vamsavardhana Reddy-2 wrote:
> 
> Please post your web.xml and also the lookup code.
> 
> Vamsi
> 
> On 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi guys,
>>
>> This is a different problem than the one I posted back in July, hopefully
>> this one will be easier to solve :)
>>
>> I'm back with my EAR, containing an EJB module (JAR), a web application
>> (WAR) and their relevant dependencies in its root.  The EAR contains the
>> following application.xml file:
>>
>> 
>> > "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
>> "http://java.sun.com/dtd/application_1_3.dtd";>
>> 
>>   promo-ear
>>   
>> 
>>   promo-web-2.0.0-SNAPSHOT.war
>>   /promo
>> 
>>   
>>   
>> promo-server-2.0.0-SNAPSHOT.jar
>>   
>> 
>>
>> The WAR contains a web.xml with a reference to a data source and the
>> following geronimo-web.xml file:
>>
>> 
>>
>> http://geronimo.apache.org/xml/ns/web";
>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming";>
>> 
>> 
>> promo-war
>> 
>> 
>> 
>> console.dbpool
>> PromoDS
>> 
>> 
>> 
>>
>> /promo
>>
>> 
>> jdbc/PromoDS
>> PromoDS
>> 
>> 
>>
>> I have already configured my database pool with the same name, it's up
>> and
>> running and correctly listed in the J2EE connectors.
>>
>> When I try to deploy this EAR, I get the following error:
>>
>> Unable to resolve resource reference 'jdbc/PromoDS' (Could not find
>> resource
>> 'PromoDS'.  Perhaps it has not yet been configured, or your application
>> does
>> not have a dependency declared for that resource module?)
>> org.apache.geronimo.common.DeploymentException: Unable to resolve
>> resource
>> reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps it
>> has
>> not yet been configured, or your application does not have a dependency
>> declared for that resource module?)
>>
>> Any idea what the problem here?
>>
>> Thanks a lot!
>> GB
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008735
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Eclipse + Geronimo + EJB = NullPointerException?

2006-10-26 Thread HubertB
Hi!

I need a bit help getting this EJB-Tutorial to run on Geronimo 1.1:
http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html

I am using Eclipse 3.2.1 with WTP 1.5.1, JEM 1.2.1, EMF 2.1, GEF 3.2.1,
Geronimo-Plugin 1.1 (from this file:
g-eclipse-plugin-1.1-v200610161117-deployable) and XDoclet 1.2.3.


This is what I have done:

1. Create a J2EE => Enterprise Application Project and name it
"ZooBeansProject"
2. Create a EJB => EJB Project, name it "ZooBeans", check "Add project
to an EAR" and choose "ZooBeansProject"
3. In "ZooBeans" I created a new EJB => XDoclet Enterprise JavaBean,
Type = Session Bean, Package = com.zoo, name = "TigerBean"
4. Rightclick on "Apache Geronimo v1.1 Server @ localhost", choose "Add
and Remove Projects..." and add "ZooBeansProject"
5. Started Geronimo and noticed that ZooBeansProject has been deployed
to the server
6. Created a Web => Dynamic Web Project named "ZooWeb", also checked
"Add project to an EAR" and chose "ZooBeansProject"
7. In "ZooWeb", I created "test.jsp" containing the following code:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
http://www.w3.org/TR/html4/loose.dtd";>



Insert title here


<%
com.zoo.Tiger tiger = null;
try {
com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
tiger = home.create();  
} catch(Exception exception) {
}
%>
<%= tiger.foo("Test") %>



8. Rightclick on "test.jsp", select "Run As" => "Run on Server" then I
get this error:

12:13:56,670 ERROR [[jsp]] Servlet.service() for servlet jsp threw
exception
java.lang.NullPointerException
at org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:60)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at org.apache.geronimo.tomcat.GeronimoStandardContext
$SystemMethodValve.invoke(GeronimoStandardContext.java:342)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Whats wrong here?



Re: Error deploying EAR because of DataSource

2006-10-26 Thread Vamsavardhana Reddy
Please post your web.xml and also the lookup code.

VamsiOn 10/26/06, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote:
Hi guys,This is a different problem than the one I posted back in July, hopefullythis one will be easier to solve :)I'm back with my EAR, containing an EJB module (JAR), a web application(WAR) and their relevant dependencies in its root.  The EAR contains the
following application.xml file:"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">  promo-ear  
  promo-web-2.0.0-SNAPSHOT.war  /promo
promo-server-2.0.0-SNAPSHOT.jar  The WAR contains a web.xml with a reference to a data source and thefollowing geronimo-web.xml file:http://geronimo.apache.org/xml/ns/web"xmlns:naming="
http://geronimo.apache.org/xml/ns/naming">promo-war
console.dbpoolPromoDS
/promo
jdbc/PromoDSPromoDS
I have already configured my database pool with the same name, it's up andrunning and correctly listed in the J2EE connectors.When I try to deploy this EAR, I get the following error:Unable to resolve resource reference 'jdbc/PromoDS' (Could not find resource
'PromoDS'.  Perhaps it has not yet been configured, or your application doesnot have a dependency declared for that resource module?)org.apache.geronimo.common.DeploymentException: Unable to resolve resource
reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps it hasnot yet been configured, or your application does not have a dependencydeclared for that resource module?)Any idea what the problem here?
Thanks a lot!GB--View this message in context: http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Error deploying EAR because of DataSource

2006-10-26 Thread Guillaume Bilodeau

Hi guys,

This is a different problem than the one I posted back in July, hopefully
this one will be easier to solve :)

I'm back with my EAR, containing an EJB module (JAR), a web application
(WAR) and their relevant dependencies in its root.  The EAR contains the
following application.xml file:


http://java.sun.com/dtd/application_1_3.dtd";>

  promo-ear
  

  promo-web-2.0.0-SNAPSHOT.war
  /promo

  
  
promo-server-2.0.0-SNAPSHOT.jar
  


The WAR contains a web.xml with a reference to a data source and the
following geronimo-web.xml file:



http://geronimo.apache.org/xml/ns/web";
xmlns:naming="http://geronimo.apache.org/xml/ns/naming";>


promo-war



console.dbpool
PromoDS




/promo


jdbc/PromoDS
PromoDS



I have already configured my database pool with the same name, it's up and
running and correctly listed in the J2EE connectors.

When I try to deploy this EAR, I get the following error:

Unable to resolve resource reference 'jdbc/PromoDS' (Could not find resource
'PromoDS'.  Perhaps it has not yet been configured, or your application does
not have a dependency declared for that resource module?)
org.apache.geronimo.common.DeploymentException: Unable to resolve resource
reference 'jdbc/PromoDS' (Could not find resource 'PromoDS'.  Perhaps it has
not yet been configured, or your application does not have a dependency
declared for that resource module?)

Any idea what the problem here?

Thanks a lot!
GB

-- 
View this message in context: 
http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7008354
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Migration help from JBoss to Geronimo

2006-10-26 Thread Ashish Kumar




Hi ,
 
I am currently using the Jboss 4 for my enterprise application. Would you please guide me about, what are the changes required for moving my application from Jboss 4 to Geronimo and also provide me the link from where I can get more information about the same.
I will be very thankful for the same.
 
Thanking you in advance.
 
Regards
Ashish Chauhan