Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3439222
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:16:59+00:00 2026-05-18T08:16:59+00:00

I get this error on my application when i try to run in Tomcat,

  • 0

I get this error on my application when i try to run in “Tomcat”, in WEBrick works fine:

SEVERE: Application Error
org.jruby.rack.RackInitializationException: wrong # of arguments(0 for 1)
from /home/gpereira/apache/apache-tomcat-6.0.18/webapps/vtsbackoffice/WEB-INF/app/controllers/application_controller.rb:5

and in line 5 i have the import :

5  import javax.xml.bind.JAXBContext
6  import javax.xml.bind.Unmarshaller

I am using Rails version 3, jruby 1.5.1, JWSD2.0 installed. O.S. : Ubuntu

I need this because i am connecting: REST API and i have XSD files.

What i was capable to find:

If i try to put other class for example “javaxii.kkk”, it gives me not found. When i put that import and remove jar files from my app lib it still get me the error!!!! So he find something that i don’t want…

I try to install JWSDP2.0 in TOMCAT, but it seems that don’t work either. same error…

so i am desperate to find something that first loads me jar and after this add tomcat class…

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:16:59+00:00Added an answer on May 18, 2026 at 8:16 am

    The problem was that in my config/environment.rb

    I was writing

    load RAILS_ROOT + "/lib/mypack.jar" 
    

    and i change to this :

    load "#{RAILS_ROOT}/lib/mypack.jar" 
    

    and now it works in tomcat/jboss/weblogic/webrick…

    I don’t get why he give me errors on imports instead on environment.rb, but what is important is that now it works just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when I run the application Incorrect syntax near 12 ,
when i run my application it is the error i get... This application has
Whe I try to run my site locally I get this error: Description: The
I get this error when trying to load a Zend Framework application: Fatal error:
I get this error when compiling a C# application. Looks like a trivial error,
When I go to the path: /genre/new in my application I get this error:
I get this error while accessing a php script: W/System.err: Error reading from ./org/apache/harmony/awt/www/content/text/html.class
I get this error when i try to upload an image: OSError at /upload/
I get this error when I run the code below. I have normally used
I get this error when I try to deploy to Google AppEngine: com.google.apphosting.utils.config.AppEngineConfigException: XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.