问题标签 [eclipse-virgo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
h2 - org.h2.jdbc.JdbcSQLException:数据库可能已在使用中:“被另一个进程锁定”
我正在尝试按照指示设置 Virgo 示例项目绿页(http://www.eclipse.org/virgo/documentation/greenpages-documentation-2.4.0.RELEASE/docs/html/ch02s03.html)。当我执行数据脚本时,我得到一个异常。
数据库是这样启动的:
插入在此行失败的数据的脚本:
例外是:
java - JavaMail 在 osgi 包中失败
我正在尝试使用 JavaMail 从包(在 Virgo 上运行)发送邮件,如果我在同一台机器上尝试来自简单测试 jar(不是 osgi)的相同代码,它会成功。
这是我的代码:
这是一个例外:
有任何想法吗 ?
java - 将 WAR 部署到 virgo-tomcat 服务器
在过去的几天里,我一直坚持将标准 WAR 部署到 Virgo-tomcat 服务器(版本 3.0.2)。从 eclipse 导出的标准 WAR 文件在 tomcat 上工作得很好,但在部署到 Virgo-tomcat 时就不行了。我已经阅读了用户指南和程序员指南,据我所知 - 这应该是将 WAR 部署到 VIRGO_HOME/pickup 目录(或者使用应用程序管理器)的情况。我已经尝试了这两种方法,但没有任何效果。
以下是日志的结果。
java - 使用 Spring-DM 扩展器
我需要等待一段时间才能关闭我的 OSGI 上下文。(给一些时间来完成当前正在运行的任务)。我遇到了beanshutdown.wait.time
中的属性。extenderProperties
谁能告诉我如何使用这个 OSGi 片段来实现我的目标?我想我可以将片段包附加到我现有的 OSGI 包中。
提前致谢。感谢你的帮助。
spring-security - Spring框架安全@preauthorize注释在osgi中不起作用
我正在将 osgi 与基于弹簧注释的配置一起使用。(使用 virgo 部署应用程序)
方法 impl 上的 @preauthorize 注释不起作用。
尽管没有角色,但它允许用户访问它。
如果我在界面上放置相同的注释,它会为所有用户抛出 AccessDenied 异常。例外:
这是我的配置:
我正在使用 spring-security 3.0.4.RELEASE
eclipse - 将 HttpService 与 Gemini Web 一起使用
我如何在 Gemini Web 中使用 OSGi HTTPService。
最好的问候, 凯沙夫
osgi - 无法确定文件的工件身份
我收到了导入包异常,我使用 menifist 文件解决了这个问题。但是现在我得到了其他我不知道的例外情况,我能够部署简单的捆绑包,但是这个特定的捆绑包没有从拾取目录在处女座服务器上运行。
我附上了服务器日志和我遇到的错误。
期待着听到您的意见。
清单文件
java - is it possible to block calls to System.exit through ConditionalPermissionAdmin?
The documentation is not helping at all, OSGi in Action does not have an example head to toes on how to do things. For example, I want bundle A to deny a package import from Bundle B, etc. Simple examples, from start to end - I can't find them.
But back to my question, I want to block calls to System.exit
for obvious reasons, besides "do not implement your own Security Manager", I did not get much from the Virgo forum, thus my question here.
EDIT
Since I want this to happen in Virgo, here is what I have tried:
What I did first in Virgo ie enable the Equinox Security Manager (because this is the one Virgo uses). The specification of the OSGi says that each container has to implement it's own Security Manager extended with a bunch of OSGi specific actions.
In case of Virgo this is Equinox Security Manager. Enabling it is pretty easy - just add two lines in bin/dmk.sh and thus you have it.
Ok, so I do have the ConditionalPermissionAdmin - good! Now, I can for example, add a Security Check, like, BundlePermission say for a Bundle. Sure, but that happens for bundle specific actions, like start/stop/export, etc etc. I can't seem to figure out how to do it for a LifeCycle action - System.exit in my case.
btw, I use version 4.2.0 of the osgi-core, and nope I can't upgrade to 4.3.0, at least not now.
java - @Configurable servlet 的 @Autowired 问题
我正在尝试通过以下方式将类自动装配到 WebSocketServlet 中:
这是我的配置:
请注意,只要我在 Spring 中, autowire 就可以正常工作@Controller
。我不得不走出那一步,因为我不知道如何将 WebSocketsServlet 映射到@Controller
您使用常规 servlet 的方法。
知道我可能会错过什么吗?
plugins - Intellij IDEA 11 和 Virgo 3.5
我们的项目已经从 Virgo 2 切换到 Virgo 3.5,令我深感沮丧的是,IDEA 的“dmServer”插件版本 0.9.5 似乎不支持这个版本。
因此,我正在寻找一些遇到相同问题的工程师,以听取任何指示和可能的解决方法。我们预期 IDEA\Virgo 集成的主要价值显然是调试代码的能力。
提前致谢!