[ANN] Resin plugin for Irida
This is the first release of the Resin Plugin for Irida.
It is a simple port of the code for 4.5 so no new features.
I haven't been able to test it very extensively as I don't
use Irida on a daily basis. However it seems to work...
/Magnus Johansson
Please sign in to leave a comment.
Starting Idea (EAP), trying to debug - Exception (debugging does not start). Then I go to Run/Debug Configurations, set/clear checkbox "Debug resin.conf", debug starts with another exception:
No message
java.lang.NullPointerException
at org.intellij.j2ee.web.resin.resin.Resin3XConfigurationStrategy.getHost(ResinConfigurationStrategy.java:200)
at org.intellij.j2ee.web.resin.resin.Resin3XConfigurationStrategy.deploy(ResinConfigurationStrategy.java:159)
at org.intellij.j2ee.web.resin.resin.ResinConfiguration.deploy(ResinConfiguration.java:51)
at org.intellij.j2ee.web.resin.ResinDeploymentProvider.doDeploy(ResinDeploymentProvider.java:29)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl$3.run(DeploymentManagerImpl.java:4)
at com.intellij.j2ee.openapi.impl.DeploymentManagerImpl.deployAllModules(DeploymentManagerImpl.java:8)
at com.intellij.j2ee.run.execution.ExecutionHelper$2.run(ExecutionHelper.java:3)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:13)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:104)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:137)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:111)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I'm trying to use your latest resinPlugin.jar (v. 2.9.1 resinPlugin.jar as of 2005-03-08) with Irida #3296.
I'm using your orignal config files resinx.conf. It can't find the variables you are referring to in the config file i.e. ${idea.http.port} et.al. Has the config file format changed?
Any assistance would be appreciated!
- T
There must be a ]]> tag in your resin.conf
Try to omit specifying a resin.conf in Application Servers or
Run Configuration
/magnus
Alexander Babaev wrote:
Yes, of course - tag ]]> is there (config file is attached).
Anyway, some message box would be better, as I think.
Attachment(s):
resinUnix.conf
v. 2.9.1 of the plugin does not work with Linux version of Idea EAP 3311.
I don't understand the need for a Resin plugin... I run Resin directly from the main() method and point it at my resin.xml file. This way it can look right at the JSP sources and my compiled classes and I don't have to copy them into a fake .war structure. The requirement for an exploded .war or actual .war file is a real weakness with the Servlet container plugins, IMO.
Plugin is better, because it allows changing resin versions, parameters, start different applications, etc.
But your solution is very interesting too. Can you write here your code for resin "debug from main()"?
I just set it up as a regular application, like this:
Main class: com.caucho.server.http.ResinServer
VM parameters:
-Dcom.sun.management.jmxremote -Dresin.home=. -Dlog4j.configuration=c:/dev/projects/template/webapp/conf/log4j.properties -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 -Dfile.encoding=UTF-8 -XX:PermSize=64M -XX:MaxPermSize=64M
Program parameters:
-conf resin.xml
Working directory:
C:\dev\projects\template\webapp
Use classpath and JDK of module:
webapp
Then I can "run" it or "debug" it with no problem and it logs directly to the console in IDEA.
Thanks a lot!
You don't need a fake WAR structure for using the plugin
Simple configure your webroot to be your exploded directory
and remove synchronization. This way it will work almost
exactly as doing it your, except that you can easily configure
ports and such.
I know that the need for a plugin is not that big...
/magnus
Jason Carreira wrote:
It doesn't work on Windows either. I'm working on it...
/magnus
Alexander Babaev wrote:
Where can we find it ?
http://plugins.intellij.net/plugins/view/?id=Resin
can't seem to find docs, though.