Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

reflection - WebSphere wsadmin ClassNotFound Exceptions -


i'm trying use wsadmin jython deploy ear file. before actual deployment, need run db update using java class. i'm running classnotfoundexception isn't making sense me.

background: ear file exploded. wsadmin tool started following options:

-wsadmin_classpath %cp% -javaoption -dpython.path=%cp% 

both of point same classpath, contains necessary jars.

the jython script gets connection database, , calls utility class create database script. utility class uses reflection load other classes classpath (that hard-and-fast requirement of library using, can't changed). looks this:

from liquibase import liquibase  def main(args):     conn = getconnection(args)     updater = liquibase(conn)     updater.update() 

during update() method, liquibase uses reflection instantiate java classes. classnotfoundexception, example classnotfoundexception: com.foo.customupdate

in script, can import com.foo.customupdate class , no errors:

from com.foo import customupdate c = customupdate("select 1") print c.getupdate() 

so know class on classpath. idea has reflection aspect of library using. has else run against this?

my other idea, if above unfixable, split things out shell script , use java run db update , wsadmin deploy ear.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -