Restlet Error "The server has not found anything matching the request URI"

I want to serve some static html pages along with my restlet services from the same app ( running in Tomcat )
Here is my web.xml
<?xml version="1.0" encoding="UTF-8"?> 
<web-app id="WebApp_ID" version="2.4" 
            xmlns="http://java.sun.com/xml/ns/j2ee" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
                 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 
   <display-name>first steps servlet</display-name> 
   <!-- Application class name --> 
   <context-param> 
      <param-name>org.restlet.application</param-name> 
      <param-value> 
         firstSteps.FirstStepsApplication 
      </param-value> 
   </context-param> 
   <!-- Restlet adapter --> 
   <servlet> 
      <servlet-name>RestletServlet</servlet-name> 
      <servlet-class> 
         org.restlet.ext.servlet.ServerServlet 
      </servlet-class> 
   </servlet> 
   <!-- Catch all requests --> 
   <servlet-mapping> 
      <servlet-name>RestletServlet</servlet-name> 
      <url-pattern>/*</url-pattern> 
   </servlet-mapping> 
</web-app>
Here is my Application router class
public class FirstStepsApplication extends Application
     @Override
     public synchronized Restlet createInboundRoot()
          Router router = new Router(getContext());
          // Defines only one route
          router.attach("/hello", HelloWorldResource.class);
          router.attach("/login", LoginResource.class);
          router.attach("/", BasicResource.class);
          return router;
}I've gone back to the basic first steps example.
It works fine if the url pattern is <url-pattern>/*</url-pattern>
localhost/rest/login returns a string from my LoginResource, same too for /hello
However a static html page I have /Mypage.html does not get returned when I enter the URL /MyPage.html
However, if I then modify the url pattern to be
<url-pattern>/login</url-pattern>
and then enter the url /MyPage.html I will get the html page.
But ...... I get the error "The server has not found anything matching the request URI" when I enter the url /login which worked ok the first case.
What must I do in order for both Restlet & Static HTML resources to work together?
Thanks ... J

yes, basicResource is my own class. It's a catch all for restlet requests that don't match any of the other ones. It just returns String = "My catch all resource"
Because you highlighted it I decided to try and remove it from my Restlet Router. Presto, it now works, the login & hello requests are serviced by my Restlet resources and the MyPage.html requests are served the mypage.html file. This now brings another question. If from my servlet mapping in web.xml all urls are to be handled by restlet "/*", how then does a mypage.html request not get serviced by my restlet? Seems to be just passed through the restlet framework when there is no router to match it? what do you think?

Similar Messages

  • 10.4.5 404 Not Found The server has not found anything matching Request URL

    hello all.. :)
    i have problem with server, when i'm loading and make link to another page...
    i got error like this...
    *10.4.5 404 Not Found*
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    anyone help me...
    thx
    agungdmt

    I read the 6.1 doc, it did said there is an editing tool for deployment
    descriptor.
    But I can't find it.
    Thanks,
    Michael Girdley wrote:
    This tool has been removed. In 6.1, this summer, we're adding features to
    replace it.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Daniele" <[email protected]> wrote in message
    news:3b139510$[email protected]..
    Good morning,
    I read in the documentation of WebLogicBuilder Tool, that u can downloadit at
    the URL :
    http://developer.bea.com/circuit/code.html
    but the response of the browser is
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URL. No indicationis given
    as to whether the condition is temporary or permanent.
    If you typed in the URL location manually, please doublecheck what youtyped.
    You may be able to find what you were looking for by following one ofthese links:
    BEA Developer Center
    BEA Systems
    Please adjust your bookmarks accordingly to avoid getting this erroragain, or
    notify the administrator of the site whose link you followed to get here.
    How can I find it!!

  • Weblogic - 10.4.5 404 Not Found - The server has not found anything matchin

    if you create a new web project in the WSAD IDE and then add a new JSP file it puts it in the web content directory. is this the default directory that will be searched for JSPs? the web.xml file has <welcome-file> entries for index.jsp but when i type
    'http://localhost:7001/Test/'
    at the browser i get the error message..
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI........
    could you tell me what the possible causes of this error are

    Make sure that u have deployed ur Test application in the weblogic server and not in the WSAD server...
    regards
    shanu

  • While creating InitialContext I have got error that server was not found...

    Hello.
    On the server console I'v seen next message:
    java.util.EmptyStackException
         at weblogic.utils.collections.Stack.pop(Stack.java:72)
         at weblogic.rjvm.InboundMsgAbbrev.getAbbrev(InboundMsgAbbrev.java:85)
         at weblogic.rjvm.MsgAbbrevInputStream.readImmutable(MsgAbbrevInputStream.java:172)
         at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInputStream.java:186)
         at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readClassDescriptor(ChunkedObjectInputStream.java:290)
         at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:906)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:107)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:115)
         at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:685)
         at weblogic.rjvm.ConnectionManagerServer.handleIdentifyRequest(ConnectionManagerServer.java:255)
         at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:619)
         at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
         at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I use correct version of weblogic.jar,
    the property for initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://127.0.0.1:7001
    The server is Veblogic 6.1
    The client is runing under Visual Age 3.5 EE

    "Yuriy Kuzmenko" <[email protected]> wrote:
    >
    The nested exception on the client side was:
    java.io.StreamCorruptedException: Type code out of range, is 0
         java.lang.Throwable(java.lang.String)
         java.lang.Exception(java.lang.String)
         java.io.IOException(java.lang.String)
         java.io.ObjectStreamException(java.lang.String)
         java.io.StreamCorruptedException(java.lang.String)
         byte java.io.ObjectInputStream.peekCode()
         void java.io.ObjectInputStream.SkipToEndOfBlockData()
         java.io.ObjectStreamClass java.io.ObjectInputStream.inputClassDescriptor()
         java.lang.Object java.io.ObjectInputStream.readObject(boolean)
         java.lang.Object java.io.ObjectInputStream.readObject()
         int java.io.ObjectInputStream.inputObject(boolean)
         java.lang.Object java.io.ObjectInputStream.readObject(boolean)
         java.lang.Object java.io.ObjectInputStream.readObject()
         java.lang.Object weblogic.common.internal.ChunkedObjectInputStream.readObject()
         java.lang.Object weblogic.common.internal.ChunkedObjectInputStream.readObject(java.lang.Class)
         weblogic.common.internal.PeerInfo weblogic.rjvm.ConnectionManager.readPeerInfo(weblogic.rjvm.MsgAbbrevInputStream)
         void weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(weblogic.rjvm.MsgAbbrevJVMConnection,
    weblogic.rjvm.MsgAbbrevInputStream)
         void weblogic.rjvm.ConnectionManager.dispatch(weblogic.rjvm.MsgAbbrevJVMConnection,
    weblogic.utils.io.ChunkedDataInputStream)
         void weblogic.rjvm.t3.T3JVMConnection.dispatch()
         boolean weblogic.socket.JavaSocketMuxer.processSockets2()
         void weblogic.socket.JavaSocketMuxer.processSockets()
         void weblogic.socket.SocketReaderRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.execute(weblogic.kernel.ExecuteRequest)
         void weblogic.kernel.ExecuteThread.run()
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested
    exception:
    [java.io.StreamCorruptedException: Type code out of range, is 0]
         java.lang.Throwable(java.lang.String)
         java.lang.Error(java.lang.String)
         weblogic.utils.NestedError(java.lang.String, java.lang.Throwable)
         weblogic.utils.AssertionError(java.lang.Throwable)
         weblogic.common.internal.PeerInfo weblogic.rjvm.ConnectionManager.readPeerInfo(weblogic.rjvm.MsgAbbrevInputStream)
         void weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(weblogic.rjvm.MsgAbbrevJVMConnection,
    weblogic.rjvm.MsgAbbrevInputStream)
         void weblogic.rjvm.ConnectionManager.dispatch(weblogic.rjvm.MsgAbbrevJVMConnection,
    weblogic.utils.io.ChunkedDataInputStream)
         void weblogic.rjvm.t3.T3JVMConnection.dispatch()
         boolean weblogic.socket.JavaSocketMuxer.processSockets2()
         void weblogic.socket.JavaSocketMuxer.processSockets()
         void weblogic.socket.SocketReaderRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.execute(weblogic.kernel.ExecuteRequest)
         void weblogic.kernel.ExecuteThread.run()

  • Identity Server has not been configured for this new user/group suffix

    Hi all
    I am having a problem trying to configure the Directory Server (5.2) for Messaging Server.
    My configuration is as follows:
    SJES Q12005
    Server 1 - Directory Server 5.2
    Server 1 - Access Manager (formerly Identity Server)
    Server 1 - Web Server 6.1
    I have successfully installed the above and can login to Access Manager.
    I next installed Calendar & Messengar Server on "Server 1". Upon running "comm_dssetup.pl" from /opt/SUNWcomds/sbin, I get the following error:
    "Identity Server has not been configured for this new user/group suffix"
    Copy and paste of what I entered:
    bash-2.05# perl comm_dssetup.pl
    Welcome to the Directory Server preparation tool for
    Sun Java(tm) System communication services.
    (Version 6.3 Revision 1.0)
    This tool prepares your directory server for use by the
    communications services which include Messaging, Calendar and their components.
    The logfile is /var/tmp/dssetup_20050830165940.log.
    Do you want to continue [y]:
    Please enter the full path to the directory where the Sun ONE
    Directory Server was installed.
    Directory server root [var/opt/mps/serverroot] : /opt/mps/serverroot
    Please select a directory server instance from the following list:
    [1] slapd-sunldap
    Which instance do you want [1]:
    Please enter the directory manager DN [cn=Directory Manager]: cn=DirMan
    Password:
    Detected DS version 5.2
    Will this directory server be used for users/groups [Yes]:
    Please enter the Users/Groups base suffix [dc=samplecompany-dev,dc=co,dc=uk] : ou=infrastructure,o=sampletown,dc=samplecompany-dev,dc=co,dc=uk
    There are 3 possible schema types:
    1 - schema 1 for systems with iMS 5.x data
    1.5 - schema 2 compatibility for systems with iMS 5.x data
    that has been converted with commdirmig
    2 - schema 2 native for systems using Identity Server
    Please enter the Schema Type (1, 1.5, 2) [1]: 2
    Identity Server has not been configured for this new user/group suffix
    You can opt to continue, but you will not be able to use
    features that depend on Identity Server
    Are you sure you want this schema type? [n]:
    I have entered my user group suffix exactly as specified during the Access Manager install (hence I am able to login as "amadmin").
    Looking at the LDAP logs to try and figure out whats going wrong I see its not getting hits on all searches it is performing:
    [30/Aug/2005:16:41:18 +0100] conn=299 op=159 msgId=161 - SRCH base="ou=services,ou=infrastructure,o=northampton,dc=dataforce-
    dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(objectClass=ldapsubentry)))(obj
    ectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscapeServer)(objectClass=netscape
    Resource)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:18 +0100] conn=299 op=159 msgId=161 - RESULT err=4 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:18 +0100] conn=299 op=160 msgId=162 - ABANDON targetop=NOTFOUND msgid=161
    [30/Aug/2005:16:41:18 +0100] conn=299 op=161 msgId=163 - SRCH base="ou=people,ou=infrastructure,o=northampton,dc=dataforce-de
    v,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(objectClass=ldapsubentry)))(objec
    tClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscapeServer)(objectClass=netscapeRe
    source)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:18 +0100] conn=299 op=161 msgId=163 - RESULT err=0 tag=101 nentries=0 etime=0
    [30/Aug/2005:16:41:18 +0100] conn=299 op=162 msgId=164 - SRCH base="ou=clientdata,ou=infrastructure,o=northampton,dc=dataforc
    e-dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(objectClass=ldapsubentry)))(o
    bjectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscapeServer)(objectClass=netsca
    peResource)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:18 +0100] conn=299 op=162 msgId=164 - RESULT err=0 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:18 +0100] conn=299 op=163 msgId=165 - ABANDON targetop=NOTFOUND msgid=164
    [30/Aug/2005:16:41:20 +0100] conn=299 op=164 msgId=166 - SRCH base="ou=services,ou=infrastructure,o=northampton,dc=dataforce-
    dev,dc=co,dc=uk" scope=1 filter="(|(objectClass=*)(objectClass=ldapsubentry))" attrs="objectClass numSubordinates ref aci"
    [30/Aug/2005:16:41:20 +0100] conn=299 op=164 msgId=166 - RESULT err=0 tag=101 nentries=41 etime=0
    [30/Aug/2005:16:41:28 +0100] conn=299 op=165 msgId=167 - SRCH base="ou=services,ou=infrastructure,o=northampton,dc=dataforce-
    dev,dc=co,dc=uk" scope=0 filter="(|(objectClass=*)(objectClass=ldapsubentry))" attrs="objectClass numSubordinates ref aci"
    [30/Aug/2005:16:41:28 +0100] conn=299 op=165 msgId=167 - RESULT err=0 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:28 +0100] conn=299 op=166 msgId=168 - SRCH base="ou=services,ou=infrastructure,o=northampton,dc=dataforce-
    dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(objectClass=ldapsubentry)))(obj
    ectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscapeServer)(objectClass=netscape
    Resource)(objectClass=domain))" attrs="objectClass numSubordinates ref aci"
    [30/Aug/2005:16:41:29 +0100] conn=299 op=166 msgId=168 - RESULT err=0 tag=101 nentries=41 etime=1
    [30/Aug/2005:16:41:29 +0100] conn=299 op=167 msgId=169 - SRCH base="ou=iplanetamauthservice,ou=services,ou=infrastructure,o=n
    orthampton,dc=dataforce-dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(objectC
    lass=ldapsubentry)))(objectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscapeServ
    er)(objectClass=netscapeResource)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:29 +0100] conn=299 op=167 msgId=169 - RESULT err=0 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:29 +0100] conn=299 op=168 msgId=170 - ABANDON targetop=NOTFOUND msgid=169
    [30/Aug/2005:16:41:29 +0100] conn=299 op=169 msgId=171 - SRCH base="ou=iplanetamauthldapservice,ou=services,ou=infrastructure
    ,o=northampton,dc=dataforce-dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)(obj
    ectClass=ldapsubentry)))(objectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=netscape
    Server)(objectClass=netscapeResource)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:29 +0100] conn=299 op=169 msgId=171 - RESULT err=0 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:29 +0100] conn=299 op=170 msgId=172 - ABANDON targetop=NOTFOUND msgid=171
    [30/Aug/2005:16:41:29 +0100] conn=299 op=171 msgId=173 - SRCH base="ou=iplanetampolicyconfigservice,ou=services,ou=infrastruc
    ture,o=northampton,dc=dataforce-dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(objectClass=*)
    (objectClass=ldapsubentry)))(objectClass=referral)(objectClass=organization)(objectClass=organizationalUnit)(objectClass=nets
    capeServer)(objectClass=netscapeResource)(objectClass=domain))" attrs="dn"
    [30/Aug/2005:16:41:29 +0100] conn=299 op=171 msgId=173 - RESULT err=0 tag=101 nentries=1 etime=0
    [30/Aug/2005:16:41:29 +0100] conn=299 op=172 msgId=174 - ABANDON targetop=NOTFOUND msgid=173
    [30/Aug/2005:16:41:29 +0100] conn=299 op=173 msgId=175 - SRCH base="ou=iplanetamauthenticationdomainconfigservice,ou=services
    ,ou=infrastructure,o=northampton,dc=dataforce-dev,dc=co,dc=uk" scope=1 filter="(|(&(numSubordinates=*)(numSubordinates>=1)(|(
    --More--(83%)
    The list goes on.
    Can anyone give me any pointers?
    Thanks

    Hi
    Thanks for your reply!
    I did mis-type, my mistake - sorry about that.
    If I dont over-ride the default it works, I've pretty much got the whole setup working now but I'm not particularly over the moon about the way the ldap tree is setup, I'd like finer granuality as we are going to attempt to get syncronization working with AD.
    I have an idea about how I'd like to set up our Mail/Calendar/LDAP infrastructure the 2nd time around (I'm just testing at the mo) - so I might have a question or two for you if you dont mind taking a look when you have a minute?
    Thanks Jay

  • Connecting to the LOB system has failed. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is

    hi ,
    when generate the schema , i  got the below error, please any one put your inputs:
    Connecting to the LOB system has failed.  A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server
    is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).

    thaks shanky,
    but facing another , after generate schema from  WCF_SQL, im unable get elements in my schema.
    this is schema generate from storeprocduer , but thru WCF-sql im unable get the elements like
    id, name
    <xsd:schema targetNamespace="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:schema="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sqltypes="http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault="qualified">
      <xsd:import namespace="http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation="http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" />
      <xsd:element name="Test.dbo.sample">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="id" type="sqltypes:int" minOccurs="0" />
            <xsd:element name="name" minOccurs="0">
              <xsd:simpleType>
                <xsd:restriction base="sqltypes:nvarchar" sqltypes:localeId="1033" sqltypes:sqlCompareOptions="IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId="52">
                  <xsd:maxLength value="1000" />
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>19</id>
      <name>sw</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>14</id>
      <name>swe</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>13</id>
      <name>se</name>
    </Test.dbo.sample>

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (p

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
    the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical details===================================
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Error: The requested URL was not found, or cannot be served at this time.

    Hi gurus,
    I have a report that has a parameter file. When I call the report the parameter form is displayed but after I enter the parameter values and click SUBMIT QUERY, I receive this error:
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Reports Server name is not specified.
    If I run the report without parameter file it runs fine.
    Does anyone have an idea on how I can make this work.
    Thanks

    * Can you please tell what version of Reports you are using ie 6i or 9i and the exact version [ In builder give Help->About] . In this problem we cannot deduce anything from the version. But if it is very old, we can recommend installing the latest patch.
    * Please post the full command line request. If you have used any keys in cgicmd.dat , please post the expansion of that keys also.
    * If possible as a workaround give paramform=no&paramName=paramValue ... in request till this problem is resolved.
    Thanks
    The Oracle Reports Team

  • SQL Server Agent Log showing errors [298] SQLServer Error: 10061, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL

    Hi All,
    I have started receiving this error in the logs for the last 10 days and the Schedules Jobs for the database have stopped running. My MS CRM application is working fine.
    Can anyone guide me what could be the problem.
    Date                      17/4/2014 2:04:20 PM
    Log                         SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
    Message
    [298] SQLServer Error: 10061,
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct
    and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
    Date                      17/4/2014 2:11:55 PM
    Log                         SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
    Message
    [298] SQLServer Error: 10061,
    A network-related or instance-specific error
    has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online. [SQLSTATE 08001]
    Date                      7/4/2014 11:00:31 AM
    Log                         SQL Server Agent (Current - 17/4/2014 2:01:00 PM)
    Message
    [298] SQLServer Error: 10061,
    A network-related or instance-specific error
    has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online. [SQLSTATE 08001]

    Check this link
    http://social.msdn.microsoft.com/Forums/en-US/906da9b5-2482-468c-a424-ae099da2d96b/sql-server-agent-service-account-error?forum=sqlsetupandupgrade
    Regards, RSingh

  • After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server"

    After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server".
    Anyone have any ideas?

    You have two choices to try & fix this: 1. Backup your phone, then restore as a new device, then restore from the backup you first created, or 2. Follow the advise from this poster:
    I had the same problem with the black blocks after upgrading to iOS4 on my iPhone. The reason for the black blocks is that the thumbnail images for those particular images have not been created when the Photo Library has been updated to iOS4. I followed the advice on a couple of blogs and fixed the problem.
    1. I downloaded iPhone Explorer free software (http://www.macroplant.com/iphoneexplorer/) so I could view the photo data folders on my phone. I could see that the thumbnail images were missing.
    2. I followed a slight variation on the instructions on this blog. (http://blog.mbentley.net/2010/06/iphone-ios-4-upgrade-restore-lost-pictures-in-c amera-roll/)
    3. First I copied the Photo Data folder by dragging it from the iPhone Explorer window to my Mac desktop.
    4. Through iPhone Explorer I deleted the info.plist file in the Media/PhotoData/MISC folder.
    5. I also deleted the Photos.sqlite and PhotosAux.sqlite files in Media/PhotoData.
    6. I then rebooted the phone and launched the Photo Library.
    7. The Library rebuilt it's self again and recreated the thumbnails.
    8. The problem was fixed!!! Thank you M Bentley!
    I hope this helps - this has been bugging me for 2 weeks.
    Regards
    Alijm23

  • MobileMe/iCal Error: "The server has not specified a calendar home for the account at..."

    Hi everyone,
    I get a problem when trying to add my MobileMe account in iCal. The error message I receive after trying to add ("+") my MobileMe account to iCal is:
    "The account information was not found. The server has not specified a calendar home for the account at "/ -- https://cal.me.com/".
    Attached the screenshot: http://grab.by/cPDP
    Any idea's on what could be going wrong?
    Thanks,
    Michael

    Hi everyone,
    I get a problem when trying to add my MobileMe account in iCal. The error message I receive after trying to add ("+") my MobileMe account to iCal is:
    "The account information was not found. The server has not specified a calendar home for the account at "/ -- https://cal.me.com/".
    Attached the screenshot: http://grab.by/cPDP
    Any idea's on what could be going wrong?
    Thanks,
    Michael

  • Problem with Home Sharing.  Getting the error "The Requested URL was not Found on this Server"

    I recently purchased an iPhone 5.  As I do with all of my AppleTVs, iPads, iPods and an iPhone 4 in my home, I connected the 5 to my home network and accessed the shared video library using home sharing.  My iTunes library is roughly 85% iTunes purchases, a handful of videos taken with iOS devices, and some video ripped with Handbrake.  All of these videos work fine on all devices in my home except my new iPhone 5.  When I access the shared video library on my iPhone 5, all of the textual data for all of the videos appears, however, I can only get the iPhone to play 1 video of the dozens in my iTunes library. When I try to play any other, I get the error, "The Requested URL was not Found on this Server."
    Interestingly, only one video in my entire shared library displays the artwork associated with it in my iTunes library on my iPhone 5, and that's the one I can stream without a problem. Even more interestingly, that video I am able to stream was ripped using Handbrake (there are a number in my library ripped using Handbrake, but just this one will stream to my iPhone 5 for some reason).
    I'm using the latest version of iTunes (10.7) on my home (iMac) computer (running OSX 10.8.2- Mountain Lion)and of course iOS 6 on the iPhone 5. I've tried resetting my iPhone several times as well as restarting my iMac which holds my iTunes library.
    Does anyone have any ideas as to what's going on?

    Can you see if you can view index page from a browser on iPhone.
    Have you seen live streams working from a different computer...
    if not then check if a proper crossdomain.xml file in its place(webroot folder).

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

    Server Error in '/' Application.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
    System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.GridView.DataBind() +4
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    On what website/link did you received this error message ??

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
    server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
    How Can i solve this?

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • I try toopen up my e-mails and keep on getting this error:;The requested URL /dc/launch was not found on this server. I use att mail. pls help

    My e-mails worked last night but this morning it did not. My aol emails work just fine only the att mails do not open up.
    Keep on getting this error: The requested URL /dc/launch was not found on this server.

    If you have Panda Cloud Antivirus installed, please see this thread: https://support.mozilla.com/en-US/questions/798059
    Otherwise, follow co-rel's instructions in this one: https://support.mozilla.com/en-US/questions/784695

Maybe you are looking for