• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in deploying

 
Naveena Kotte
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you will get a better answer there in Weblogic Forum.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed.
Moved to the Weblogic forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic