[JBoss AOP] - Re: The use of Hotswapping
by aquatr7
Hello,
I tried the example below, but the HotSwapping doesn't work, even the example "dynamic aop" where I change it by adding the loop "for" for the first call to "execute", then I changed "SimpleInterceptor" by an other interceptor before the end of the loop "for":
| public static void main(String[] args) throws Exception
| {
| for(int i=0;i<100000;i++)
| {
| execute();
| System.out.println("--------------");
| }
| AdviceBinding binding = new AdviceBinding("execution(public * POJO->someMethod(..))", null);
| binding.addInterceptor(SimpleInterceptor.class);
| AspectManager.instance().addBinding(binding);
| execute();
| }
But the application doesn't take account of the modification and display the old interceptor "SimpleInterceptor" in the second call to "execute".
I'm using "jboss-aop_1.5.6.GA" configured under Eclipse 3.1 and I added, to run with hotSwap in "VM arguments"
anonymous wrote : -Djboss.aop.path=C:/Driverexemple/DynamicAOP/jboss-aop.xml -javaagent:C:/aop/jboss-aop_1.5.6.GA/lib-50/jboss-aop-jdk50.jar=-hotSwap
Please tell me what to do.
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184934#4184934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184934
17 years, 6 months
[JBoss Portal] - Re: Active Directory -- Unable to add portlets
by hfn
I also have the following error:
ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 178 in the jsp file: /WEB-INF/jsp/content/portlet_editor.jsp
Type mismatch: cannot convert from Object to PortletInfoInfo
175: private String getIcon(PortletInfo info)
176: {
177: String iconLocation = PortletContentEditorPortlet.DEFAULT_PORTLET_ICON;
178: PortletInfoInfo portletInfo = info.getAttachment(PortletInfoInfo.class);
179:
180: if (portletInfo != null)
181: {
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
Please let me know if anyone has any insight into this problem. This problem only occurs in JBoss-eap-4.3.
Thank you very much!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184929#4184929
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184929
17 years, 6 months
[JBoss Portal] - Re: Blank under Select content that will be added to the pag
by hfn
I also have the following error:
ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 178 in the jsp file: /WEB-INF/jsp/content/portlet_editor.jsp
Type mismatch: cannot convert from Object to PortletInfoInfo
175: private String getIcon(PortletInfo info)
176: {
177: String iconLocation = PortletContentEditorPortlet.DEFAULT_PORTLET_ICON;
178: PortletInfoInfo portletInfo = info.getAttachment(PortletInfoInfo.class);
179:
180: if (portletInfo != null)
181: {
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
Please let me know if anyone has any insight into this problem. Thank you very much!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184926#4184926
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184926
17 years, 6 months