File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes problem in deploying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "problem in deploying" Watch "problem in deploying" New topic
Author

problem in deploying

Naveena Kotte
Greenhorn

Joined: Jan 23, 2006
Posts: 2
hi
i have problem in deploying,when I deploying Servlet in weblogicbuilder(8.1)


gives a exception


weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 9
Module: rootError: [HTTP:101179][HTTP] Error occurred while parsing descriptor in Web application "M:\root" [Path="M:\", URI="root"
weblogic.xml.dom.DOMProcessingException: Neither principal-names nor externally-defined element specified for security-role-assignment

at weblogic.servlet.internal.dd.SecurityRoleAssignment.<init>(SecurityRoleAssignment.java:73)

at weblogic.servlet.internal.dd.WLWebAppDescriptor.<init>(WLWebAppDescriptor.java:147)

at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebLogicXml(DescriptorLoader.java:742)

at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:433)

at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:327)

at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:554)

at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1405)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1230)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1077)

at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2530)

at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2480)

at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)

at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)

at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)

at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)

at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)



weblogic.xml.dom.DOMProcessingException: Neither principal-names nor externally-defined element specified for security-role-assignment
weblogic.xml.dom.DOMProcessingException: Neither principal-names nor externally-defined element specified for security-role-assignment

at weblogic.servlet.internal.dd.SecurityRoleAssignment.<init>(SecurityRoleAssignment.java:73)

at weblogic.servlet.internal.dd.WLWebAppDescriptor.<init>(WLWebAppDescriptor.java:147)

at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebLogicXml(DescriptorLoader.java:742)

at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:433)

at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:327)

at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:554)

at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1405)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1230)

at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1077)

at weblogic.managem


my servlet is:


import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class A extends HttpServlet
{
public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
{
PrintWriter out=response.getWriter();
out.println("hello world");
}
}
Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

This may be a problem with your weblogic.xml
Check the <security-role-assignment> element.

(There is a special forum at the ranch (BEA/Weblogic) for weblogic related problems.)


[My Blog]
All roads lead to JavaRanch
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
I guess you will get a better answer there in Weblogic Forum.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Agreed.
Moved to the Weblogic forum.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in deploying