首页 \ 问答 \ 自定义介体ClassNotFoundException TransactionSynchronization(Custom Mediator ClassNotFoundException TransactionSynchronization)

自定义介体ClassNotFoundException TransactionSynchronization(Custom Mediator ClassNotFoundException TransactionSynchronization)

我创建了一个自定义中介类,它使用spring jdbc来访问数据库中的数据。
我从该类创建一个jar并将其部署在WSO2_HOME / repository / components / lib中。
之后,我将以下jar添加到同一文件夹:
春天了jdbc.jar,
弹簧tx.jar。

但是,当我尝试自定义中介时,出现错误“ClassNotFoundException org \ springframework \ transaction \ support \ TransactionSynchronization”。

问题是我很确定spring-tx.jar中提供了“TransactionSynchronization”类。 任何人都可以帮我解决这个问题吗? :)


I make a custom mediator class that used spring jdbc to access data from database.
I make a jar from that class and deploy it in WSO2_HOME/repository/components/lib.
After that I add the following jar to the same folder :
spring-jdbc.jar,
spring-tx.jar.

But when I tried the custom mediator there is an error "ClassNotFoundException org\springframework\transaction\support\TransactionSynchronization".

The problem is I'm pretty sure that "TransactionSynchronization" class is available in the spring-tx.jar. Can anyone help me to solve this problem? :)


原文:https://stackoverflow.com/questions/17876698
更新时间:2024-02-10 20:02

最满意答案

您的代码假定支持File API。 支持File API的IE的第一个版本是IE10。 您的代码将永远不会像现在一样跨浏览器工作。

考虑使用Fine Uploader ,它已经跨浏览器处理上传,并包含许多有用的功能。


Your code assumes support for the File API. The first version of IE to support the File API is IE10. Your code will never work cross-browser as it stands now.

Consider using Fine Uploader which already handles uploads cross-browser and includes a number of useful features.

相关问答

更多
  • 这段代码应该可以做到。 对不起很久以前,我认为IE9也可以使用XHR上传(它应该,但这是Iframe选项)。 它执行以下操作: 添加一个文件输入到你的页面(也可以在HTML中完成) 将该文件选择器放在一个表单中 向表单添加凭据 将表单提交给iframe并将其页面用作返回值。 fileSelection = document.createElement("div"); //create the file input fileSelection.browseSelect = document.createEl ...
  • 这不是太难了 首先,看看FileReader接口 。 所以,当提交表单时,抓住提交过程 var file = document.getElementById('fileBox').files[0]; //Files[0] = 1st file var reader = new FileReader(); reader.readAsText(file, 'UTF-8'); reader.onload = shipOff; //reader.onloadstart = ... //reader.onprogre ...
  • 这个JavaScript文件的Github托管版本下载了text/plain mime-type。 如果您要在本地托管该文件,则不会出现此问题,因为内容类型为text/javascript 。 同样的规则也适用于CSS。 进一步阅读: Internet Explorer中的MIME处理更改 The Github-hosted version of this JavaScript file comes down with the text/plain mime-type. If you were to hos ...
  • 我通过ajax使用这个库来处理fileupload: https : //github.com/blueimp/jquery-file-upload 。 它与IE 9很好地协作,如果你使用重定向帧,它甚至可以支持CORS。 谷歌浏览器 Apple Safari 4.0+ Mozilla Firefox 3.0+ Opera 11.0+ Microsoft Internet Explorer 6.0+ 它还支持你所说的formData我认为: https://github.com/blueimp/jQuery ...
  • 您的代码假定支持File API。 支持File API的IE的第一个版本是IE10。 您的代码将永远不会像现在一样跨浏览器工作。 考虑使用Fine Uploader ,它已经跨浏览器处理上传,并包含许多有用的功能。 Your code assumes support for the File API. The first version of IE to support the File API is IE10. Your code will never work cross-browser as it ...
  • 根据Firefox和IE9,MP3文件“已损坏”。 当然,没有办法判断文件是否真的“损坏”,因为它在Chrome中播放正常。 The MP3 file was "corrupted" according to Firefox and IE9. Of course, there is no way to tell if a file is actually "corrupted" as it plays fine in Chrome.
  • 所以你要将reader.onload事件设置为一个函数,但是你需要调用reader.readAsText()函数。 例如,将代码更改为: reader.onload = function(event) { console.log(event); }; reader.readAsText(file); 这样做的目的是告诉reader ,当你调用reader.readAsText(file)它应该运行你用reader.onload定义的函数。 你以前做过的事情永远不会加载文件,因为你只是告诉读者在函数回调 ...
  • 文件API仍然是“工作草案”。 Internet Explorer 10将支持File API(原型) 更多详细信息 File API is still a 'Working Draft'. Internet Explorer 10 will support File API (prototype) More Details
  • 嗯,我认为有可能,根据JayC回答的这个问题 您所谈论的是HTML5文件API。 我不确定描述它的最佳链接是什么,但这可能有所帮助。 https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications 这个问题也许可以帮到你 Well, I think it is possible, according to this question answered by JayC What you're talking about is ...
  • 您对Gmail的引用,特别是指向解决方案的方向:当您单击电子邮件中的链接时,Gmail会从HTTP标题中删除引荐来源数据,除非您使用鼠标右键并选择“在新建中打开” Tab [或Window]“,大概是因为这可以防止他们的代码拦截标题。 您的脚本是否有机会检查有效的HTTP REFERRER? 您正在进行任何跨(子)域或跨协议的AJAX调用吗? 如果是这样,那么您可能必须代理请求。 请考虑Yahoo!的以下解决方案! 开发者网络: http : //developer.yahoo.com/javascript ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)