Error: Invalid element 'servlet' in content of 'web-app'

Hi,
I m working on a project that includes JSPs, whenever I wanna add JSP to my project it shows following compilation error:
Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'
I have thoroughly checked the web.xml. It is perfectly alright. It is as follows:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>myServlet</servlet-name>
<servlet-class>com.project.MainServlet</servlet-class>
<init-param>
Long postings are being truncated to ~1 kB at this time.

The Complete web.xml is as follows:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>montana</servlet-name>
<servlet-class>com.masstech.montana.boundary.uii.MainServlet</servlet-class>
<init-param>
<param-name>db</param-name>
<param-value>MontanaDS</param-value>
</init-param>
<init-param>
<param-name>user</param-name>
<param-value>MS</param-value>
</init-param>
<init-param>
<param-name>password</param-name>
<param-value>MS</param-value>
</init-param>
</servlet>
<servlet>
<servlet-n[i]Long postings are being truncated to ~1 kB at this time.

Similar Messages

  • Invalid element 'servlet' in content of 'web-app', expected elements [.....

    I'm receiving the following error when I build a web app.
    Invalid element 'servlet' in content of 'web-app', expected elements [.....
    I have been trying to configure cactus struts testing as described here:
    http://jakarta.apache.org/cactus/integration/howto_config.html.
    I've a feeling it's a problem with my web.xml file (perhaps the order I have defined the elements) can anyone help?
    My web.xml is as follows
    <web-app>
    <description>web.xml file for Scorecards Application</description>
    <filter>
    <filter-name>FilterRedirector</filter-name>
    <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>FilterRedirector</filter-name>
    <url-pattern>/FilterRedirector</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>ServletRedirector</servlet-name>
    <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>JspRedirector</servlet-name>
    <jsp-file>/jspRedirector.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServletRedirector</servlet-name>
    <url-pattern>/ServletRedirector</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JspRedirector</servlet-name>
    <url-pattern>/JspRedirector</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/config/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>SCR Production Data Connection</description>
    <res-ref-name>jdbc/SCRproductionDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    ------------------------------------------------------------------------------

    I don't think you are allowed to mix the servlet mapping entries in among the servlet entries. You should do all the servlet entries and then all the servlet mapping entries.

  • Invalid element 'servlet-mapping' in content of 'web-app'

    Hello, JDev gurus!
    When compling, JDev 9.0.2.822 produce following error
    "oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet-mapping' in content of 'web-app', expected elements '[taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'."
    on line <%@ taglib uri="http://xmlns.oracle.com/bibeans" prefix="orabi" %>
    This line was added automatically from component palette.
    How can I resolve this error?

    Hi,
    Did you change something into your web.xml file?
    Look at your web.xml. You must preserve the order given by the error message:
    Servlet-mapping
    session-config
    mime-mapping
    ejb-ref
    Jamil

  • Invalid element 'welcome-file-list' in content of 'web-app',

    HI, folks.
    I recently used struts to develop a simple web applicaiton, and whenever I tried to use tag libs
    such as /WEB-INF/struts-html.tld
    /WEB-INF/struts-html.tld and
    tried to compile it, it gives out compile error such as:
    Error(52,21): Invalid element 'welcome-file-list' in content of 'web-app', expected elements '[taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'.
    if I remove the above tag libs, the jsp file compiles
    without any problem.
    Are you guys familiar with these problems?
    please let me know if I'm doing anything foolish.
    Thanks!

    Unless some other elements tag are not close correctly this error does not make sense. Can you cut and paste your web.xml?
    It should look something like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <welcome-file-list>
      <welcome-file>/untitled1.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    </web-app>Charles.

  • Server error while navigating 'Options' link in 'Outlook Web App.'

    Hi,
    Step 1: Navigate Web Outlook (say
    https://webmail.t-mobile.com) 
    step 2: Navigate "Options" link (next to 'Change password'
    link) in Outlook Web App. (Browser: ie11, Google Chrome)
    step 3:
    You will be broken; your page will give some server error.
    Note:
    I am not able to attach screen shoot because of my account is not verify till now :(
    Thanks
    Shardendu Jha

    That is not an Outlook issue but an OWA issue.
    You'll need to contact the support department or Exchange administrator of this domain and notify them of it as they haven't properly implemented the password change feature for OWA behind a reverse proxy.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • Manage content of web-app

    Hi All,
    I am developing a web application using Spring/Hibernate frameworks. My application is going to be a public facing application. The pages on this application can be divided into categories. Pre-login & Post login.
    Pre-Login pages: These are mainly going to be marketing/user education pages. These are HTMLs/Jsps with el tags.
    Post-Login pages: These are main application pages which are pure JSPs with EL tags.
    Since app has been launched, marketing team puts pressure on us to change the content on the pre-login pages on almost daily basis. Currently, we are handling this by sending the static files to the remote static server.
    I want to streamline this process. The above one is tedious for changing the content as presentation is mixed with content. Often this results in errors & reworks.
    Can I make use of Foresst/Cocoon or some other XML based approach to address this issue? I want, at least for static pages, to keep the presentation code on static pages separate from content. This can enable the marketing team to write content in simple text files, which eventually can be uploaded to the server.
    Please suggest what I can do here. I wish for following: A simple text file upload and then on the basis of EL tags on the JSPs, content gets reflected on the pages of the running application.
    Rgds
    Sumit

    Few standard options:
    1) File system based content as you are planning
    2) Database driven content
    3) CMS product
    All these options should be used with care since it may slowdown the application performance. As in your case, marketing team is requesting change once a day; you can setup a cache (Any open source cache product) to improve the performance.
    Option 2& 3 are preferred approach for dynamic content because of ease of use from marketing guy perspective. Marketing team does not need to contact to deployment administrator for each change. They can simply change the content their own.

  • Servlet hangs out when web app. first loads

    I was trying to prepare a servlet which is loaded when the web application first starts on the server. It was loaded when I try the project but it hung out and the first page on the site had never shown; it seems like it is loading the the first page, but it isn't. What is wrong?

    Sorry I am a new comer and confused about the situation. I think you mean applets can directly communicate
    with servlets directly. I want to connect two applets each other through sockets and I want the servlet to
    provide the connection each other. Is it possible?It sounds like you haven't grasped the way servlets work.
    Webapps work through a series of transactions. The browser sends a request to the server which is typically a web URL, but may contain some form data. If the URL is directed to a servlet the server then invokes that servlet's doGet or doPost method which does some processing, sends a response back to the browser and then exits.
    The servlet doesn't run continuously. It must either create a response of forward the request to another servlet or JSP and exit without undue delay.
    If an applet wants to communicate with a webapp it sends an http request of it's own, which may well be handled by a servlet (probably not the one that created the applet page). It's a separate request.
    On the server side separate requests are only connected through "session data". Your servlet can store some data in a Session object which can be retrieved by subsequent transactions from the same browser.

  • Recurring Rebuild Problem: Invalid Element....

    I keep getting this recurring error when i try to rebuild my project:
    Error(25,16): Invalid element 'mime-mapping' in content of 'web-app',
    expected elements '[error-page, taglib, resource-env-ref, resource-ref,
    security-constraint, login-config, security-role, env-entry, ejb-ref,
    ejb-local-ref]'.I have also seen similar errors such as:
    Error(9,11): Invalid element 'servlet' in content of 'web-app',
    expected elements '[error-page, taglib, resource-env-ref, resource-ref,
    security-constraint, login-config, security-role, env-entry, ejb-ref,
    ejb-local-ref]'.I am using JDev 10g Production.
    The problem occurs when when trying to compile a jsp using Struts Tiles. Here is a sample of one of the jsps:
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <tiles:insert page="layout_main.jsp" flush="true">
        <tiles:put name="title" value="Condo"/>
        <tiles:put name="header" value="header.jsp"/>
        <tiles:put name="left" value="left.jsp"/>
        <tiles:put name="center" value="center_condo.jsp"/>
        <tiles:put name="right" value="right.jsp"/>
    </tiles:insert>I have had the project rebuild properly once with this same web.xml file and had no problems. I have not made any changes to the web.xml. I also ran the xml syntax validator on it and it is valid.
    This is a very weird problem. Sometimes re-arranging the web.xml file fixes the problem. The sample web.xml may be too big for a single post, but I can email to someone that can help. I have seen others on this forum that have posted the same problem with no solution. Please help. Thanks,
    Paul Manning

    Figured it out.
    When editing the web.xml you need to preserve the order listed in the error message.
    So in my case, the "welcome-file-list" needs to appear before tagLibs but after the mimeList.
    Hope this helps someone. JDeveloper is not conforming to the Spec on this one but I can cope. In my experience the "welcome-file-list" can appear any where nested in the webapp tag. Oh well, not the end of the world...
    Paul Manning

  • Invalid element digest error

    Hi.
    I'm Oracle Support personnel, and need to
    request answer to this question on behalf
    of customers who are calling support on this
    issue. It's been posted before:
    "posted August 10, 2000 05:18 PM
    Hi all,
    Just downloaded the Oracle XML Schema Processor v1.0, and tried
    the sample program called 'XSDSetSchema'. I tried to validate the
    supposedly valid 'catalogue.xml' but it gave me this error:
    Invalid element: 'Digest'
    Please reply with answer to:
    [email protected]
    Customer's name is Sukhveen Bedi.
    Thanks for your attention.
    null

    I would try starting with a new project. Somehow something got corrupted.
    If you are sure your web.xml is correct, post it here..
    ALso indicate your JDev version..
    -Chris

  • CodeGenException. Invalid element: "group"

    Hi all!
    I trying to do simple thing, namely import an existing WSDL into a project and call it from a business process. While trying to build the project I get a com.stc.codegen.framework.model.CodeGenException. In ide.log there appears the following
    SEVERE: error: modeler error: model error: invalid element: "group"
    com.stc.wsclient.design.codegen.impl.JaxRpcException: Compilation failed, please check ide.log for JAX-RPC output.
           at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.jaxrpc(JaxRpcCodelet.java:338)
           at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.generateBeans(JaxRpcCodelet.java:997)
           at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.generateFiles(JaxRpcCodelet.java:467)
           at com.stc.wsclient.design.codegen.impl.WSClientCodelet.generateFiles(WSClientCodelet.java:451)
    <...skipped...>
    Caused by: com.stc.wsclient.design.codegen.impl.JaxRpcException: Compilation failed, please check ide.log for JAX-RPC output.
           at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.jaxrpc(JaxRpcCodelet.java:335)
    <...blah...blah...blah...>Nothing informative at all but the first string, which still means nothing to me. The WSDL and referenced XSDs are pretty complex, but they pass validation from the EDesigner. The Java CAPS version is 5.1.
    Did anybody see such behavior? I can send the project if that can help.
    Thanks in advance,
    Victor

    Hi Luca,
    Java CAPS uses JAX-RPC for web-services communication. JAX-RPC does not support <xsd:group> tag. In future versions of Java CAPS they will use JAX-WS instead, which does not (hopefully) have this problem. The only workaround I can think of is not to use groups, encapsulate the repeating elements in type or just copy-paste the group content everywhere instead of references to groups.
    Hope that helps.
    Victor

  • Wscompile: invalid element wsdl:definitions

    I am trying to build client bindings for a web service using JWSDP 2.0. The command I am using is...
    ./wscompile.sh -s /tmp -d /tmp -gen -verbose -f:strict,wsi /tmp/performpsetransaction.wsdlWhen I run this, I get the following error:
    invalid element "{http://schemas.xmlsoap.org/wsdl/}definitions" in configuration file (line 2)Here is my WSDL:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://OBNPSE/PerformPSETransaction" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://OBNPSE/PerformPSETransaction" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://OBNPSE/PerformPSETransaction">
          <s:element name="SaveTransaction">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="PSETran1" type="tns:PSETransaction1" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="PSETransaction1">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="DriversLicenseOrStateID" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerLastName" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerFirstName" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerStreet" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerCity" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerState" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="CustomerZip" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="TechID" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="Quantity" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="Liquid" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="GelCap" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="ProductName" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="PharmacyNumber" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="TransactionType" type="s:string" />
            </s:sequence>
          </s:complexType>
          <s:element name="SaveTransactionResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="SaveTransactionResult" type="tns:PSETransactionResult" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:complexType name="PSETransactionResult">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="TransactionStatus" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="TransactionID" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="DailyLimitExceeded" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="RemainingQuantity" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="ErrorMessage" type="s:string" />
            </s:sequence>
          </s:complexType>
        </s:schema>
      </wsdl:types>
      <wsdl:message name="SaveTransactionSoapIn">
        <wsdl:part name="parameters" element="tns:SaveTransaction" />
      </wsdl:message>
      <wsdl:message name="SaveTransactionSoapOut">
        <wsdl:part name="parameters" element="tns:SaveTransactionResponse" />
      </wsdl:message>
      <wsdl:portType name="PerformPSETransactionSoap">
        <wsdl:operation name="SaveTransaction">
          <wsdl:input message="tns:SaveTransactionSoapIn" />
          <wsdl:output message="tns:SaveTransactionSoapOut" />
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:portType name="PerformPSETransactionHttpGet" />
      <wsdl:portType name="PerformPSETransactionHttpPost" />
      <wsdl:binding name="PerformPSETransactionSoap" type="tns:PerformPSETransactionSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="SaveTransaction">
          <soap:operation soapAction="http://OBNPSE/PerformPSETransaction/SaveTransaction" style="document" />
          <wsdl:input>
            <soap:body use="literal" />
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal" />
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:binding name="PerformPSETransactionHttpGet" type="tns:PerformPSETransactionHttpGet">
        <http:binding verb="GET" />
      </wsdl:binding>
      <wsdl:binding name="PerformPSETransactionHttpPost" type="tns:PerformPSETransactionHttpPost">
        <http:binding verb="POST" />
      </wsdl:binding>
      <wsdl:service name="PerformPSETransaction">
        <wsdl:port name="PerformPSETransactionSoap" binding="tns:PerformPSETransactionSoap">
          <soap:address location="http://XXXXXXXXXXXXXXXX" />
        </wsdl:port>
        <wsdl:port name="PerformPSETransactionHttpGet" binding="tns:PerformPSETransactionHttpGet">
          <http:address location="http://XXXXXXXXXXXXXXXX" />
        </wsdl:port>
        <wsdl:port name="PerformPSETransactionHttpPost" binding="tns:PerformPSETransactionHttpPost">
          <http:address location="http://XXXXXXXXXXXXXXXX" />
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>Is this WSDL invalid? I don't see a problem with it.

    Nevermind, I just realized that the file on the command line is a configuration XML which references the WSDL and not the WSDL file itself.

  • Claims debacle (error) with Term Store: "Could not retrieve a valid windows identity" for all sites in a particular web app.

    When I pull up the Term store in CA or any MySite collection, it works.
    When I do so in any other site collection (HNSCs, incidentally), It doesn't return any term stores.
    My ULS log immediately before and after the "/_vti_bin/taxonomyinternalservice.json/CheckPermission" POST on termstore .aspx triggers the WCF call:
    Claims Authentication af30y Verbose Claims Windows Sign-In: Successfully signed-in the the user 'contoso\domainUser' for request url 'https://sp13-root-prd.contoso.com/_vti_bin/taxonomyinternalservice.json/CheckPermission'.
    Claims Authentication af30q Verbose Updating header 'LOGON_USER' with value '0#.w|contoso\domainUser' for the request url 'https://sp13-root-prd.contoso.com/_vti_bin/taxonomyinternalservice.json/CheckPermission'.
    Authentication Authorization agb9s Medium Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|contoso\domainUser, ClaimsCount=77
    Logging Correlation Data xmnv Medium Site=/
    Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://CONTOSOFE3:32843/00e6d55691824965ac223f1d1cfae6d2/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges2' MessageId: 'urn:uuid:590e916c-c89a-4f89-9819-a82c97fabcaa'
    Claims Authentication bz7l Medium SPSecurityContext: Could not retrieve a valid windows identity for username 'contoso\domainUser' with UPN '[email protected]'. UPN is required when Kerberos constrained delegation is used. Exception: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: WTS0003: The caller is not authorized to access the service. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.UnauthorizedAccessException: WTS0003: The caller is not authorized to access the service. at Microsoft.IdentityModel.WindowsTokenService.CallerSecurity.CheckCaller(WindowsIdentity callerIdentity) at Microsoft.IdentityModel.WindowsTokenService.S4UServiceContract.PerformLogon(Func`1 logonOperation, Int32 pid) at SyncInvokeUpnLogon(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet))..
    Claims Authentication g220 Unexpected No windows identity for contoso\domainUser.
    The "The caller is not authorized to access the service." message seems pertinent.
    Both web apps are using only NTLM auth.
    The url for both web apps ends in the same contoso.com domain. 
    I get the same errors no matter what account I use, including the install account.
    Things I've tried:
    Deleting and building a new HNSC root web app and site. Error happens in all sites in all web apps except the PBSC hosting MySites.
    Giving the root site app pool identity full control of the metadata service app (even though the MySite identitiy doesn't have it)
    Giving the root site app pool identity full permissions on the metadata service app.
    Comparing database and web app config permissions between dev (where everything works perfectly) and prod (where it does not).
    Made sure IIS auth settings on both sites are identical
    Both sites are using the same SSL certificate (though the call to the web service appears to be http)
    Reprovisioned the metadata service app with a new database and new app pool identity.
    Made sure C2WT is running. Tried it with the service stopped as well.
    Web.configs are identical between working and non-working apps.
    I'm stumped but still Googling. I'm hoping to avoid having to call Micrososft. Any help would be appreciated!
    UPDATE:
    Interestingly, when I restored the web application from backup (via CA), I ended up with 3 identical "Windows Authentication" authentication providers assigned to the problem web app. Since there was more than one, I was directed to the provider-chooser
    page when visiting the site. Upon choosing 1 of the 3, I was authenticated, and *poof*, no more authentication errors and the term store loaded term sets as expected.
    Of course, 3 providers was not an ideal state, so I grabbed the one that worked (#1) via get-spauthenticationprovider, and assigned it to the web app via set-spwebapplication, and my problem returned.
    I am currently updating the farm to SP1 from June 2013 CU. Fingers crossed.
    Update:
    The update to SP1 went smoothly, but did not resolve the issue. Also related (I believe) are the random authentication errors when trying to upload images to some libraries, and 401-errors on the accessdenied.aspx page itself.
    Update:
    The problem is resolved, seemingly after making 4 changes. I'm trying to narrow down which change was the cure, if any:
    I installed SP1 on all 6 servers, rebooted and upgraded. This appeared to have no effect.
    Removed an old login from SQL that no longer existed in AD because of this ULS error:
    System.Runtime.InteropServices.COMException: The user or group contoso\svc_xxxxxxxxx' is unknown., StackTrace:    at Microsoft.SharePoint.Utilities.SPUtility.GetFullNameFromLoginEx(String loginName, Boolean&
    bIsDL)
    This login was the identity of the application pool that used to run the web app in question.
    This login was the schema owner of a schema named after itself on every SharePoint database so I changed the schema owner to dbo but left the schema attached.
    The problem may have surfaced initially when the app pool identity was changed in CA, but went unnoticed?
    Note that the web app had been deleted and recreated many times with a new identity and pool to no avail, but the URL remained the same throughout each attempted fix. Relevant?
    Grasping at straws, I changed the app pool identity for this web app to the same one that runs the MySite web app pool as per this only slightly related problem: http://www.planetsharepoint.org/m/preview.php?id=372&rid=34764&author=Vlad+Catrinescu
    I changed the authentication method from NTLM to Negotiate.
    I am rolling back #3 and #4 to see if the issue resurfaces.
    Update:
    It doesn't appear to have been the NTLM/Negotiate setting. Web app is currently set to NTLM and all is well. No strange accessdenies, and term Store is still manageable from all sites.
    Update: Sorry for the delay. I am administering 6 farms these days. Will update as soon as the final phase of rollbacks happens.
    I think I can. I think I can.

    maybe that web app was accidentally created with classic auth?
    here's an example of how to create claims based, with classic, and then "doing 2013" claims
    #Create the example web application, as mentioned above, either with gui, and pick later, or
    New-SPWebApplication-ApplicationPool$applicationPool-ApplicationPoolAccount$serviceAcct-Name$WebApp-Port
    5050
    -databaseName$contentDB-securesocketslayer
    #If doing for 2013
    New-SPWebApplication-ApplicationPool$applicationPool-ApplicationPoolAccount$serviceAcct-Name$WebApp-Port
    5050
    -AuthenticationProvider(new-spauthenticationprovider)
    -databaseName$contentDB-secureSocketsLayer

  • OC4J shuts down servlet in web-app A during deployment of web-app B ?!

    Hey all,
    We have a web-app A deployed to OAS 10g that contains a servlet with <load-on-startup> set to 2.
    This servlet loads fine when the app is deployed.
    However, when we deploy web-app B to our server, we notice in the logs that the destroy() method on the above servlet is invoked in web-app A! After web-app B is finished deploying, the init() method on the above servlet in web-app A is fired again.
    What's going on?
    Thanks.

    I have posted this on the JDeveloper forum and been pointed in the direction of this discussion as it seems I am experiencing the same problem.....
    I currently have an instance of the OC4J 10.1.2 standalone (current production version) server running, and am deploying 5 servlets to the same server. Once they are all deployed they all run fine without any problems at all.
    However, if I need/want to make an update to one of these 5 servlets and then redploy it the server, the server effectively restarts terminating any open sessions that users may have on any of the other four servlets as well (i.e. users are forced to login again to the particular servlet they are using).
    Is this a bug in the OC4J 10.1.2 standalone (current production version) server? or have I not set something in the deployment profile for each of these servlets/applications to prevent this from happening?
    All advice/suggestions would be gratefully appreciated as soon as possible.
    Thanks in advance
    David

  • Office Web Apps server / Lync server 2013

    Hi I have installed a Lync 2013 Server and Office Web Apps Server. Configured Lync topology, Office Web Apps farm and certificates.
    However when i start the services i get this error message in the log saying Office Web Apps discovery failed.
    Event ID:      41033
    Description:
    Office Web Apps Server (WAC) discovery failed, PowerPoint content is disabled.
    Attempted Office Web Apps Server discovery Url:
    Received error message: Invalid Uri syntax for WAC configuration
    The number of retries: 1,
    Cause: Office Web Apps Server may be unavailable or network connectivity may have been compromised.
    Resolution:
    Check HTTPS connectivity from this box to the Office Web Apps Server deployment using the discovery Url.
    I can access the OWAS server Url from Lync Server
    Connecting to the HTTPS discovery URL is working fine, and brings up the XML-page (after i click "show all content").
    The two servers are located on the same internal network, DNS resolves fine both ways, and no firewall rules blocks any connections between the two. Can anyone please help me figure this out?
    Only identical problem found online is here (Invalid Uri syntax for WAC configuration):
    http://blogs.technet.com/b/dodeitte/archive/2012/09/10/office-web-apps-server-amp-lync-server-2013.aspx
    He resolved the problem by assigning a new OAuthTokenIssuer certificate. This however did not fix the problem in my case.
    Regards
    Sverre A. Veel

    Hi,
    In addition, please make sure you have restarted front end and office web apps server after reissuing the certificate.
    Kent Huang
    TechNet Community Support

  • Unable to deploy web app on local weblogic server

    I'm using 11g JDeveloper 11.1.1.1.0 and I got the below errors when I tried to deploy a web app to the default weblogic server. Do you have any idea?
    [03:19:04 PM] ---- Deployment started. ----
    [03:19:04 PM] Target platform is (Weblogic 10.3).
    [03:19:05 PM] Retrieving existing application information
    [03:19:05 PM] Running dependency analysis...
    [03:19:05 PM] Building...
    [03:19:05 PM] Deploying profile...
    [03:19:09 PM] Wrote Web Application Module to C:\11gJDev_Workspace\Scheduler\BPELScheduler\deploy\webapp.war
    [03:19:10 PM] Deploying Application...
    [03:19:33 PM] [Deployer:149193]Operation 'deploy' on application 'webapp' has failed on 'DefaultServer'
    [03:19:33 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application webapp on DefaultServer.: .
    [03:19:33 PM] Weblogic Server Exception: weblogic.application.ModuleException:
    [03:19:33 PM] Caused by: weblogic.wsee.ws.WsException: When processing WebService module 'webapp.war'. Can't find wsdl /wsdls/wsat.wsdl
    [03:19:33 PM] See server logs or server console for more details.
    [03:19:33 PM] weblogic.application.ModuleException:
    [03:19:33 PM] #### Deployment incomplete. ####
    [03:19:33 PM] Deployment Failed

    Thanks. I find the issue. Should only deploy ViewController project to war and don't deploy Model project at all. Let Application level deployment take care of it.
    Beside, I have a question, I currently deploy inside JDeveloper. In my standalone WLS, I deploy some of my shared library. Is there any way to specify the shared library name (goes into weblogic-application.xml) when I deploying inside JDeveloper? Or I have to deploy to ear file first, unzip, update weblogic-applciation.xml and zip up the ear file and deploy the ear file to standalone WLS by hand?

Maybe you are looking for