Re: Geronimo 2.1 on Windows - security warn on Geronimo start

2008-02-19 Thread Jacek Laskowski
On Feb 18, 2008 2:05 AM, Tomasz Mazan [EMAIL PROTECTED] wrote:

  These lines are printed before Cert-window appears

  Booting Geronimo Kernel (in Java 1.6.0_03)...

Thanks Tomek for your patience! I finally tracked it down and it
turned out to occur on Geronimo 2.1 with Tomcat 6 distro only. I kept
using Java 5 with Geronimo 2.1 and Jetty 6. That's why I couldn't find
out what's wrong.

Reported as GERONIMO-3864 Security warning about installation a
certificate from a CA claiming to represent: Me
(https://issues.apache.org/jira/browse/GERONIMO-3864).

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl


Re: Geronimo 2.1 on Windows - security warn on Geronimo start

2008-02-19 Thread Tomasz Mazan

Jacek Laskowski pisze:

On Feb 18, 2008 2:05 AM, Tomasz Mazan [EMAIL PROTECTED] wrote:

  

 These lines are printed before Cert-window appears

 Booting Geronimo Kernel (in Java 1.6.0_03)...



Thanks Tomek for your patience! I finally tracked it down and it
turned out to occur on Geronimo 2.1 with Tomcat 6 distro only. I kept
using Java 5 with Geronimo 2.1 and Jetty 6. That's why I couldn't find
out what's wrong.

Reported as GERONIMO-3864 Security warning about installation a
certificate from a CA claiming to represent: Me
(https://issues.apache.org/jira/browse/GERONIMO-3864).

Jacek
  

I'm glad you could reproduce this warning occurence.

Thanks
Beniamin


Deploying Web Services and Geronimo 2.1

2008-02-19 Thread fmchale

Hi,

I am new to using geronimo and Java EE in general, so pardon me if my
question is something quite simple and redundant.  I have built an ear
application that contains session beans and a war application.  I would like
also to have those session beans availale as web services.  From my reading
and research, if I use jaxws-2.0 I do not have to create a wsdl file or any
others.  All I should have to do is add the appropriate annotation.  So I
added the @WebService annotation to the interface of the bean I wish to make
available (there is only one stateless session bean anyway).  When I attempt
to deploy the project I recieve a null pointer acception?  Am I missing
something with my research?  I was under the impression I didnt need to
create a wsdl file, is this wrong?  Any help or guidance would be
appreciated.  Thanks
From the logs

01:02:36,937 INFO  [config] Configuring Service(id=Default Stateless
Container, type=Container, provider-id=Default Stateless Container)
01:02:36,937 INFO  [config] Configuring Service(id=Default Stateful
Container, type=Container, provider-id=Default Stateful Container)
01:02:36,937 INFO  [config] Configuring Service(id=Default BMP Container,
type=Container, provider-id=Default BMP Container)
01:02:36,937 INFO  [config] Configuring Service(id=Default CMP Container,
type=Container, provider-id=Default CMP Container)
01:02:36,937 INFO  [config] Configuring app:
matchmakerear/matchmaker-ear/1.0/ear
01:02:37,171 ERROR [Deployer] Deployment failed due to 
java.lang.NullPointerException
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:892)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:413)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:165)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:141)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:425)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication(EjbModuleBuilder.java:638)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:575)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:497)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:595)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown 
Source)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 

Re: JVM OutOfMemoryError: Java heap space

2008-02-19 Thread Kevan Miller


On Feb 17, 2008, at 2:25 PM, the666pack wrote:



hello,

i try to performance test the geronimo applicatoin server but after 2
minutes of testing the JVM hangs up and i get the following message  
on the

command line:

java.lang.OutOfMemoryError: Java heap space

my customized options for the jvm are:

-server -Xms1280m -Xmx1280m -XX:PermSize=1280m -XX:MaxPermSize=1280m

so this should be sufficient for the heap! unfortunately at 40  
simultaneous

calls the JVM hangs and i just can kill it via the system call!

i also observed that the memory is not allocated, there is still  
plenty of
memory left (at least 3/4 of my 2048m) and it does not change the  
size also

not with more requests. but after 2 minutes-crash!

also my call is fairly simple: it is a single call to a JSP page  
which just
returns the date. so this really should be possible. but i cannot  
see the

reason for the Exception anymore!

so if anyone can help, PLEASE!


Mario,
What version of Geronimo are you using?

If you're using the Sun VM and have a small application, then rerun  
with the following options:


export JAVA_OPTS=-verbose:gc -XX:+PrintGCDetails -XX: 
+HeapDumpOnOutOfMemoryError


You can then use tools like YourKit to analyze the resultant .hprof  
file. Recommend you must let max heap default (otherwise you end up  
with a really large heapdump). If you can make the heapdump available  
to me, I'll have a look... Or give me instructions on how to recreate,  
and I'll see if I'm able to generate the same problem.


--kevan





Re: Deployer needs internet access?

2008-02-19 Thread Vasily Zakharov

David Blevins [EMAIL PROTECTED] writes:

 
 This looks like a bug.  Filed a jira here:  https://issues.apache.org/ 
 jira/browse/OPENEJB-700
 

It seems the problem is not fully resolved.

On G2.1 (with OpenEJB 3.0 beta 2) I still can't deploy SjAS'04 when beyond the
firewall if proxy is not set properly:

Error: Unable to distribute SPECjAppServer.ear:
org.apache.openejb.OpenEJBException: Cannot read the ejb-jar.xml file:
jar:file:/C:/Temp/geronimo-deploymentUtil48973.jar!/META-INF/ejb-jar.xml:
Connection timed out: connect

Any ideas what could be the cause?

Vasily