Re: Problem deploying an EAR

2009-10-15 Thread Massimiliano Ziccardi
I've solved the problem.

Inside my EAR there was some jars that needs bouncycastle jars...
It seems that Geronimo has some problem when there are signed jars (at
least it had problems with bouncycastle, however I'll indagate
further).

However, now I've a new problem: my web app (deployed inside an EAR)
depends on axis2.
Axis2 depends on commons-fileupload : I always get an

2009-10-15 10:44:49,253 ERROR [WarBasedAxisConfigurator]
org/apache/commons/fileupload/FileUploadException
org.apache.axis2.deployment.DeploymentException:
org/apache/commons/fileupload/FileUploadException
at 
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:623)
at 
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186)
at 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615)
at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxisConfigurator.java:146)
at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
at 
org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:54)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1064)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4051)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:63)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:398)
at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
at 
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:251)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

any idea?

Thanks,
Massimiliano

On Thu, Oct 15, 2009 at 12:26 AM, David Jencks david_jen...@yahoo.com wrote:
 That doesn't look like a valid manifest entry for Class-Path... how is it
 generated?

 thanks
 david jencks

 On Oct 14, 2009, at 2:03 AM, Massimiliano Ziccardi wrote:

 Hi all.

 I've some problem deploying on Geronumo an EAR that works beautifully
 with jBoss.

 The EAR is composed this way:
 EAR
  - UTILITY1.jar
  - UTILITY2.jar
  - UTILITY3.jar
  - WEBMODULE.war

 The WEBMODULE.war classpath configured inside the WEBMODULE.war
 manifes points to the UTILITY jar files with a row like the following:

 Manifest-Version: 1.0
 Built-By: nandana
 Build-Jdk: 1.5.0_08
 Class-Path: UTILITY1.jar
 UTILITY2.jar
 UTILITY3.jar
 Created-By: Apache Maven
 Archiver-Version: Plexus Archiver

 The whole EAR is created by Eclipse (the utility projects are simple
 Java Projects, added to J2EE module dependencies of EAR and configured
 as dependencies for the WAR file).

 Geronimo keep on complaining that the manifest is not correct, with a
 message like the following:

  org.apache.geronimo.common.DeploymentException: Manifest class path
 entries must be a valid jar file, or if it is a directory, all the
 files with jar suffix in it must be a valid jar file (JAVAEE 5 Section
 8.2):  resolved to targetURI= UTILITY1.jar

 Have you any idea?

 Thanks,
 Massimiliano




Re: Bug in Geronimo JavaMail

2009-10-15 Thread Rick McGuire

This sounds like a new issue.  Please open a Jira against this.

Rick

von Janowsky, Simon wrote:

  Hello,
we found a bug in the geronimo javamail, and couldn't find
a issue for this in jira.

When a url ist set to receive email the username ist extracted correctly
using UrlName class,
but when querying  the imap server the system defined username is used
instead.

This is because the username in the connect Method in Service.java
overrides
the
username from the url. See this code excerpt from
javax.mail.Service.class
in geronimo-javamail_1.4_spec-1.6.jar 


code class=Service.java method=connect(String host, int port, String
user, String password)

   if (user == null) {
// first choice is from the url, if we have
if (url != null) {
user = url.getUsername();
// make sure we get the password from the url, if we
can.
if (password == null) {
password = url.getPassword();
}
// user still null?  We have several levels of
properties to try yet
if (user == null) {
if (protocol != null) {
user = session.getProperty(mail. +
protocol + .user);
}
}
}

// this may still be null...get the global mail property
if (user == null) {
user = session.getProperty(mail.user);
}

// finally, we try getting the system defined user name
// HERE THE USER IS ALWAYS OVERWRITTEN
// HERE THE USER IS ALWAYS OVERWRITTEN
// HERE THE USER IS ALWAYS OVERWRITTEN
try {
user = System.getProperty(user.name);
} catch (SecurityException e) {
// we ignore this, and just us a null username.
}
}

/code


With kind regards,
Simon von Janowsky


  




Re: Problem deploying an EAR

2009-10-15 Thread Massimiliano Ziccardi
Just to share my solution with you all.

The problem was that geronimo-tomcat already contains an AXIS2
runtime: using the geronimo-jetty bundle everything went ok.


[no subject]

2009-10-15 Thread Özhan Durgan

Hi, 

I am from Germany and I am working with Webservices. I want to use the Geronimo 
server as container. I want use a stateless session bean as a webservice. For 
this purpose I create a stateless session bean and I planed to connect to it 
via servlet. I dont understant where I am wrong but it doesnt work.
Maybe I missunderstood Geronimo and its not work with EJB, Webservices and 
Soap. Therefore I need to know if I can use Geronimo to build EJB webservices 
with SOAP or not? Or maybe you can help me with an example that you can show me 
somewhere in the Web. 
-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


Re:

2009-10-15 Thread Quintin Beukes
As far as I know it does support SOAP. The EJB implementation for
Geronimo is OpenEJB, and it has some examples for Web Services. Have a
look at the examples download on
http://openejb.apache.org/download.html and then the
simple-webservice example.

Quintin Beukes



On Thu, Oct 15, 2009 at 8:19 PM, Özhan Durgan oedur...@gmx.net wrote:

 Hi,

 I am from Germany and I am working with Webservices. I want to use the 
 Geronimo server as container. I want use a stateless session bean as a 
 webservice. For this purpose I create a stateless session bean and I planed 
 to connect to it via servlet. I dont understant where I am wrong but it 
 doesnt work.
 Maybe I missunderstood Geronimo and its not work with EJB, Webservices and 
 Soap. Therefore I need to know if I can use Geronimo to build EJB webservices 
 with SOAP or not? Or maybe you can help me with an example that you can show 
 me somewhere in the Web.
 --
 Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
 sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser



Re:

2009-10-15 Thread Delos
You can refer to the simple sample here
http://cwiki.apache.org/GMOxDOC22/developing-a-simple-calculator-web-service.html

As the sample shows, your Web Service is placed in a web project. Then, your
session bean can be referenced in the project to provide service.


2009/10/16 Quintin Beukes quin...@skywalk.co.za

 As far as I know it does support SOAP. The EJB implementation for
 Geronimo is OpenEJB, and it has some examples for Web Services. Have a
 look at the examples download on
 http://openejb.apache.org/download.html and then the
 simple-webservice example.

 Quintin Beukes



 On Thu, Oct 15, 2009 at 8:19 PM, Özhan Durgan oedur...@gmx.net wrote:
 
  Hi,
 
  I am from Germany and I am working with Webservices. I want to use the
 Geronimo server as container. I want use a stateless session bean as a
 webservice. For this purpose I create a stateless session bean and I planed
 to connect to it via servlet. I dont understant where I am wrong but it
 doesnt work.
  Maybe I missunderstood Geronimo and its not work with EJB, Webservices
 and Soap. Therefore I need to know if I can use Geronimo to build EJB
 webservices with SOAP or not? Or maybe you can help me with an example that
 you can show me somewhere in the Web.
  --
  Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
 3.5 -
  sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
 




-- 
Best Regards,

Delos


Disable username/password authentication while server shutdown

2009-10-15 Thread jithesh

Hi, 

I am using wasce 2.0 as my appserver. I am running it under my wmware
instance. My problem is if I shutdown the wmware instance , the wasce asks
the username and password and waits there. This halts wmware from shutiing
down. Is it possible to disable this feature while shutdown process.

Thanks
JIthesh PM.
-- 
View this message in context: 
http://www.nabble.com/Disable-username-password-authentication-while-server-shutdown-tp25919987s134p25919987.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.