放哪都可以,只要在控制台设置正确的路径。

解决方案 »

  1.   

    首先配置你建立的域的:config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain ConfigurationVersion="8.1.0.0" Name="mydomain">
        <Server ListenAddress="" ListenPort="7001" Name="myserver"
            NativeIOEnabled="true" ServerVersion="8.1.0.0">
            <SSL Enabled="false" HostnameVerificationIgnored="false"
                IdentityAndTrustLocations="KeyStores" ListenPort="7002" Name="myserver"/>
        </Server>
        <Application Deployed="true" Name="mainWebApp" Path=".\applications"
            StagingMode="nostage" TwoPhase="true">
            <WebAppComponent Name="mainWebApp" Targets="myserver" URI="mainWebApp"/>
        </Application>
        <Application Deployed="true" Name="struts" Path=".\applications"
            StagingMode="nostage" TwoPhase="true">
            <WebAppComponent Name="struts" Targets="myserver" URI="struts"/>
        </Application>
        <Security Name="mydomain"
            PasswordPolicy="wl_default_password_policy"
            Realm="wl_default_realm" RealmSetup="true"/>
        <EmbeddedLDAP
            Credential="{3DES}D7DLPBRrV951I6vD+tyMTPVguWALjN6kKHFMZTOFmx0=" Name="mydomain"/>
        <SecurityConfiguration
            Credential="{3DES}3vTOnurNGyQjJ46uQSyghoSvALwxclTDUy1XzqKpsTSnlpG0cvulxUD9uU9q68l90njrgtglS2BQ2b2L8UtfsuEZsjpXT+JK"
            Name="mydomain" RealmBootStrapVersion="1"/>
        <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
        <FileRealm Name="wl_default_file_realm"/>
        <PasswordPolicy Name="wl_default_password_policy"/>
        <JDBCConnectionPool DriverName="weblogic.jdbc.oci.Driver"
            Name="boyunpool" Password="{3DES}SVNNgyWrWa0="
            Properties="user=gaosu;codeset=GBK;server=gaosu"
            Targets="myserver" URL="jdbc:weblogic:oracle"/>
        <JDBCTxDataSource JNDIName="boyunds" Name="boyunds"
            PoolName="boyunpool" Targets="myserver"/>
    </Domain>
    ****************************然后在你的域目录下建立指定的文件夹********
    这个配置文件是:
    D:\bea\user_projects\mydomain\applications\mainWebApp
    也就是说在D:\bea\user_projects\mydomain\applications\
    下面建立文件夹mainWebApp
    现在把你的JSP文件放到mainWebApp
    文件夹里面,启动服务器就可以采用:
    http://localhost:7001/mainWebApp/*.jsp
    来进行调用了!