http://localhost:7001/index.html
是系统指定的DefaultWebApplication下的index.html
现在我还有一个<application Deployed="true" Name="inet"...........>
我现在想运行http://localhost:7001/index.html
时,系统会自动指向inet这个路径下的index.html
也就是说指定 defaultapplication

解决方案 »

  1.   

    手动修改web.xml
    找到如下这段:
    <Server ListenPort="7001" Name="myserver" NativeIOEnabled="true"
            StdoutDebugEnabled="true" StdoutSeverityLevel="64" TransactionLogFilePrefix="config/mydomain/logs/">
            <ExecuteQueue Name="default" ThreadCount="15"/>
            <WebServer DefaultWebApp="DefaultWebApp"
                LogFileName="./config/mydomain/logs/access.log"
                LoggingEnabled="true" Name="myserver"/>
            <KernelDebug Name="myserver"/>
            <ServerStart Name="myserver"/>
            <ServerDebug Name="myserver"/>
            <Log FileName="config/mydomain/logs/weblogic.log" Name="myserver"/>
            <SSL Enabled="true" ListenPort="7002" Name="myserver"
                ServerCertificateChainFileName="config/mydomain/ca.pem"
                ServerCertificateFileName="config/mydomain/democert.pem" ServerKeyFileName="config/mydomain/demokey.pem"/>
        </Server>把WebServer DefaultWebApp=改成你自己的app,我现在改的是tb。
      

  2.   

    不好意思,我说错了,不是web.xml是weblogic的config.xml
      

  3.   

    小问题我前查找"DefaultWebApp"没找到。让你轻松捞分哟
      

  4.   

    我安装了WebLogic 可启动的时候出现了点问题,要我输入password。哪位大侠能帮我指点指点啊?..\bea\user_project\mydomain\startWeblogic.cmd中的这两行
    set WLS_USER=
    set WLS_PW=改为
    set WLS_USER=asd
    set WLS_PW=12345678试了,不行啊