You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Mohanraj Loganathan <mo...@gmail.com> on 2009/06/21 11:29:13 UTC

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Hello

After a long time, i could able to build the geronimo using Harmony JDK. But
Building was not so smooth. I need to build the modules one by one. I struck
at running the testsuites module .

It is failed to verify the Geronimo server start.  But i am sure server is
started. Server logs shows that server is up and running. But build script
while running the command-testsuite failed to detect the server start. Any
help would be much appreciated. Please note, Harmony doesnt implement JPA.
hence i removed the option from batch script while starting.

I am getting the following error:

org.apache.maven.lifecycle.LifecycleExecutionException: Unable to verify if
the server was started in the given time (300 seconds)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
0)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:331)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
        at java.lang.reflect.Method.invoke(Method.java:317)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to verify
if the server was started in the given time
(300 seconds)
        at
org.apache.geronimo.mavenplugins.geronimo.reporting.ReportingMojoSupport.execute(ReportingMojoSupport.java:10
6)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
0)
        ... 13 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to verify
if the server was started in the given time
(300 seconds)
        at
org.apache.geronimo.mavenplugins.geronimo.server.StartServerMojo.doExecute(StartServerMojo.java:350)
        at
org.apache.geronimo.mavenplugins.geronimo.reporting.ReportingMojoSupport.execute(ReportingMojoSupport.java:99
)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        ... 15 more

On Wed, May 13, 2009 at 8:03 AM, Jack Cai <gr...@gmail.com> wrote:

> Mohan, the problem might be with the Harmony code - could be a compability
> issue or a defect. So you'll want to spend some time debugging it.
>
> I agree with Kevan that it will be cool that Geronimo can be built and run
> with Harmony. Someday we might be officially "support" Harmony as a runtime,
> and even do a JEE cert with Harmony?
>
> -Jack
>
> 2009/5/12 Kevan Miller <ke...@gmail.com>
>
>
>> On May 12, 2009, at 8:54 AM, Luciano Salotto wrote:
>>
>> I would recommend trying this with Sun or IMB JDK, I believe those are the
>> only two recommended JDK's
>>
>> http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html
>>
>>
>> Agreed. However, if somebody's interested on working on it, I think it
>> would be cool to see Harmony issues identified and resolved.
>>
>> --kevan
>>
>>
>


-- 
Mohan

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by Mohanraj Loganathan <mo...@gmail.com>.
>
> Heh. Interesting. I would have thought if we made it that far, config.xml
> would be a piece of cake... By the way, what version of Geronimo are you
> building?
>

I used the 2.1.4 source of Geronimo.

Regards,
Mohan

On Wed, Jul 1, 2009 at 10:35 PM, Kevan Miller <ke...@gmail.com>wrote:

>
> On Jul 1, 2009, at 2:09 AM, Mohanraj Loganathan wrote:
>
> Geronimo Binary built by Harmony is not as equivalent to the binary built
> by SUN JDK. var/config/config.xml file is empty and few other config files
> also empty. No idea why harmony build binary has empty config files. Any
> thoughts on this?
>
>
> Heh. Interesting. I would have thought if we made it that far, config.xml
> would be a piece of cake... By the way, what version of Geronimo are you
> building?
>
>
> I replaced the config files from SunJDK built geronimo binary and followed
> the steps mentioned here<http://cwiki.apache.org/GMOxDOC22/apache-harmony.html>to start the server using HARMONY Java. Server sucessfully started.
>
>
> Great!
>
>
> As mentioned in the page when i passed the argument -Djava.naming.factory.url.pkgs=org.apache.harmony.jndi.provider
> to java tests are run continuously. Now tests are running fine. But found
> few test failures. I will be analyse these failures further.
>
>
> Thanks for the update!
>
> --kevan
>



-- 
Mohan

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by Kevan Miller <ke...@gmail.com>.
On Jul 1, 2009, at 2:09 AM, Mohanraj Loganathan wrote:

> Geronimo Binary built by Harmony is not as equivalent to the binary  
> built by SUN JDK. var/config/config.xml file is empty and few other  
> config files also empty. No idea why harmony build binary has empty  
> config files. Any thoughts on this?

Heh. Interesting. I would have thought if we made it that far,  
config.xml would be a piece of cake... By the way, what version of  
Geronimo are you building?

>
> I replaced the config files from SunJDK built geronimo binary and  
> followed the steps mentioned here to start the server using HARMONY  
> Java. Server sucessfully started.

Great!

>
> As mentioned in the page when i passed the argument - 
> Djava.naming.factory.url.pkgs=org.apache.harmony.jndi.provider  to  
> java tests are run continuously. Now tests are running fine. But  
> found few test failures. I will be analyse these failures further.

Thanks for the update!

--kevan

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by Mohanraj Loganathan <mo...@gmail.com>.
Geronimo Binary built by Harmony is not as equivalent to the binary built by
SUN JDK. var/config/config.xml file is empty and few other config files also
empty. No idea why harmony build binary has empty config files. Any thoughts
on this?

I replaced the config files from SunJDK built geronimo binary and followed
the steps mentioned
here<http://cwiki.apache.org/GMOxDOC22/apache-harmony.html>to start
the server using HARMONY Java. Server sucessfully started.

As mentioned in the page when i passed the argument
-Djava.naming.factory.url.pkgs=org.apache.harmony.jndi.provider
to java tests are run continuously. Now tests are running fine. But found
few test failures. I will be analyse these failures further.

Thanks and regards,
Mohan


On Mon, Jun 22, 2009 at 1:37 PM, Jack Cai <gr...@gmail.com> wrote:

> Harmony use MX4J, which implements JSR 003 and 160 (remote API). So I
> suppose the jmx remoting function is there.
>
> Mohan, can you start the server built with Harmony in command line? ie.,
> use "startup" command for example.
>
> -Jack
>
>
> On Mon, Jun 22, 2009 at 12:33 AM, Kevan Miller <ke...@gmail.com>wrote:
>
>>
>> On Jun 21, 2009, at 12:04 PM, David Jencks wrote:
>>
>>
>>> On Jun 21, 2009, at 2:29 AM, Mohanraj Loganathan wrote:
>>>
>>>  Hello
>>>>
>>>> After a long time, i could able to build the geronimo using Harmony JDK.
>>>> But Building was not so smooth. I need to build the modules one by one. I
>>>> struck at running the testsuites module ..
>>>>
>>>> It is failed to verify the Geronimo server start.  But i am sure server
>>>> is started. Server logs shows that server is up and running. But build
>>>> script while running the command-testsuite failed to detect the server
>>>> start. Any help would be much appreciated. Please note, Harmony doesnt
>>>> implement JPA.
>>>>
>>>
>>> umm, neither does any other vm, not sure what you mean here.  Maybe it
>>> doesn't implement java agents or not the same way?
>>>
>>
>> IIRC, Harmony does not support -javaagent. You can run OpenJPA without it,
>> but I think we'll run into a number of problems without -javaagent support.
>>
>>
>>> I wonder if harmony implements jmx remoting?  checking whether the server
>>> started relies on this.
>>>
>>
>> Sounds like a reasonable guess...
>>
>> --kevan
>>
>
>


-- 
Mohan

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by Jack Cai <gr...@gmail.com>.
Harmony use MX4J, which implements JSR 003 and 160 (remote API). So I
suppose the jmx remoting function is there.

Mohan, can you start the server built with Harmony in command line? ie., use
"startup" command for example.

-Jack

On Mon, Jun 22, 2009 at 12:33 AM, Kevan Miller <ke...@gmail.com>wrote:

>
> On Jun 21, 2009, at 12:04 PM, David Jencks wrote:
>
>
>> On Jun 21, 2009, at 2:29 AM, Mohanraj Loganathan wrote:
>>
>>  Hello
>>>
>>> After a long time, i could able to build the geronimo using Harmony JDK.
>>> But Building was not so smooth. I need to build the modules one by one. I
>>> struck at running the testsuites module ..
>>>
>>> It is failed to verify the Geronimo server start.  But i am sure server
>>> is started. Server logs shows that server is up and running. But build
>>> script while running the command-testsuite failed to detect the server
>>> start. Any help would be much appreciated. Please note, Harmony doesnt
>>> implement JPA.
>>>
>>
>> umm, neither does any other vm, not sure what you mean here.  Maybe it
>> doesn't implement java agents or not the same way?
>>
>
> IIRC, Harmony does not support -javaagent. You can run OpenJPA without it,
> but I think we'll run into a number of problems without -javaagent support.
>
>
>> I wonder if harmony implements jmx remoting?  checking whether the server
>> started relies on this.
>>
>
> Sounds like a reasonable guess...
>
> --kevan
>

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by Kevan Miller <ke...@gmail.com>.
On Jun 21, 2009, at 12:04 PM, David Jencks wrote:

>
> On Jun 21, 2009, at 2:29 AM, Mohanraj Loganathan wrote:
>
>> Hello
>>
>> After a long time, i could able to build the geronimo using Harmony  
>> JDK. But Building was not so smooth. I need to build the modules  
>> one by one. I struck at running the testsuites module ..
>>
>> It is failed to verify the Geronimo server start.  But i am sure  
>> server is started. Server logs shows that server is up and running.  
>> But build script while running the command-testsuite failed to  
>> detect the server start. Any help would be much appreciated. Please  
>> note, Harmony doesnt implement JPA.
>
> umm, neither does any other vm, not sure what you mean here.  Maybe  
> it doesn't implement java agents or not the same way?

IIRC, Harmony does not support -javaagent. You can run OpenJPA without  
it, but I think we'll run into a number of problems without -javaagent  
support.

>
> I wonder if harmony implements jmx remoting?  checking whether the  
> server started relies on this.

Sounds like a reasonable guess...

--kevan

Re: Geronimo2.1.0 build failure with Java5 (method getContentType() not found)

Posted by David Jencks <da...@yahoo.com>.
On Jun 21, 2009, at 2:29 AM, Mohanraj Loganathan wrote:

> Hello
>
> After a long time, i could able to build the geronimo using Harmony  
> JDK. But Building was not so smooth. I need to build the modules one  
> by one. I struck at running the testsuites module .
>
> It is failed to verify the Geronimo server start.  But i am sure  
> server is started. Server logs shows that server is up and running.  
> But build script while running the command-testsuite failed to  
> detect the server start. Any help would be much appreciated. Please  
> note, Harmony doesnt implement JPA.

umm, neither does any other vm, not sure what you mean here.  Maybe it  
doesn't implement java agents or not the same way?

I wonder if harmony implements jmx remoting?  checking whether the  
server started relies on this.

thanks
david jencks

> hence i removed the option from batch script while starting.
>
> I am getting the following error:
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to  
> verify if the server was started in the given time (300 seconds)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
> 584)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
> 0)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 
> 479)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
> a:331)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeTaskSegments(DefaultLifecycleExecutor.java:292)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> 336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
> 129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
>         at  
> java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>         at java.lang.reflect.Method.invoke(Method.java:317)
>         at  
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at  
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to  
> verify if the server was started in the given time
> (300 seconds)
>         at  
> org 
> .apache 
> .geronimo 
> .mavenplugins 
> .geronimo 
> .reporting.ReportingMojoSupport.execute(ReportingMojoSupport.java:10
> 6)
>         at  
> org 
> .apache 
> .maven 
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 
> 453)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
> 559)
>         at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:50
> 0)
>         ... 13 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to  
> verify if the server was started in the given time
> (300 seconds)
>         at  
> org 
> .apache 
> .geronimo 
> .mavenplugins 
> .geronimo.server.StartServerMojo.doExecute(StartServerMojo.java:350)
>         at  
> org 
> .apache 
> .geronimo 
> .mavenplugins 
> .geronimo 
> .reporting.ReportingMojoSupport.execute(ReportingMojoSupport.java:99
> )
>         at  
> org 
> .apache 
> .maven 
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 
> 453)
>         ... 15 more
>
> On Wed, May 13, 2009 at 8:03 AM, Jack Cai <gr...@gmail.com>  
> wrote:
> Mohan, the problem might be with the Harmony code - could be a  
> compability issue or a defect. So you'll want to spend some time  
> debugging it.
>
> I agree with Kevan that it will be cool that Geronimo can be built  
> and run with Harmony. Someday we might be officially "support"  
> Harmony as a runtime, and even do a JEE cert with Harmony?
>
> -Jack
>
> 2009/5/12 Kevan Miller <ke...@gmail.com>
>
>
> On May 12, 2009, at 8:54 AM, Luciano Salotto wrote:
>
>> I would recommend trying this with Sun or IMB JDK, I believe those  
>> are the only two recommended JDK's
>>
>> http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html
>
> Agreed. However, if somebody's interested on working on it, I think  
> it would be cool to see Harmony issues identified and resolved.
>
> --kevan
>
>
>
>
>
> -- 
> Mohan