Ayaz Pasha

Greenhorn
+ Follow
since Jun 09, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ayaz Pasha

Hi

I am trying to run an applet in browser & getting the below error

java.lang.SecurityException: trusted loader attempted to load sandboxed resource from file:/C:/workspaces/workspace1/sample/bin/
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.checkResource(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Ausnahme: java.lang.SecurityException: trusted loader attempted to load sandboxed resource from file:/C:/workspaces/workspace1/sample/bin/

I am new to applets and finding it hard to get this done, can anyone please let me know the solution.

The same applet when ran in eclipse works fine.

Thnks in advance
Ayaz
11 years ago
This is how I am defining it in my portlet-spring.xml, thanks for the help in advance..


<bean id="com.mpower.common.addressbookdemo.service.AddressLocalServiceFactory" class="com.mpower.common.addressbookdemo.service.AddressLocalServiceFactory" lazy-init="true">
<property name="service">
<ref bean="com.mpower.common.addressbookdemo.service.AddressLocalService.transaction" />
</property>
</bean>
I have series of exceptions being thrown, I am posting some of it here, looking for help...

11:09:22,208 ERROR [PortletServlet:60] javax.portlet.PortletException: javax.servlet.ServletException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.mpower.common.addressbookdemo.service.AddressServiceFactory' is defined
javax.portlet.PortletException: javax.servlet.ServletException: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'com.mpower.common.addressbookdemo.service.AddressServiceFactory' is defined
at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:268)
at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:156)
at com.mpower.common.addressbookdemo.AddressbookdemoPortlet.doView(AddressbookdemoPortlet.java:41)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:52)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
at com.liferay.portlet.InvokerPortlet.invoke(InvokerPortlet.java:534)
at com.liferay.portlet.InvokerPortlet.invokeRender(InvokerPortlet.java:605)
at com.liferay.portlet.InvokerPortlet.render(InvokerPortlet.java:373)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1381)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2290)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:749)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:169)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:104)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:281)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:194)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:808)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
I am facing the same problem, but i have defined the bean mane in my spring xml, any help???