Posts

java - Spring Autowired Exception when a remote ejb is down -

hi, have simple question not able solve. i'm using spring 3 lookup remote ejbs , added lazy-init=true bean definition because application must starting if ejb down. unfortunately controller when autowiring of ejb down, "injection of autowired dependencies failed". someone can me! @autowired not lazy? it's possible, using spring, start web application if remote ejb not started?

xml - STS/Eclipse Loading Wrong Spring Beans XSD -

Image
spring tool suite (3.1.0)/eclipse loading wrong version of spring beans xsd, causing xml validation errors. i've got spring-beans 3.2.2.release on classpath maven dependency, , profile attribute of <beans> element should permissable. sadly, flags error. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <beans profile="!cloud"> [...] the following in xml catalog settings, , suggest setting resolution version 3.1.4 of spring beans. i'm not sure how can override dependency maven (that change @ time). if in spring jar see 3.1.4 xsd included in jar. in case suggest adding version number spring-beans.xsd in schemalocation. monkeyed around in xml editor validation, , found helped. with out version nu...

w3c validation - document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag -

i getting w3c validation error here mentioned element not allowed appear in context in you've placed it; other mentioned elements ones both allowed there , can contain element mentioned. might mean need containing element, or possibly you've forgotten close previous element. 1 possible cause message have attempted put block-level element (such "<p>" or "<table>") inside inline element (such "<a>", "<span>", or "<font>"). this source code <ul class="link"> <li><a href="" class="selected"><span>1<div class="clr">&nbsp;</div><label>vul postcode in </label></span></a></li> <li><a href=""><span>2<div class="clr">&nbsp;</div><label>restaurants </label></span></a></li> <li><a ...

javascript - TypeError: Property '$' of object [object Object] is not a function in jQuery 1.7.2 -

i seeing number of these errors in javascript error logs: object expected typeerror: property '$' of object [object object] not function unfortunately, cannot replicate error on of these browsers when try myself. line have highlighted 1 causing error. i have read bit "no conflict" mode , may problem here, can't see issue looking @ code below. i using jquery 1.7.2 , served server, rather cdn: <script type="text/javascript" src="/scripts/jquery/jquery-1.7.2.min.js"></script> my code: $(function() { $('.imgcell').live("mouseenter", function() { if($(this).find('a img').length > 1) { // line throws error $(this).find('a img:eq(0)').hide(); } }); }); it not appear affecting 1 specific browser either, following affected: chrome 26, chromium 25, firefox 10, firefox 14, firefox 16, firefox 20, ie 10, ie 8, ie 9, mobile safari 6 ...

Mysql left join and sum -

i have 3 table , need sum amount separately. use fields on select or clause. select i.*, x.* items left join ( select p.item_id ,sum(p.amount) saleamount ,sum(if(p.type=1,pa.amount,0)) paidamount payments p left join payment_actions pa on pa.payment_id=p.id group p.id ) x on x.item_id=i.id items table; id --- 1 payments table; id | item_id | amount --------------------------- 1 | 1 | 300 payment_actions table; id | payment_id | amount --------------------------- 1 | 1 | 100 1 | 1 | 50 the result should be; saleamount | paidamount -------------------------- 300 | 150 here easy way desired result select i.id, p.amount, pa.amount items left join (select id, item_id, sum(amount) amount payments group item_id) p on p.item_id = i.id left join (select payment_id, sum(amount) a...

iphone - Class for iOS like Android.Database.Cursor -

can tell me there class in ios development android.database.cursor in android development. i android app developer , started ios development. have tried googling couldn't decent solution. regards i think can use sqlite3 framework http://www.raywenderlich.com/913/sqlite-101-for-iphone-developers-making-our-app

html - Stop text wrapping -

on following jsfiddle: http://jsfiddle.net/oshirowanen/4fgkj/ here snippet of html have been html post here if posted whole thing: <div id="main"> <div class="inner"> <ul class="column"> <li class="one"> <ul> <li><a href="#" class="link">side menu</a></li> <li><a href="#" class="link">side menu</a></li> <li><a href="#" class="link">side menu</a></li> </ul> </li> <li class="two"> <ul> <li class="main_content"> <p>content goes here</p> </li> </ul> </li> ...