Re: [GEP] Source path lookup for web module's depending libraries.

2010-04-22 Thread chi runhua
Tianchen,

You may file a JIRA for the request and attach the patch on it for review.

thanks for your contribution.

Jeff C


On Fri, Apr 23, 2010 at 7:42 AM, Tianchen Jiang wrote:

> I was able to spend some time and create a plugin to fix this sourcepath
> lookup issue. Attached is the archive of my plugin. After it is installed in
> your eclipse, eclipse should be able to automatically locate the source path
> attached to jars. And this applies to the jars in Maven dependencies.
>
> You can also get the latest version on the update site:
> https://spleg.svn.sourceforge.net/svnroot/spleg/update
>
> Let me know if you have issues in using this plugin. Please also drop me a
> note if you find it useful. :)
>
> Thanks,
> Kenneth
>
> On Mon, Apr 19, 2010 at 8:34 AM, Tianchen Jiang 
> wrote:
>
>> Hi Geronimo dev-tool team,
>>
>> When I was developing a web module using Geronimo Eclipse Plugin, I was
>> unable to have Eclipse to load the source code for the libraries that my web
>> module depends on. To outline the steps to reproduce my problem:
>> 1. Create a Dynamic Web Project in Eclipse
>> 2. Enable Maven by click "Maven" -> "Enable Dependency Management"
>> 3. Add a library (dependency in Maven) to my web project, for example,
>> Freemarker, using Maven plugin
>> 4. Attach source code by clicking "Maven" -> "Download Sources"
>> 5. Launch a Geronimo server to debug my web project
>> 6. Add a break point in one of Freemarker's class.
>> 7. When the breakpoint is hit, Eclipse will complain that Freemarker
>> source code is not found.
>>
>> When I digged deeper, I found out that my problem seems to be relatd with
>> the way how the class
>> "org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoSourcePathComputerDelegate.java"
>> is implemented. Below is a code snippet from its method
>> "computeSourceContainers"
>> ...
>>  // populate list of java projects and their source
>> folders
>> processModules(modules, javaProjectList, server, monitor);
>>
>>// create a ProjectRuntime classpath entry for each
>> JavaProject
>> IRuntimeClasspathEntry[] projectEntries = new
>> IRuntimeClasspathEntry[javaProjectList.size()];
>> for (int i = 0; i < javaProjectList.size(); i++) {
>> projectEntries[i] =
>> JavaRuntime.newProjectRuntimeClasspathEntry((IJavaProject)
>> javaProjectList.get(i));
>> }
>> ...
>> IRuntimeClasspathEntry[] resolved =
>> JavaRuntime.resolveSourceLoo
>> kupPath(entries, configuration);
>> ISourceContainer[] defaultContainers =
>> JavaRuntime.getSourceCont
>> ainers(resolved);
>> ...
>>
>> It seems to make Eclipse add only the web project to sourcepath lookup,
>> rather than the libraries it depends on.
>>
>> I feel it is a useful feature to make source code of all depending
>> libraries available to Eclipse when debugging, and it seems to be a very
>> intuitive way to integrate with Maven.
>>
>> Did I miss anything here? Please let me what your solution was.
>>
>> Thanks,
>> Kenneth
>>
>
>


Re: Using vm:// transport for ActiveMQ5.3 (Geronimo 2.2)

2010-04-22 Thread easyl

thanks, it works!
-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/Using-vm-transport-for-ActiveMQ5-3-Geronimo-2-2-tp742434p742979.html
Sent from the Users mailing list archive at Nabble.com.


Re: Using vm:// transport for ActiveMQ5.3 (Geronimo 2.2)

2010-04-22 Thread Ivan
Hi, for vm protocol, I do not think that you need to add any connector in
the ActiveMQ configuration file, also, it should use broker name in the
server url, or ActiveMQ server will choose a broker for you.
By default, Geronimo 2.2 would create a broker name DefaultActiveMQBroker,
so the url should something like vm://DefaultActiveMQBroker

2010/4/22 easyl 

>
> I try to add a vm protocal in activemq.xml
>
> 
> uri="tcp://${ServerHostname}:${${ActiveMQPort} + ${PortOffset}}" />
> uri="vm://${ServerHostname}" />
>
>
> and make a jms resource in deployment
>
> 
> name="ServerUrl">vm://localhost?jms.copyMessageOnSend=false&jms.watchTopicAdvisories=false
>
>
> while starting up application, I got such warning...
>
> Module 77/78 My/app.ear/1.0/ear
> 2010-04-22 11:13:12,352 WARN  [BrokerRegistry] Broker localhost not started
> so using DefaultActiveMQBroker instead
> 2010-04-22 11:13:12,444 WARN  [BrokerRegistry] Broker localhost not started
> so using DefaultActiveMQBroker instead
>  started in  1.670s
>
> Startup completed in 29.762s seconds
> java.lang.IllegalArgumentException: port out of range:-1
>at java.net.InetSocketAddress.(InetSocketAddress.java:118)
>at
>
> org.apache.geronimo.activemq.management.ActiveMQTransportConnector.getListenAddress(ActiveMQTransportConnector.java:135)
>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:597)
>at
>
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>at
>
> org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:364)
>at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:677)
>at
>
> org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:176)
>at
>
> org.apache.geronimo.system.main.StartupMonitorUtil.wrapUp(StartupMonitorUtil.java:108)
>at
>
> org.apache.geronimo.system.main.LongStartupMonitor.startupFinished(LongStartupMonitor.java:160)
>at
>
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:194)
>at
>
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
>at
>
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
>at
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
>at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Using-vm-transport-for-ActiveMQ5-3-Geronimo-2-2-tp742434p742434.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Ivan


Using vm:// transport for ActiveMQ5.3 (Geronimo 2.2)

2010-04-22 Thread easyl

I try to add a vm protocal in activemq.xml






and make a jms resource in deployment

vm://localhost?jms.copyMessageOnSend=false&jms.watchTopicAdvisories=false


while starting up application, I got such warning...

Module 77/78 My/app.ear/1.0/ear 
   
2010-04-22 11:13:12,352 WARN  [BrokerRegistry] Broker localhost not started
so using DefaultActiveMQBroker instead
2010-04-22 11:13:12,444 WARN  [BrokerRegistry] Broker localhost not started
so using DefaultActiveMQBroker instead
 started in  1.670s

Startup completed in 29.762s seconds
java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.(InetSocketAddress.java:118)
at
org.apache.geronimo.activemq.management.ActiveMQTransportConnector.getListenAddress(ActiveMQTransportConnector.java:135)
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:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:364)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java:677)
at
org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:176)
at
org.apache.geronimo.system.main.StartupMonitorUtil.wrapUp(StartupMonitorUtil.java:108)
at
org.apache.geronimo.system.main.LongStartupMonitor.startupFinished(LongStartupMonitor.java:160)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:194)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)

-- 
View this message in context: 
http://apache-geronimo.328035.n3.nabble.com/Using-vm-transport-for-ActiveMQ5-3-Geronimo-2-2-tp742434p742434.html
Sent from the Users mailing list archive at Nabble.com.


Apache Geronimo Documentation

2010-04-22 Thread Vijaya Maddela
Hi All,

How can I get dump of "Apache Geronimo Documentation" ?

 

I would like to use documentation @ offline.

 

 

Thank You

Much Respect

Vijaya Kumar Reddy.Maddela

vijay.re...@eaiesb.in

Mobile:9704179993|40-40119993

US:978-306-3751

UK:173-730-6078

www.eaiesb.in