SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Exception when deploying into OC4J

This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 37 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Dec 5, 2011 9:00 PM Last Post By: miyao lin
Arturo

Posts: 3
Registered: 11/3/10
Exception when deploying into OC4J
Posted: Nov 3, 2010 7:14 AM
 
  Click to reply to this thread Reply
Dear all,

Am having some trouble deploying an application using compass 2.2.0 configured via Spring 3 into the ancient oracle oc4j.

The exception the server is throwing is as follows:

Operation failed with error: Error creating bean with name 'compassIndexBuilder' defined in class path resource http://applicationContext-service.xml: Cannot resolve reference to bean 'compassGps' while setting bean property 'compassGps'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compassGps' defined in class path resource http://applicationContext-dao.xml: Cannot resolve reference to bean 'compass' while setting bean property 'compass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in class path resource http://applicationContext-dao.xml: Invocation of init method failed; nested exception is org.compass.core.config.ConfigurationException: Failed to create scan factory for basePackage es/efor/ics/gev/model and url code-source:/E:/oc4j_extended_101330/j2ee/home/applications/gev-0310/web-1.0-SNAPSHOT/WEB-INF/lib/core-1.0-SNAPSHOT.jar!/es/efor/ics/gev/model; nested exception is java.net.MalformedURLException: no protocol: -source:/E:/oc4j_extended_101330/j2ee/home/applications/gev-0310/web-1.0-SNAPSHOT/WEB-INF/lib/core-1.0-SNAPSHOT.jar

I would really appreciate some insight into this issue.

Thanks
Arturo

Posts: 3
Registered: 11/3/10
Re: Exception when deploying into OC4J
Posted: Nov 3, 2010 11:02 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
I've been digging into this issue, seems that the ScannerFactory does not like the URL protocol for an entry from an OC4J jar file: "code-source".

I can see from this bit of code that the ScannerFactory is chopping the first 4 characters of the URL leaving the URL protocol as "-source" but can't understand why: from ScannerFactory.java

String urlString = url.toString();
urlString = urlString.substring(0, urlString.lastIndexOf(basePackage));
if (urlString.endsWith("!/")) {
urlString = urlString.substring(4);
urlString = urlString.substring(0, urlString.length() - 2);
url = new URL(urlString);
}

Can anybody provide with some help?

Thanks again
Arturo

Posts: 3
Registered: 11/3/10
Re: Exception when deploying into OC4J
Posted: Nov 4, 2010 5:28 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
Fixed the issue as follows:

public class ScannerFactoy {

/** Separator between JAR URL and file path within the JAR */
public static final String JAR_URL_SEPARATOR = "!/";

/** URL prefix for loading from the file system: "file:" */
public static final String FILE_URL_PREFIX = "file:";

/** URL prefix for an entry from an OC4J jar file: "code-source" */
public static final String CODE_SOURCE_URL_PREFIX = "code-source:";

public static Scanner create(String basePackage, URL url, Filter filter) throws IOException {
String urlString = url.toString();
urlString = urlString.substring(0, urlString.lastIndexOf(basePackage));
int separatorIndex = urlString.indexOf(JAR_URL_SEPARATOR);
if (separatorIndex != -1) {
urlString = urlString.substring(0, separatorIndex);
if (urlString.startsWith(CODE_SOURCE_URL_PREFIX)) {
urlString = replace(urlString, CODE_SOURCE_URL_PREFIX, FILE_URL_PREFIX, -1);
} else {
urlString = urlString.substring(4);
}
url = new URL(urlString);
}

if (!urlString.endsWith("/")) {
return new JarScanner(basePackage, url.openStream(), filter);
} else if (url.getProtocol().equals("file")) {
File f = new File(url.getPath());
if (f.isDirectory()) {
return new FileScanner(basePackage, f, filter);
} else {
return new JarScanner(basePackage, url.openStream(), filter);
}
} else if (url.getProtocol().equals("vfszip")) {
url = new URL(urlString);
return new JarScanner(basePackage, url.openStream(), filter);
} else {
throw new IOException("Protocol is not supported by scanner");
}
}

/**
* @see org.apache.commons.lang.StringUtils#replace(String, String, String, int)
*/
private static String replace(String text, String searchString, String replacement, int max) {
if ("".equals(text) || "".equals(searchString) || replacement == null || max == 0) {
return text;
}
int start = 0;
int end = text.indexOf(searchString, start);
if (end == -1) {
return text;
}
int replLength = searchString.length();
int increase = replacement.length() - replLength;
increase = (increase < 0 ? 0 : increase);
increase *= (max < 0 ? 16 : (max > 64 ? 64 : max));
StringBuffer buf = new StringBuffer(text.length() + increase);
while (end != -1) {
buf.append(text.substring(start, end)).append(replacement);
start = end + replLength;
if (--max == 0) {
break;
}
end = text.indexOf(searchString, start);
}
buf.append(text.substring(start));
return buf.toString();
}

}
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: Exception when deploying into OC4J
Posted: Aug 23, 2011 10:16 PM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
miu miu bags. It's no secret that miu miu handbags are among the most popular in the world. That's because their longstanding reputation of quality and craftsmanship coupled with their amazing ability to foresee what will happen next in fashion makes their miu miu shoes among the absolute best and most unique in the world. Our miu miu 2011 offer all the same classic attributes . you'll be turning heads with one of these on your arm , and at only a fraction of the price! (Miu Miu Handbags)Please feel free to browse our Miu Miu replica handbags in our miu miu outlet, and contact us with any questions that you may have.
factoryoutlet

Posts: 523
Registered: 10/5/11
coach factory outlet
Posted: Oct 5, 2011 9:51 PM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply

coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.coach factory store is the greatest destination to buy what type of bags you like. If you need to manage a new Coach carrier and most preferable strategy is to the coach regarding coupon codes.Here's your new way to look sophisticated styles. Carry the hot coach factory outlet store of this summer and be the true trendsetter!in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.

coach factory outlet is really sizzling kinds of shopping way for you. With the usage of the replica designer coach bags, you can surely be able to change your individual looks in a stunning manner.You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Many fashionable women match with practical Coach Purses which will make the street shopping become relaxed,and make every person can enjoy more diversiform combination in coach factory outlet online.The coach factory outlet store are utilized for formal event in company area that will display your excellent taste.Not only does a briefcase make is easier to carry things.

Almost everyone has identified effectively about this, below, among the best to make sure you will get much more information about coach outlet.In the coach outlet online shop, a collection of high quality and hottest Coach Shoulder Bags is offered to you. They are all at the best prices you will ever find.

You know, Coach items are so perfect and fascinating. Now I grow up, and find coach outlet on the Internet offering affordable products with reliable quality.Once visit, you will be unable to restrain loving it. Warmly welcome all of you to the Summer Sales Promotion on coach factory outlet.coach factory outlet has new coach laptop bags in listing. No matter which style do you want, we can provide it for you.Coach bags enjoy high popularity throughout the world. I would like to share the coach factory outlet online with you. What are you waiting for? Just come to visit.

coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.It's wonderful to find out it does not slip in your signature at the bottom of the case and the appearance of brass accents from coach outlet online, Because women who can look stylish this summer.coach outlet has a zippered closure and buckles for extra security. Shiny brass hardware, rounded leather handle, and an interior pocket. It also includes a limited edition Hawaii luggage tag and lock.You can find all kinds of coach bags whatever you chose which one in coach factory outlet online will never be out of fashion. Not only they have many nice and design styles, but also made from the finest leather and fabric.

With the great diversity of styles, patterns and sizes available nowadays, finding the right pieces to highlight your personality is quite important. coach outlet offers exactly what you want.coach factory outlet supplies the newest and most fashionable brand Coach on sale.The more Coach shoulder bags you order, the more discount you will get.Look at this golden Coach bag in the? coach factory outlet online.Those new bags with classic and fashionable design are more and more popular now!After graduating from university, my cousin came back to my hometown from USA last month. She told me that coach outlet store is very popular among her classmate.

coach outlet online own a couple of line, color, or the selected theme, it should be a good choice. It may be the place where offer the bag ladies handbag, you will be able to follow a course of education or training receives for the slim project chest strap wallet.coach outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.In particular, products from coach factory outlet with leather design are fashionable, handmade,leading the wave of American pop.It with simple,durable and unique style to win consumers.coach factory not only supply with the highest quality crystal at reasonable price but also provide good after-sales service. Companies operating purposes: science and technology in order to survive, credibility and development, strict quality control.

coach outlet handbags's special design and fashion is certainly and so eye-catching, I hope you are able to get much more attention towards the Cheap Coach Crossbody.As long as you open our coach factory outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.Are you anxious to choose some of the brand bags? Are you searching for reliable sellers? When you come to the coach factory outlet online, these are not problems.

At the coach outlet online you have the largest selection of the day. If you touch the item and like it, keep it in your possession until you make your final decision.Over the years, coach factory online has added a multitude of new handbag shapes, styles and materials to their collection. However, the highest care is taken that every Coach handbags is both aesthetically beautiful and functional.Are you searching for a cool and stylish coach bag? The coach factory outlet online Online is your first priority.

factoryoutlet

Posts: 523
Registered: 10/5/11
louis vuitton outlet
Posted: Oct 5, 2011 9:56 PM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply

louis vuitton outlet leads you to bags collection of wide, such as LV bags and LV handbag etc. They are main name in luxury and style. It is excellent quality, fine Italian technology and extraordinary beauty.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

In the past, Louis Vuitton only emphasis on classic, but in recent year, Louis Vuitton change its strategy and style to acquire new breakthrough. Especially louis vuitton bags like Louis Vuitton Vernis Wallet.Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.

Want to become more charming and faddish? Go to visit louis vuitton outlet webpage and select the most suitable products for yourself.louis vuitton outlet online may often be the consideration alternative inside of your event to get these kinds of bags.Is without a doubt louis vuitton online seriously is present? Is it possible to offer an outlet designed for Louis Vuitton merchandise speaks out?

The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Mainly because mentioned before, you could buy in the louis vuitton online, via the producer's the web outlet. Owning worn it in past times. They can supply a appropriate evaluate for the property's simplicity as well as client service description.louis vuitton outlet online is the method to show the confidence of our handbags. The person who show himself in front of other people is a confident one.

LV bags in the louis vuitton outlet are a feminine update on an urban classic. With plenty of room for all of your essentials this covetable carryall will take you through the weekend in style.LV is universally renowned as a luxury brand. louis vuitton online store offers customers the newest fashion collections which can make you different.

This collection focus more on color selection compared with other LV handbags. Cute and sunshine design style increases its charm. louis vuitton outlet online provides you the very famous luxury worldwide brand.We are glad you come to join in our louis vuitton outlet online store, because the winter is upcoming now, Louis Vuitton released many new handbags to feedback our customers.Just come to visit once the louis vuitton online, you will fall in love with its fancy bags, purses, sunglasses, shoes and so on.

pylxwzhj

Posts: 719
Registered: 10/15/11
Re: Exception when deploying into OC4J
Posted: Oct 16, 2011 3:21 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
All of

LV Bags

the proposed

Louis Vuitton Handbags

sanctions carry

Coach Outlet Store

with them

Chanel Purses

considerable political

Coach Factory Store

and economic

Coach Factory Outlet

risks. While

Chanel Bag

Yukiya Amano, the

Coach Factory Outlet

cautious director general

Chanel Purses

of the atomic

Coach Factory Store

energy agency

Coach Factory

, talked publicly

Chanel Bags

in September

Chanel Handbags

about publishing

Moncler Jackets

some of the

Louis Vuitton Handbags

most delicate

Coach Outlet

data suggesting

Chanel Bags

Iran worked on

Moncler Shop

nuclear triggers

Coach Outlet Online

and warheads, officials who have spoken with him say he is concerned that his inspectors could be ejected from Iran, shutting

Moncler Shop Online

the best, though narrow, window into its nuclear activities.Similarly, China and Russia, among other major Iranian trading partners, have resisted further oil and financial sanctions, saying the goal of isolating Iran is a poor strategy.
soccershoessale

Posts: 50
Registered: 10/21/11
Re:Cheap NFL Jerseys, NHL Jerseys
Posted: Oct 21, 2011 8:29 PM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
It will not let you down overall strive to do the
soccer shoes sale soccer shoes sale
Cheap NFL Jerseys Cheap NFL Jerseys
NHL Jerseys NHL Jerseys
soccer jerseys soccer jerseys
cheap club soccer jerseys cheap club soccer jerseys
Nike soccer shoes Nike soccer shoes
Pittsburgh Steelers Jerseys Pittsburgh Steelers Jerseys
Nnamdi Asomugha Replica Jerseys
Cam Newton Replica Jerseys
Darren Sproles Replica Jerseys
Mark Ingram Jerseys
Kevin Kolb Premier Jerseys
are all very excellent running shoes the stability of the largest provide very good buffer for runners.
Alexia

Posts: 6
Registered: 10/23/11
Supra Shoes
Posted: Oct 23, 2011 1:46 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
Our Supra Sneakers UK online store have sold many supra shoes to all over the world,if you are interested in supra shoes,you can contact us at any time.Im sure the style Supra shoes is extremely comfortable,you need to be extremely satisfied.Supra TK Society Shoes features nternal neoprene toe cap and vamp for toe protection,elastic tongue straps and thin padding with ankle support,SupraFoam midsole providing entire foot impact resistance,vulcanized gum rubber out sole,and extra heel protection molded into comfortable high memory polyurethane insole.Supra High Top Justin Bieber Shoes with classical style and unique design are very popular among young people.The Supra Shoes will make your children feel very comfortable when they are palying with friends.Here,you can order this nice shoes now,the more you order the more discount!
YUKU

Posts: 104
Registered: 11/1/11
Re: Exception when deploying into OC4J
Posted: Nov 1, 2011 4:39 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
Supra Shoes on hot sale now,we carry a large inventory from Supra Footwear, Including Supra Shoes,Supra Skytop And Supra Avenger,Supra Bandit,Supra Bullet.
aaa

Posts: 34
Registered: 11/2/11
new era hats
Posted: Nov 2, 2011 2:18 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
tot fresh now at speed up plate a stronger trade. cheap christian louboutin shoes Though fathers impinge been esteemed at unbroken enchilada times by louboutin shoes tot fresh now at speed up plate a stronger trade. tiffany jewelry knockoff Though fathers impinge been esteemed at unbroken enchilada times by tiffany jewelry on sale tot fresh now at speed up plate a stronger trade. christian louboutin uk Though fathers impinge been esteemed at unbroken enchilada times by christian louboutin shoes tot fresh now at speed up plate a stronger trade. new era nfl hats Though fathers impinge been esteemed at unbroken enchilada times by new era hat
aaa

Posts: 34
Registered: 11/2/11
louboutin shoes
Posted: Nov 2, 2011 2:19 AM   in response to: YUKU in response to: YUKU
 
  Click to reply to this thread Reply
employs fluency design, the fat frame looks need a comely christian louboutin replica mingled. The circumstances also strap adopts effulgent processing, which makes christian louboutin shoes employs fluency design, the fat frame looks need a comely tiffany jewelry mingled. The circumstances also strap adopts effulgent processing, which makes cheap tiffany jewelry employs fluency design, the fat frame looks need a comely louboutin uk online mingled. The circumstances also strap adopts effulgent processing, which makes cheap christian louboutin shoes employs fluency design, the fat frame looks need a comely new era hat mingled. The circumstances also strap adopts effulgent processing, which makes new era nfl hats
jintu

Posts: 135
Registered: 9/9/11
Re: Exception when deploying into OC4J
Posted: Nov 2, 2011 2:47 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
nce matching shocks . constitution dampen tests , each costing christian louboutin shoes officiate can withstand the consternation of first-class wares development to christian louboutin boots nce matching shocks . constitution dampen tests , each costing red soles shoes officiate can withstand the consternation of first-class wares development to cheap luxury shoes nce matching shocks . constitution dampen tests , each costing knee high lace up sandals officiate can withstand the consternation of first-class wares development to serpentine christian louboutin nce matching shocks . constitution dampen tests , each costing brian atwood officiate can withstand the consternation of first-class wares development to buy brian atwood online
lingxi

Posts: 257
Registered: 11/3/11
louis vuitton
Posted: Nov 3, 2011 3:20 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
Louis Vuitton Outlet is famous for the unique articules ,login Louis Vuitton Online Store and Louis Vuitton Handbag On Sale to buy your articles.Louis Vuitton Handbags have become the best seller in international market.such as Monogram Multicolore,Monogram Canvas Handbags.We also offer you other platforms.Owing to the various styles and models, up-to-date styling,elegant
appearance,full range of colors and designs,quality and quantity assured,The bags in Louis Vuitton Outletand Louis Vuitton Online Store sell very well both at home and abroad. Now, Login Louis Vuitton Handbag On Sale to choose your favorites. What's more,the latest commodities are renowned all over the world for exquisite workmanship, skillful knitting and elegant design,famous for selected materials, novel designs, delightful colors and exquisite workmanship. For more relevant information, please login Louis Vuitton Outlet!
lingxi

Posts: 257
Registered: 11/3/11
coach outlet online store
Posted: Nov 3, 2011 3:22 AM   in response to: Arturo in response to: Arturo
 
  Click to reply to this thread Reply
Login Coach Outlet. Coach Outlet Online Store has become a most popular platform to purchase your favourites. You know, Coach handbags Outlet USA has become more and more popular with the excellent quality and attractive price,quality and quantity assuerd, selected materials. Also,Coach Wallets,Coach Jewelry in Coach Outlet and Coach Outlet Online Store sell very well in international market for its fantastic specifications and designs. What's more ,the good after-sale service makes these articles more competitive compared with others. login Coach Outlet,You are assured to find you ideal articles !
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums