# Warbler Help

**URL:** <https://www.ruby-forum.com/t/warbler-help/140084>\
**Category:** JRuby\
**Created:** [June 10, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/warbler-help/140084 "2008-06-10T17:48:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [June 10, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/1 "2008-06-10T17:48:12Z")

</div>

Hello,

I have packaged up a simple Rails project into a .war file and deployed  
it  
to BEA Weblogic but I get an error and am not able to access it. I  
tried  
using warbler through a gem and a plugin and added all the gems that  
were in  
the Rails project. I am using Rails 1.2.5 with the newest version of  
warbler. Below is the stack trace:

Application initialization failed: private method `chomp' called for nil:NilClass from /localhome/csmchoi/dev/frameworks/bea/wl10/user_projects/domains/m1033_domain/servers/AdminServer/tmp/_WL_user/_appsdir_ImageLibrary_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/jruby/rack/servlet_helper.rb:109:in `new’ from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/jruby/rack/servlet\_helper.rb:109:in  
`instance' from /localhome/csmchoi/dev/frameworks/bea/wl10/user_projects/domains/m1033_domain/servers/AdminServer/tmp/_WL_user/_appsdir_ImageLibrary_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/file.rb:165:in `new’ from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:22:in  
`instance_eval' from /localhome/csmchoi/dev/frameworks/bea/wl10/user_projects/domains/m1033_domain/servers/AdminServer/tmp/_WL_user/_appsdir_ImageLibrary_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:22:in `initialize’ from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/jruby/rack/servlet\_helper.rb:163:in  
`new' from /localhome/csmchoi/dev/frameworks/bea/wl10/user_projects/domains/m1033_domain/servers/AdminServer/tmp/_WL_user/_appsdir_ImageLibrary_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/jruby/rack/servlet_helper.rb:163:in `new’ from :1 from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:22:in  
`instance_eval' from /localhome/csmchoi/dev/frameworks/bea/wl10/user_projects/domains/m1033_domain/servers/AdminServer/tmp/_WL_user/_appsdir_ImageLibrary_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:22:in `initialize’ from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:1:in  
`new’ from  
/localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/rack/builder.rb:1

Thank you very much!

–  
View this message in context:  
[http://www.nabble.com/Warbler-Help-tp17758656p17758656.html](http://www.nabble.com/Warbler-Help-tp17758656p17758656.html)  
Sent from the JRuby - User mailing list archive at [Nabble.com](http://Nabble.com).

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [June 10, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/2 "2008-06-10T18:22:22Z")

</div>

On Tue, Jun 10, 2008 at 10:47 AM, FluidCoder [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> nil:NilClass from  
> /localhome/csmchoi/dev/frameworks/bea/wl10/user\_projects/domains/m1033\_domain/servers/AdminServer/tmp/\_WL\_user/\_appsdir\_ImageLibrary\_war/2lmf0a/war/WEB-INF/lib/jruby-rack-0.9.jar!/jruby/rack/servlet\_helper.rb:109:in  
> `new’ from

It looks like Weblogic is returning null from the call to  
ServletContext.getRealPath(String). Any idea why that would be? We  
need to know where on disk the war is deployed so we can set some  
paths.

/Nick

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [June 10, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/3 "2008-06-10T18:31:12Z")

</div>

Hi Nick,

Thank you very much for your quick response. Do you need to know the  
full  
path or what? I placed it in the Autodeploy directory of the main  
project  
just as I do for all of the other .war files.

I will look into why its returning a null. Could it have been the way I  
built the Rails .war?

/Charlie

Nick S.-2 wrote:

> > the Rails project. I am using Rails 1.2.5 with the newest version of  
> > paths.

–  
View this message in context:  
[http://www.nabble.com/Warbler-Help-tp17758656p17759570.html](http://www.nabble.com/Warbler-Help-tp17758656p17759570.html)  
Sent from the JRuby - User mailing list archive at [Nabble.com](http://Nabble.com).

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [June 10, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/4 "2008-06-10T19:24:14Z")

</div>

On Tue, Jun 10, 2008 at 11:30 AM, FluidCoder [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi Nick,
> 
> Thank you very much for your quick response. Do you need to know the full  
> path or what? I placed it in the Autodeploy directory of the main project  
> just as I do for all of the other .war files.
> 
> I will look into why its returning a null. Could it have been the way I  
> built the Rails .war?

I doubt it has anything to do with the way you built it. I guess this  
is JRuby-Rack’s fault, since the servlet docs say that the method can  
return null if the path translation can’t be performed. I just hadn’t  
seen it happen yet until now.

The only workaround for now that I can suggest is to use a different  
servlet container – Glassfish or Tomcat don’t appear to have this  
problem. If you can research on the weblogic side why they don’t  
perform the path translation, that would be good to know as well.

Cheers,  
/Nick

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [July 14, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/5 "2008-07-14T14:08:27Z")

</div>

Hi Nick

Nick S. wrote:

> The only workaround for now that I can suggest is to use a different  
> servlet container – Glassfish or Tomcat don’t appear to have this  
> problem. If you can research on the weblogic side why they don’t  
> perform the path translation, that would be good to know as well.

I am in the process of deploying my app on Tomcat and got the same  
exception thrown at me. I use the Context fragment method of  
configuration so there is a ROOT.xml. Maybe it is related. I hope to  
find out more today…

(tomcat 5.5.25,warbler 0.9.9)

^ Ernest

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [August 10, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/6 "2008-08-10T15:36:06Z")

</div>

Ernest Micklei wrote:

> Ernest Micklei wrote:
> 
> > Hi Nick
> > 
> > Nick S. wrote:
> > 
> > > The only workaround for now that I can suggest is to use a different  
> > > servlet container – Glassfish or Tomcat don’t appear to have this  
> > > problem. If you can research on the weblogic side why they don’t  
> > > perform the path translation, that would be good to know as well.
> > 
> > I am in the process of deploying my app on Tomcat and got the same  
> > exception thrown at me. I use the Context fragment method of  
> > configuration so there is a ROOT.xml. Maybe it is related. I hope to  
> > find out more today…
> > 
> > (tomcat 5.5.25,warbler 0.9.9)
> > 
> > ^ Ernest
> 
> Just an update to my reply earlier today.  
> From the docs:
> 
> “The real path returned will be in a form appropriate to the computer  
> and operating system on which the servlet container is running,  
> including the proper path separators. This method returns null if the  
> servlet container cannot translate the virtual path to a real path for  
> any reason (such as when the content is being made available from a .war  
> archive).”
> 
> This applies to my situation. I was running the application from an  
> unpacked WAR file in Tomcat. Appearantly, the Jetty engine had no  
> problems with this setup.

I wrote a jRuby rack patch for the weblogic related issue when deploying  
an application from a WAR-File. The patch contains a fallback mechanism  
if getRealPath returns null and is not specifically bound to Weblogic.  
So if other web containers have the same issue, the patch might help  
here too.

See my bug report for the patch and more details:  
[http://jira.codehaus.org/browse/JRUBY-2908](http://jira.codehaus.org/browse/JRUBY-2908)

Best  
Joern

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [July 14, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/7 "2008-07-14T20:23:55Z")

</div>

Ernest Micklei wrote:

> Hi Nick
> 
> Nick S. wrote:
> 
> > The only workaround for now that I can suggest is to use a different  
> > servlet container – Glassfish or Tomcat don’t appear to have this  
> > problem. If you can research on the weblogic side why they don’t  
> > perform the path translation, that would be good to know as well.
> 
> I am in the process of deploying my app on Tomcat and got the same  
> exception thrown at me. I use the Context fragment method of  
> configuration so there is a ROOT.xml. Maybe it is related. I hope to  
> find out more today…
> 
> (tomcat 5.5.25,warbler 0.9.9)
> 
> ^ Ernest

Just an update to my reply earlier today.  
From the docs:

“The real path returned will be in a form appropriate to the computer  
and operating system on which the servlet container is running,  
including the proper path separators. This method returns null if the  
servlet container cannot translate the virtual path to a real path for  
any reason (such as when the content is being made available from a .war  
archive).”

This applies to my situation. I was running the application from an  
unpacked WAR file in Tomcat. Appearantly, the Jetty engine had no  
problems with this setup.

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [October 21, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/warbler-help/140084/8 "2008-10-21T19:04:21Z")

</div>

Joern Hartmann wrote:

> Ernest Micklei wrote:
> 
> > Ernest Micklei wrote:
> > 
> > > Hi Nick
> > > 
> > > Nick S. wrote:
> > > 
> > > > The only workaround for now that I can suggest is to use a different  
> > > > servlet container – Glassfish or Tomcat don’t appear to have this  
> > > > problem. If you can research on the weblogic side why they don’t  
> > > > perform the path translation, that would be good to know as well.
> > > 
> > > I am in the process of deploying my app on Tomcat and got the same  
> > > exception thrown at me. I use the Context fragment method of  
> > > configuration so there is a ROOT.xml. Maybe it is related. I hope to  
> > > find out more today…
> > > 
> > > (tomcat 5.5.25,warbler 0.9.9)
> > > 
> > > ^ Ernest
> > 
> > Just an update to my reply earlier today.  
> > From the docs:
> > 
> > “The real path returned will be in a form appropriate to the computer  
> > and operating system on which the servlet container is running,  
> > including the proper path separators. This method returns null if the  
> > servlet container cannot translate the virtual path to a real path for  
> > any reason (such as when the content is being made available from a .war  
> > archive).”
> > 
> > This applies to my situation. I was running the application from an  
> > unpacked WAR file in Tomcat. Appearantly, the Jetty engine had no  
> > problems with this setup.
> 
> I wrote a jRuby rack patch for the weblogic related issue when deploying  
> an application from a WAR-File. The patch contains a fallback mechanism  
> if getRealPath returns null and is not specifically bound to Weblogic.  
> So if other web containers have the same issue, the patch might help  
> here too.
> 
> See my bug report for the patch and more details:  
> [http://jira.codehaus.org/browse/JRUBY-2908](http://jira.codehaus.org/browse/JRUBY-2908)
> 
> Best  
> Joern

I tried building the patch in  
[http://jira.codehaus.org/browse/JRUBY-2908](http://jira.codehaus.org/browse/JRUBY-2908), and used  
[c a l d e r s p h e r e . n e t](http://caldersphere.net/jruby-rack/jruby-buildr.tar.gz) to package the  
jar file. I got the error below (Error 1). Then I used my jruby  
installation and got error below (Error 2). Please help. Thanks.

# Error 1:

$ /cygdrive/d/jruby-buildr/bin/jruby.bat -S buildr package --trace  
D:/jruby-buildr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require ': no such file to load -- dl/import (LoadError) from D:/jruby-buildr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:2 7:in `require’  
from  
D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/au  
thentication/pageant.rb:1:in  
`D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0 .1/lib/net/ssh/authentication/pageant.rb' from D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/au thentication/pageant.rb:27:in `require’  
from  
D:/jruby-buildr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:2  
7:in `require' from D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/au thentication/agent.rb:6:in `D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1  
/lib/net/ssh/authentication/agent.rb’  
from  
D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/au  
thentication/agent.rb:27:in `require' from D:/jruby-buildr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:2 7:in `require’  
from  
D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh-2.0.1/lib/net/ssh/au  
thentication/key\_manager.rb:4:in  
`D:/jruby-buildr/lib/ruby/gems/1.8/gems/net-ssh -2.0.1/lib/net/ssh/authentication/key_manager.rb' ... 11 levels... from D:/jruby-buildr/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/buil dr:19:in `D:/jruby-buildr/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/buildr’

```
    from 

```

D:/jruby-buildr/lib/ruby/gems/1.8/gems/buildr-1.3.1.1-java/bin/buil  
dr:19:in `load’  
from D:/jruby-buildr/bin/buildr:19

# Error 2:

$ jruby -S buildr package --trace  
(in d:/workspace/rack\_weblogic\_workaround, development)  
\*\* Invoke buildr:initialize (first\_time)  
\*\* Execute buildr:initialize  
\*\* Invoke jruby-rack (first\_time)  
\*\* Execute jruby-rack  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.ja  
r (first\_time, not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant  
-launcher-1.7.1.jar (first\_time, not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/apache/ant/ant-trax/1.7.1/ant-tra  
x-1.7.1.jar (first\_time, not\_needed)  
\*\* Invoke  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/jav  
a (first\_time, not\_needed)  
\*\* Invoke jruby-rack  
\*\* Invoke package (first\_time)  
\*\* Invoke build (first\_time)  
\*\* Execute build  
Building jruby-rack  
\*\* Invoke jruby-rack:build (first\_time)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/classes  
(first\_time, not\_  
needed)  
\*\* Invoke jruby-rack:compile (first\_time, not\_needed)  
\*\* Invoke jruby-rack:resources (first\_time)  
\*\* Invoke jruby-rack:unpack\_gems (first\_time)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target (first\_time,  
not\_needed)  
\*\* Execute jruby-rack:unpack\_gems  
\*\* Execute jruby-rack:resources  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/javax/servlet/servlet-api/2.3/servlet  
-api-2.3.jar (first\_time, not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/jruby/jruby-complete/1.1.3/jruby-  
complete-1.1.3.jar (first\_time, not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/src/main/java  
(first\_time, not\_n  
eeded)  
Testing needed. Latest prerequisite change: Tue Oct 21 12:54:08 +0800  
2008 (d:/w  
orkspace/rack\_weblogic\_workaround/buildfile). Last successful test run:  
.  
\*\* Invoke jruby-rack:test (first\_time)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/buildfile (first\_time,  
not\_neede  
d)  
\*\* Invoke jruby-rack:test:compile (first\_time, not\_needed)  
\*\* Invoke jruby-rack:compile (not\_needed)  
\*\* Invoke jruby-rack:test:resources (first\_time)  
\*\* Execute jruby-rack:test:resources  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/classes  
(not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/resources  
(first\_time, no  
t\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/javax/servlet/servlet-api/2.3/servlet  
-api-2.3.jar (not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/jruby/jruby-complete/1.1.3/jruby-  
complete-1.1.3.jar (not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/classes  
(not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/resources  
(not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/javax/servlet/servlet-api/2.3/servlet  
-api-2.3.jar (not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/jruby/jruby-complete/1.1.3/jruby-  
complete-1.1.3.jar (not\_needed)  
Testing needed. Latest prerequisite change: Wed Oct 22 00:19:27 +0800  
2008 (d:/w  
orkspace/rack\_weblogic\_workaround/target/classes). Last successful test  
run: .  
\*\* Invoke jruby-rack:test:setup (first\_time)  
\*\* Execute jruby-rack:test:setup  
\*\* Execute jruby-rack:test  
Running tests in jruby-rack  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/classes  
(not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround/target/resources  
(not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/javax/servlet/servlet-api/2.3/servlet  
-api-2.3.jar (not\_needed)  
\*\* Invoke  
C:/cygwin/home/rd/.m2/repository/org/jruby/jruby-complete/1.1.3/jruby-  
complete-1.1.3.jar (not\_needed)  
\*\* Invoke d:/workspace/rack\_weblogic\_workaround (first\_time, not\_needed)  
\*\* Invoke D:/jruby-1.1.4/lib/bsf.jar (first\_time)  
\*\* Execute D:/jruby-1.1.4/lib/bsf.jar  
\*\* Invoke D:/jruby-1.1.4/lib/jruby.jar (first\_time)  
\*\* Execute D:/jruby-1.1.4/lib/jruby.jar  
\*\* Invoke D:/jruby-1.1.4/lib/profile.jar (first\_time)  
\*\* Execute D:/jruby-1.1.4/lib/profile.jar  
Running java org.jruby.Main  
d:/cygdrive/d/jdk1.6.0\_10/bin/java -classpath  
d:/workspace/rack\_weblogic\_workaro  
und/target/classes;d:/workspace/rack\_weblogic\_workaround/target/resources;C:/cyg  
win/home/rd/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar;C:/  
cygwin/home/rd/.m2/repository/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.  
3.jar;d:/workspace/rack\_weblogic\_workaround;D:/jruby-1.1.4/lib/bsf.jar;D:/jruby-  
1.1.4/lib/jruby.jar;D:/jruby-1.1.4/lib/profile.jar  
-Djruby.home=D:/jruby-1.1.4 -  
Xmx512m org.jruby.Main  
d:/workspace/rack\_weblogic\_workaround/target/spec/runner.  
rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/cgi/session/java\_servlet\_  
store\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/jruby/rack/mer  
b\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/jruby/rack/rails\_s  
pec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/jruby/rack/servlet\_ex  
t\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/jruby/rack/servlet  
_helper\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/adapter  
/rails\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/applicat  
ion\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/dispatcher_  
spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/filter\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/handler/servlet\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/rails/rails\_applicatio  
n\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/servlet\_conte  
xt\_listener\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/ser  
vlet\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/rack/tag\_spec.r  
b  
Error opening script file: d:/cygdrive/d/jdk1.6.0\_10/bin/java -classpath  
d:/work  
space/rack\_weblogic\_workaround/target/classes;d:/workspace/rack\_weblogic\_workaro  
und/target/resources;C:/cygwin/home/rd/.m2/repository/javax/servlet/servlet-api/  
2.3/servlet-api-2.3.jar;C:/cygwin/home/rd/.m2/repository/org/jruby/jruby-complet  
e/1.1.3/jruby-complete-1.1.3.jar;d:/workspace/rack\_weblogic\_workaround;D:/jruby-  
1.1.4/lib/bsf.jar;D:/jruby-1.1.4/lib/jruby.jar;D:/jruby-1.1.4/lib/profile.jar  
-D  
jruby.home=D:/jruby-1.1.4 -Xmx512m org.jruby.Main  
d:/workspace/rack\_weblogic\_wor  
karound/target/spec/runner.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/rub  
y/cgi/session/java\_servlet\_store\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/s  
rc/spec/ruby/jruby/rack/merb\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/s  
pec/ruby/jruby/rack/rails\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec  
/ruby/jruby/rack/servlet\_ext\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/s  
pec/ruby/jruby/rack/servlet\_helper\_spec.rb  
d:/workspace/rack\_weblogic\_workaround  
/src/spec/ruby/rack/adapter/rails\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/  
src/spec/ruby/rack/application\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src  
/spec/ruby/rack/dispatcher\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spe  
c/ruby/rack/filter\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/r  
ack/handler/servlet\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/spec/ruby/  
rack/rails/rails\_application\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/src/s  
pec/ruby/rack/servlet\_context\_listener\_spec.rb  
d:/workspace/rack\_weblogic\_workar  
ound/src/spec/ruby/rack/servlet\_spec.rb  
d:/workspace/rack\_weblogic\_workaround/sr  
c/spec/ruby/rack/tag\_spec.rb (The filename, directory name, or volume  
label synt  
ax is incorrect)  
\*\* Invoke jruby-rack:test:teardown (first\_time)  
\*\* Execute jruby-rack:test:teardown  
Exception while invoking prerequisites of task \<Rake::Task  
jruby-rack:build =\> [  
d:/workspace/rack\_weblogic\_workaround/target/classes, jruby-rack:test]\>  
Exception while invoking prerequisites of task \<Rake::Task package =\>  
[build]\>  
[Failed] Your build failed with an error:  
d:/workspace/rack\_weblogic\_workaround:

Failed to execute java org.jruby.Main, see errors above  
buildr aborted!  
â†[31mFailed to execute java org.jruby.Main, see errors aboveâ†[0m  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:478:in `invoke\_with\_call\_chain’  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:468:in `invoke\_with\_call\_chain’  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:463:in `invoke’  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in  
`invoke\_tas  
k’  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top\_level’

D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`each' D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top\_level’

D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:321:in `standard_exception_handling' D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top\_level’

D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:170:in `run' D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat ion.rb:321:in `standard\_exception\_handling’  
D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/lib/buildr/core/applicat  
ion.rb:161:in `run' D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/bin/buildr:20 D:/jruby-1.1.4/lib/ruby/gems/1.8/gems/buildr-1.3.3-java/bin/buildr:19:in `load’  
D:/jruby-1.1.4/bin/buildr:19

---

<div class="post-metadata">

**Author:** ![FluidCoder](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FluidCoder](https://www.ruby-forum.com/u/FluidCoder)\
**Post date:** [October 22, 2008, 9:41am UTC](https://www.ruby-forum.com/t/warbler-help/140084/9 "2008-10-22T09:41:48Z")

</div>

I modified servlet\_helper.rb as posted in diff file of Joern, manually  
created the jar file, warble war and deployed to weblogic 10. Works  
well! Maybe my error in previous post has something to do with  
environment or the build  
file?
