Problem deploying web application on WLS 8.1

Hi,
When I try to deploy a web application on weblogic 8.1 it comes back with success.But
trying to access it or testing it through admin console gives me the following
erors -
403 - Forbidden or
404 - Not found
Here is what I am doing
My web application is in a war file called paypluscls.war that I've saved inD:\bea\user_projects\domains\mydomain\applications
folder. My weblogic.xml reads like this:
<weblogic-web-app>
<virtual-directory-mapping>
<local-path>d:/bea/user_projects/domains/m
<url-pattern>/paypluscls/*</url-pattern>
</virtual-directory-mapping>
On deploying the application I get success message, but when I try running it
using the following in my browser : http://127.0.0.1:7001/paypluscls i get 403
forbidden error
and if I try http://127.0.0.1:7001/paypluscls/index.htm , i get 404 file not found
error. Please note that index.htm is present in my paypluscls.war.
What am I doing wrong? A quick response will be highly appreciated.

Define a context-root element in weblogic.xml
<weblogic-web-app>
<context-root>paypluscls</context-root>
</weblogic-web-app>
Get index.htm with url:
http://127.0.0.1:7001/paypluscls/index.htm
"vikas" <[email protected]> wrote:
>
Hi,
When I try to deploy a web application on weblogic 8.1 it comes back
with success.But
trying to access it or testing it through admin console gives me the
following
erors -
403 - Forbidden or
404 - Not found
Here is what I am doing
My web application is in a war file called paypluscls.war that I've saved
inD:\bea\user_projects\domains\mydomain\applications
folder. My weblogic.xml reads like this:
<weblogic-web-app>
<virtual-directory-mapping>
<local-path>d:/bea/user_projects/domains/m
<url-pattern>/paypluscls/*</url-pattern>
</virtual-directory-mapping>
On deploying the application I get success message, but when I try running
it
using the following in my browser : http://127.0.0.1:7001/paypluscls
i get 403
forbidden error
and if I try http://127.0.0.1:7001/paypluscls/index.htm , i get 404 file
not found
error. Please note that index.htm is present in my paypluscls.war.
What am I doing wrong? A quick response will be highly appreciated.

Similar Messages

  • Serious problems deploying web application with enterprise manager

    Hi all,
    First I have to say that this thing that has happened to me today is freaking bizarre... I was trying to make a new deployment of a web application on OAS 10.1.2, using the Enterprise Manager. The application is using Spring and DWR, therefore it has some XML files included. The application worked perfect in JDeveloper 9.0.4, our development tool, and I've previously developed very similar applications in the past, and deployed them on the same server without any problem.
    Today, when I was trying to deploy my .ear file, I got this error message:
    The file specified, "FindAnExpert.ear" is not a valid ear file.
    I tried with the .war file, and this happened:
    Base Exception:
    java.util.zip.ZipException
    invalid END header (bad central directory offset). invalid END header (bad central directory offset)
    I checked that all the included .jar files were fine, I even replaced them with new ones. I started to remove files from the .war file and discovered that without the XML files I was able to deploy the application. Then I copied over those XML files through FTP and the application is working correctly, but I was not able to use the Enterprise Manager to deploy it!!! The XML files are well formed, on of them contains the details of a data source that I also reviewed to be sure that it was correctly configured... This is nuts... any ideas over there???
    Thanks in advance,
    Luis

    Luis,
    If all of the files uploaded piecemeal worked fine, then I believe your problem to be with your deployment descriptor(s). Also, note that the .war file lives in a different directory:
    C:\oc4j\j2ee\home\applications\Application-Name
    Perhaps if you have time you could post all of the associated deployment descriptor files. Log files from the C:\oc4j\j2ee\home\log\oc4j directory would also help to troubleshoot your deployment issues. You can turn up the logging level to "FINEST" for maximum output to your log file.
    -Michael

  • Failed to deploy web application with same name twice

    Hello-
    On Oracle 10g Application server I deployed an WAR file called "anbadmin", then undeployed it. The undepoloyment failed from the OEM so I undeployed it manually via removing its entries from server.xml.
    When I tried to deploy it again with the same name I got this:
    Failed to deploy web application "anbadmin". Failed to deploy web application "anbadmin". . The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
    Resolution:
    Please call Oracle support.
    Base Exception:
    java.lang.NoSuchMethodError
    null. java.lang.NoSuchMethodError
    Is there a solution for this?
    Regards

    I think I know the solution. We encountered exactly same message and no further deployment could be made. It appeared message in "dcmctl" utility was much more helpfull than the one in EM (though you still have to use "getError" command...)
    If you are using file-based repository, you have to issue command in dcmctl utility "resetFileTransaction". This closes repository and opens it again.
    Myrra

  • IWS60SP4 Additional Document Directories Problem with Web Application

    We have iPlanet/Sunone WebServer 6.0 Service Pack 4 installed. I have deployed a web application using the wdeploy command line. I have defined an additional document directory that is outside of the web application and document root. No matter how many ways I try it, it seems to expect that the document root is the source of the files and totally ignores the additional document directory definition.
    Example:
    additional document directory: /add /opt/dir1/dir2
    document root: /opt/doc/root
    URL given: http://my.domain.com/uri/add/file.html
    expected: to get file.html out of /opt/dir1/dir2
    actual: fails, trying to get /opt/doc/root/add/file.html
    Do additional document directories actually work? (They worked for us under iPlanet 4.1) If so, please tell me how to make them work with a deployed web application.
    Thank you.
    - Tom

    In the original post you state:
    Example:
    additional document directory: /add /opt/dir1/dir2
    document root: /opt/doc/root
    URL given: http://my.domain.com/uri/add/file.html
    expected: to get file.html out of /opt/dir1/dir2
    actual: fails, trying to get /opt/doc/root/add/file.html
    You are mapping /add to the new dir. The URL you would need to type then is:
    http://my.domain.com/add/file.html
    not
    http://my.domain.com/uri/add/file.html
    Mapping /add to a new dir will work. You do not need to specify /uri/add.

  • Failed in deploying Web Application (.ear file)

    I am trying to deploy a web application (file1.ear) but I got FileNotFoundException
    in webnohup.out.
    I did include this application in config.xml, as follows:
    <Application Deployed="true" Name="file1" Path="opt/weblogic6/config/ejbjars/file1.ear">
    <EJBComponent Name="EJB1" Targets="mysrv" URI="EJB1.jar"/>
    <WebAppComponent Name="App1" Targets="mysrv" URI="App1.war"/>
    <EJBComponent Name="EJB2" Targets="mysrv" URI="EJB2.jar"/>
    </Application>
    In webnohup.out file, the following exception is thrown:
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <Application care:Name=file1,Type=Application
    not found at ./opt/weblogic6/config/ejbjars/file1.ear>
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <IOException opening application
    care:Name=file1,Type=Application, loading from path opt/weblogic6/config/ejbjars/file1.ear
    java.io.FileNotFoundException: file does not exist: ./opt/weblogic6/config/ejbjars/file1.ear
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:431)
    at weblogic.management.mbeans.custom.Application.load(Application.java:3
    87)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    If you looked at the exception, it looks like that we can not put ABSOLUTE PATH
    in Path of config.xml since it will append the Weblogic home to the Path defined
    in config.xml.
    Is this correct or I missed anything?
    How do we use ABSOLUTE PATH in config.xml if you want to deploy Web application?
    Environment: SUNOS, Weblogic 6.1.
    Thanks

    Hi,
    specifying a leading slash shoul be enough to let the system know that it is an absolute path.
    Regards,
    Christian Buchegger
    Developer Relations Engineer
    BEA Support
    TJ schrieb:
    I am trying to deploy a web application (file1.ear) but I got FileNotFoundException
    in webnohup.out.
    I did include this application in config.xml, as follows:
    <Application Deployed="true" Name="file1" Path="opt/weblogic6/config/ejbjars/file1.ear">
    <EJBComponent Name="EJB1" Targets="mysrv" URI="EJB1.jar"/>
    <WebAppComponent Name="App1" Targets="mysrv" URI="App1.war"/>
    <EJBComponent Name="EJB2" Targets="mysrv" URI="EJB2.jar"/>
    </Application>
    In webnohup.out file, the following exception is thrown:
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <Application care:Name=file1,Type=Application
    not found at ./opt/weblogic6/config/ejbjars/file1.ear>
    <Mar 20, 2002 4:52:39 PM EST> <Error> <Management> <IOException opening application
    care:Name=file1,Type=Application, loading from path opt/weblogic6/config/ejbjars/file1.ear
    java.io.FileNotFoundException: file does not exist: ./opt/weblogic6/config/ejbjars/file1.ear
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:431)
    at weblogic.management.mbeans.custom.Application.load(Application.java:3
    87)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:636)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    java:621)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:359)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    If you looked at the exception, it looks like that we can not put ABSOLUTE PATH
    in Path of config.xml since it will append the Weblogic home to the Path defined
    in config.xml.
    Is this correct or I missed anything?
    How do we use ABSOLUTE PATH in config.xml if you want to deploy Web application?
    Environment: SUNOS, Weblogic 6.1.
    Thanks

  • How to deploy web application to Weblogic?

    Does anyone know how to deploy web application to Weblogic8.1?

    Hello,
    I found one error in what I have done. I add the '<context-root>' in '<weblogic-web-app>', which are not required in some other containers, and I can find the application of hello2. However, when I clicked 'submit' I got the following message:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: java/lang/StringBuilder
         at servlets.ResponseServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    I do not want to make changes in 'web.xml' file as it worked in other container. I guess I miss something that is special, probably basic, to WebLogic, but I do not know what it is.
    Bye the way, who know how to reward points to other people? I cannot find the 'assign points icon'.
    Thanks hoos. Your answer give me confidence that a web application could be deployed by copy war file to some directory (I guess from my experience of other containers).

  • How to deploy web application .war file into SAP NetWeaver Engine?

    Hi All,
    I want to deploy web application which is developped using JAVA web technology into SAP netweaver Engine.
    I tried to deploy .war file through SDM but it complained the following error
    - Hide quoted text -
    "Error loading archive
    C;\Document and Settings\cr1adm\Desktop\MyProject.war
      (server side name is: F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)
    com.sap.sdm.util.sduread.IIIFormattedSduFileException: The information about development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    (F:\usr\sap\JR1\JC01\SDM\program\temp\MyProject.war)"
    Can any one please suggest how to deploy external web application into SAP netweaver engine.
    Is there any procedure to follow to do this.
    your inputs will be highly appreciated...
    Thanks in advance

    Hi,
    I think first you need to wrap it into an EAR file, then you can deploy it.
    As far as I know standalone deployment of WAR is deprecated as of 640.
    similar threads:
    How to deploy .war on NWDI
    Deploying an existing WAR file into the Portal
    Hopefully this tutorial also gives some idea:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Regards,
    Ervin

  • WEB Server And Database Space requirements for deploying Web Application

       Hi,
         We are in requirement of WEB Server  And Database Space requirements for deploying  our Web Application in cloud server. We want to know technical requirements and feasibilities laid by Microsoft team for deploying web
    application.......
    Regards,
    Sreenivasa M S

    Hi,
    Please refer this link and check if it helps:
    http://blogs.technet.com/b/cbernier/archive/2013/09/24/deploy-your-web-application-to-windows-azure-from-with-visual-studio.aspx
    Regards,
    Azam Khan

  • Deploy web application in jbuilder 9 with weblogic 7 problem

    when i create a web application and a servlet, and deploy it in jbuilder 9 with weblogic 7.0 ,jbuilder 9 showed me the error,please tell me why, when i choose "redeploy" ,it can be normally work..
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    Usage: java weblogic.Deployer [options] [-activate|-deactivate|-remove|-unprepare|-cancel|-list] [files]
    where options include:
    -help Print this help message.
    -version Print version information.
    -adminurl <https://<server>:<port>> The URL of the administration server: default
    http://localhost:7001
    -user <user> A user other than the default of
    "installadministrator"
    -password <password> Specifies the password on the command line.
    If this option is absent the user is
    prompted.
    -verbose Displays additional status during the
    deployment process, including notifications
    when the application is prepared and
    activated on each target.
    -debug Displays debug level messages to the standard
    output.
    -examples Display example usage of this tool.
    -upload Causes the specified source file(s) to be
    transferred to the adminstration server. This
    is used when the Deployer tools is not being
    used on the same machine as the adminstration
    server and the user does not otherwise have
    access to place the targeted files on the
    adminstration server.
    -delete_files Causes the server to remove the files that
    are specified in the file list and leave the
    application activated. This option is valid
    only for unarchived web applications.
    -remote Signals that the tools is not runnning on the
    same machine as the adminstration server and
    that the source path should be made passed
    through unchanged as it represents the path
    on the remote server.
    -nostage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged and the
    original source is be used.
    -external_stage Sets the stagingMethod attribute on the
    application mbean when it is created so that
    the application will not be staged but the
    value of the staging path will be used when
    preparing the application.
    -stage Sets the stagingMethod staging attribute on
    the application when it is created so that
    the application will always be staged. This
    value will override the stagingMethod
    attribute on any targeted servers.
    -nowait Once the action is initiated the tool will
    print the task id and exit. This is used to
    initiate multiple tasks and then monitor them
    later using the -list action.
    -timeout <seconds> The maximum time in seconds to wait for the
    completion of the deployment task. When the
    time expires the current status is printed
    and the program exits.
    -source <archive file or directory> Location of the file or directory that
    represents the enterprise component or
    application tha is being (re)activated. If
    the source file is relative it is relative to
    the current directory, unless the -remote
    option is used. To specify individual files
    within an application for reployment or
    addition list them at the end of the command
    line.
    -name <application name> The name of the application being deployed.
    -targets <<server 1>,...<component>@<server N>> A comma separated list of the server and/or
    cluster names. Each target may be qualified
    with a J2EE component name. This enables
    different components of the archive to
    deployed on different servers.
    -id <task identifier> Optional client supplied unique identifier
    for the deployment task. The id is first
    specified to -activate, -deactivate,
    -unprepare or -remove. It is then used later
    as an argument to -cancel or -list.
    -activate (Re)activates the <source> application on the
    <targets> with the <name>.
    -deactivate Deactivates the application <name> on the
    <targets> leaving an staged application files
    in a state where the may be quickly
    reactivated.
    -unprepare Deactivates and unloads classes for the
    application <name> on the <targets> leaving
    an staged application files in a state where
    the may be quickly reloaded.
    -remove Deactivates the application <name> on the
    <target> and removes any files that were
    staged for this application. If there are no
    longer any targets for the application, the
    associated configuration is completely
    removed.
    -cancel Atempts to cancel the task <id> if it is has
    not yet completed.
    -list Lists the target status of each task <id>
    -deploy a convenient alias for activate.
    -undeploy a convenient alias for unprepare.
    Optionally a list of the specific files in the archive that are to be
    redeployed may be specified. If a directory is specified the entire subtree is
    redeployed.
    Full documentation on this tool is available at:
    http://edocs.beasys.com/wls/docs70/adminguide/utils.html#1138475
    No actions was specified. Please specify one and only one of:
    -activate, -deactivate, -cancel, -remove, -unprepare, or -list.
    Type java weblogic.Deployer -examples for example usage.

    you use "deploy" under DOS-Mode to deploy your web application?
    i found some differences between "deploy" and "redeploy" function in jbuilder 9.
    when i choose "deploy" ,jbuilder shows me the commond below:
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -deploy -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility
    when i choose redeploy,it shows me: (the -deploy parameter has changed to -activate) ,maybe it's a bug.
    E:\bea\jdk131_02\bin\javaw -classpath E:\bea\weblogic700\server\lib\weblogic.jar;E:\bea\weblogic700\server\lib\webservices.jar;E:\bea\weblogic700\server\lib\weblogic_sp.jar; weblogic.Deployer -user system -adminurl http://localhost:7001 -password 12345678 -activate -name firstWebApp -upload -source E:/J2EE/servlet/firstWebApp.war -targets myserver
    WebLogic Application Deployment Utility

  • Deploy web applications using JSF 1.2  or JSF 2.0 to WLS 10.3.5

    Hello,
    We have ADF web applications developed with JDeveloper 11.1.1 (using JSF 1.2 and JSTL 1.1)
    deployed on WebLogic server 10.3.4.
    Our department plans to :
    1. upgrade to WebLogic server 10.3.5 with the ADF Runtime 11.1.2.0.
    and
    2. develop new ADF web applications using JDeveloper 11.1.2 (using JSF 2.0 and JSTL 1.2)
    My 2 questions are the following:
    1. Can we deploy all JSF 1.2, JSF 2.0, JSTL 1.1, and JSTL1.2 WAR files on the
    WebLogic server 10.3.5 with the ADF Run-time 11.1.2.0.
    2. Can we deploy existing ADF web applications developed with JDeveloper 11.1.1 (using JSF 1.2 ,JSTL 1.1)
    and new ADF web applications using JDeveloper 11.1.2 (using JSF 2.0 and JSTL 1.2) to the WebLogic server 10.3.5 with the ADF Runtime 11.1.2.0
    Any insights will be greatly appreciated.
    Thanks

    1) That should work
    2) old adf app (developed with jdve 11.1.1.x.0) need to be migrated to jdev 11.1.2
    You can also check out my blog entry about the jdev wls versions here http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions
    Timo

  • Problems with deployed web applications

    Hi,
              currently we use Weblogic 6.0 and i decided to try Weblogic 6.1 beta. So i deployed our application which was working on Weblogic 6.0 on the newly installed Weblogic 6.1 beta. Now when i try to access my application i recieve the following error page:
              Compilation of 'D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_servlet\_ngroot\_web\__index.java' failed:
              D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_servlet\_ngroot\_web\__index.java:165: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
              (No more information available, probably caused by another error)
              Full compiler error(s):
              D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_servlet\_ngroot\_web\__index.java:165: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
              pageContext.handlePageException(__ee);
              ^
              1 error
              Wed Jun 20 17:27:28 EEST 2001
              Does anyone know what could cause the problem ?
              Any help will be appreciated.
              Bybye.
              [att1.html]
              

              I have the same problem. My apps work in WebLogic 6.0, but not in 6.1 beta. Is
              it compatibility issue?
              Andi
              "Michael Li" <[email protected]> wrote:
              >Hi all,
              >
              >Anybody resolve this problem yet? We are experiencing the same problem
              >here.
              >
              >Thanks,
              >Michael
              >
              >===
              >"Evgenya Borisenko" <[email protected]> wrote in message
              >news:[email protected]...
              >Sure,
              >here goes:
              >
              >####<10:23:37 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.html: init>
              >####<10:23:37 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.html: Using standard I/O>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >init>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param verbose initialized to: true>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param packagePrefix initialized to: jsp_servlet>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param compilerclass initialized to: javac>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param srcCompiler initialized to weblogic.jspc>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param superclass initialized to null>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param workingDir initialized to:
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >param pageCheckSeconds initialized to: 1>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >initialization complete>
              >####<10:23:44 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >*.jsp:
              >pageCheckSeconds over-ruled in JSPServlet to : 1>
              >####<10:23:45 EEST 24/06/2001> <Info> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101047>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >Generated java file:
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java>
              >####<10:23:53 EEST 24/06/2001> <Error> <HTTP> <evgenya> <evgyServer>
              ><ExecuteThread: '11' for queue: 'default'> <> <> <101046>
              ><[WebAppServletContext(8059329,WebApp_evgyServer,/WebApp_evgyServer)]
              >Compilation of
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java failed:
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java:165:
              >handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
              >cannot be applied to (java.lang.Throwable)
              > pageContext.handlePageException(__ee);
              > ^
              >1 error
              >>
              >java.io.IOException: Compiler failed
              >executable.exec(java.lang.String[d:\bea\jdk131\bin\javac.exe, -classpath,
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotd
              >elete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_
              >evgyServer\WEB-INF\lib\993367393172activation.jar;D:\bea\wlserver6.1_beta\.\
              >config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_t
              >mp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367393212ant.j
              >ar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyS
              >erver\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\
              >WEB-INF\lib\993367393532bsf.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\ap
              >plications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_
              >evgyServer_WebApp_evgyServer\WEB-INF\lib\993367393613concurrent_classes.jar;
              >D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServ
              >er\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB
              >-INF\lib\993367393673cos.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\appli
              >cations\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evg
              >yServer_WebApp_evgyServer\WEB-INF\lib\993367393763dbConnBroker.jar;D:\bea\wl
              >server6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_com
              >p51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\
              >993367393773jasper.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\application
              >s\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServe
              >r_WebApp_evgyServer\WEB-INF\lib\993367393823java40.jar;D:\bea\wlserver6.1_be
              >ta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-I
              >NF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367394103
              >jaxp.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete
              >_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyS
              >erver\WEB-INF\lib\993367394133jsdt.jar;D:\bea\wlserver6.1_beta\.\config\mydo
              >main\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgy
              >Server_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367394263junit.jar;D:\bea
              >\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_
              >comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\l
              >ib\993367394324Jwap-0.7.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applic
              >ations\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgy
              >Server_WebApp_evgyServer\WEB-INF\lib\993367394354log.jar;D:\bea\wlserver6.1_
              >beta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB
              >-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\9933673943
              >74mail.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdele
              >te_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evg
              >yServer\WEB-INF\lib\993367394404orajdbc816-12.jar;D:\bea\wlserver6.1_beta\.\
              >config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_t
              >mp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367394484parse
              >r.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_ev
              >gyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServ
              >er\WEB-INF\lib\993367394514servlet.jar;D:\bea\wlserver6.1_beta\.\config\mydo
              >main\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgy
              >Server_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367394544webserver.jar;D:
              >\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-I
              >NF\lib\993367394584xalan.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\appli
              >cations\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evg
              >yServer_WebApp_evgyServer\WEB-INF\lib\993367394634xerces.jar;D:\bea\wlserver
              >6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442
              >\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\993367
              >394914_log.jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnot
              >delete_evgyServer\wl_comp51442\WEB-INF\classes;D:\bea\wlserver6.1_beta\confi
              >g\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_wa
              >r_evgyServer_evgyServer_WebApp_evgyServer;D:\bea\wlserver6.1_beta\.\config\m
              >ydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\WEB-INF\_tmp_war_e
              >vgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\jaxp.jar;D:\bea\wlserver6
              >..1_beta\.\config\mydomain\applications\.wlnotdelete_evgyServer\wl_comp51442\
              >WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\WEB-INF\lib\xerces.
              >jar;D:\bea\wlserver6.1_beta\.\config\mydomain\applications\.wlnotdelete_evgy
              >Server\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer
              >\WEB-INF\lib\crimson.jar;d:\bea\jdk131\jre\lib\rt.jar;d:\bea\jdk131\jre\lib\
              >i18n.jar;d:\bea\jdk131\jre\lib\sunrsasign.jar;d:\bea\jdk131\jre\classes;.;D:
              >\bea\wlserver6.1_beta\config\mydomain\applications\WebApp_evgyServer\WEB-INF
              >\lib\xerces.jar;D:\bea\wlserver6.1_beta\config\mydomain\applications\WebApp_
              >evgyServer\WEB-INF\lib\xalan.jar;D:\bea\wlserver6.1_beta\config\mydomain\app
              >lications\WebApp_evgyServer\WEB-INF\lib\mail.jar;D:\bea\wlserver6.1_beta\con
              >fig\mydomain\applications\WebApp_evgyServer\WEB-INF\lib\activation.jar;.\lib
              >\weblogic_sp.jar;.\lib\weblogic.jar;D:\bea\wlserver6.1_beta\config\mydomain\
              >applications\WebApp_evgyServer\WEB-INF\lib\bsf.jar;D:\bea\wlserver6.1_beta\c
              >onfig\mydomain\applications\WebApp_evgyServer\WEB-INF\lib\concurrent_classes
              >..jar;D:\bea\wlserver6.1_beta\config\mydomain\applications\WebApp_evgyServer\
              >WEB-INF\lib\cos.jar;D:\bea\wlserver6.1_beta\config\mydomain\applications\Web
              >App_evgyServer\WEB-INF\lib\dbConnBroker.jar;D:\bea\wlserver6.1_beta\config\m
              >ydomain\applications\WebApp_evgyServer\WEB-INF\lib\log.jar;D:\bea\wlserver6.
              >1_beta\config\mydomain\applications\WebApp_evgyServer\WEB-INF\lib\orajdbc816
              >-12.jar;D:\bea\wlserver6.0\config\mydomain\applications\WebApp_evgyServer\WE
              >B-INF\classes, -d,
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer,
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp51442\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java])
              > at
              >weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              >a:575)
              > at
              >weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
              > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:360)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:181)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:149)
              > at
              >weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:34
              >4)
              > at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:240)
              > at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:284)
              > at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:200)
              > at
              >weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              >ntext.java:2279)
              > at
              >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              >:1923)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              >
              >hope that helps.
              >10x alot.
              >"Srinagesh Susarla" <[email protected]> wrote in message
              >news:[email protected]...
              >can u send the server side error-message!
              >thanks
              >nagesh
              >Evgenya Borisenko wrote:
              >Hi, currently we use Weblogic 6.0 and i decided to try Weblogic 6.1 beta.
              >So
              >i deployed our application which was working on Weblogic 6.0 on the newly
              >installed Weblogic 6.1 beta. Now when i try to access my application
              >i
              >recieve the following error page: Compilation of
              >'D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServe
              >r\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_
              >servlet\_ngroot\_web\__index.java' failed:
              >
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java:165:
              >handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
              >cannot be applied to (java.lang.Throwable)
              >(No more information available, probably caused by another error)
              >
              >
              >Full compiler error(s):
              >D:\bea\wlserver6.1_beta\config\mydomain\applications\.wlnotdelete_evgyServer
              >\wl_comp28255\WEB-INF\_tmp_war_evgyServer_evgyServer_WebApp_evgyServer\jsp_s
              >ervlet\_ngroot\_web\__index.java:165:
              >handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
              >cannot be applied to (java.lang.Throwable)
              > pageContext.handlePageException(__ee);
              > ^
              >1 error
              >
              >
              >Wed Jun 20 17:27:28 EEST 2001 Does anyone know what could cause the problem
              >? Any help will be appreciated.Bybye.
              >
              >
              

  • Problem in web application deployment in weblogic 8.1

    hiiiiiiiii freinds!
    i am a newcomer in the field of servlets and JSPs.Me and my freinds are developing a client/server chat application but i am facing a problem in transferring the control from one JSP to another JSP.I am using Oracle 10g and weblogic 8.1upon clicking the submit button at login.jsp i am seeing following message at web browser.
    /loginhandler.jsp(4): class 'com.mycompany.login.Login' could not be loaded
    probably occurred due to an error in /loginhandler.jsp line 4:
    <jsp:useBean id="idHandler" class="com.mycompany.login.Login" scope="request" />
    codes for JSPs and bean class aregiven below-
    login.jsp
       1. <html> 
       2. <head><title></title> 
       3. <script language="javascript"> 
       4. function Validate(){ 
       5. var name=document.frm.userName 
       6. var password=document.frm.passWord 
       7.  
       8. if ((name.value==null)||(password.value=="")){ 
       9. alert("Please Enter user name") 
      10. user.focus() 
      11. return false 
      12. } 
      13. if ((name.value==null)||(password.value=="")){ 
      14. alert("Please Enter password") 
      15. pass.focus() 
      16. return false 
      17. } 
      18. return true 
      19. } 
      20. </script> 
      21. </head> 
      22. <body> 
      23. <form method="post" action="loginhandler.jsp"> 
      24. username - <input type="text" name="userName"><br> 
      25. password - <input type="password" name="passWord"><br> 
      26. <input type="submit" value="Submit"> 
      27. <input type="reset" value="Reset"> 
      28. </form> 
      29. <jsp:include page="showformat.jsp"/> 
      30. </body> 
      31. </html>  loginhandler.jsp
       1. <%@page contentType="text/html"%> 
       2. <%@page pageEncoding="UTF-8"%> 
       3. <%@page import="java.util.*" %> 
       4. <jsp:useBean id="idHandler" class="com.mycompany.login.Login" scope="request" /> 
       5. <jsp:setProperty name="idHandler" property="*" /> 
       6. </jsp:useBean> 
       7. <html> 
       8. <head><title></title></head> 
       9. <body> 
      10. <% 
      11. String userName = request.getParameter("userName"); 
      12. String passWord = request.getParameter("passWord"); 
      13. if (idHandler.authenticate(userName, passWord)){ 
      14. response.sendRedirect("welcome.jsp"); 
      15. } else { 
      16. response.sendRedirect("loginfailed.html"); 
      17. } 
      18. %> 
      19. </body> 
      20. </html>  welcome.jsp
       1. <html> 
       2. <head><title>welcome!!!!!!</title></head> 
       3. <body> 
       4. <% 
       5. String name=(String)request.getAttribute("userName"); 
       6. out.println("Welcome" +name); 
       7. %> 
       8. </body> 
       9. </html>  login.java
       1. package com.mycompany.login; 
       2. import java.sql.*; 
       3. import java.io.*; 
       4.  
       5. public class Login  
       6. { 
       7. //default constructor 
       8. public Login(){} 
       9. //method for the database connection 
      10. public Connection getConnection() 
      11. throws IOException{ 
      12. Connection conn = null; 
      13. try{ 
      14. Class.forName("oracle.jdbc.driver.OracleDriver"); 
      15. conn = DriverManager.getConnection( 
      16. "jdbc:oracle:thin:@localhost:1521:xe", 
      17. "system", 
      18. "abcdefgh"); 
      19. } 
      20. catch(SQLException e) 
      21. { 
      22. System.out.println("SQLException: " + e.getMessage()); 
      23. while((e = e.getNextException()) != null) 
      24. System.out.println(e.getMessage()); 
      25. } 
      26. catch(ClassNotFoundException e) 
      27. { 
      28. System.out.println("ClassNotFoundException: " + e.getMessage()); 
      29. } 
      30. return conn; 
      31. } 
      32. //method that is called from validateuser.jsp and this checks for the authentic user and 
      33. public boolean authenticate(String user, String pass) 
      34. throws SQLException, IOException{ 
      35. String Username = null, Password = null; 
      36. Login dbconn = new Login(); 
      37. Statement stmt = dbconn.getConnection().createStatement(); 
      38. String sql = "SELECT USER_NAME, PASS_WORD FROM LOGINDETAILS WHERE USER_NAME='" + user + "'" + "AND PASS_WORD='" + pass + "'"; 
      39. ResultSet rs = stmt.executeQuery(sql); 
      40. if(rs.next()){ 
      41. Username = rs.getString("USER_NAME"); 
      42. Password = rs.getString("PASS_WORD"); 
      43. } 
      44. if(Username != null && Password != null && user.equals(Username) && pass.equals(Password)){ 
      45. return true; 
      46. } 
      47. else return false; 
      48. } 
      49. }  it is requested that please don't neglect or ignore any programming error in pages as i am a newcomer in the field of web development.also suggest some good content and study material for developing interactive and user freindly chat client/server web application.reply as soon as possible!

    ya i have done it and i have put it under the sub directories of classes directory and also included the import also i have modified the codes but problem is same.
    login.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.*, java.text.*" errorPage="" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title></title>
    <script language="javascript">
    function Validate(){
    var name=document.frm.userName
    var password=document.frm.passWord
    if ((name.value==null)||(password.value=="")){
    alert("Please Enter user name")
    user.focus()
    return false
    if ((name.value==null)||(password.value=="")){
    alert("Please Enter password")
    pass.focus()
    return false
    return true
    </script>
    </head>
    <body>
    <form method="post" action="loginhandler.jsp">
    username - <input type="text" name="userName"><br>
    password - <input type="password" name="passWord"><br>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    <br><br><br><br><br><br><br>  &nbsp
    </form>
    <jsp:include page="showformat.jsp"/>
    </body>
    </html>loginhandler.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"><%@page contentType="text/html"%>
    <%@ page pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
    <%@ page import="com.mycompany.login" %>
    <jsp:useBean id="idHandler" class="com.mycompany.login.Login" scope="session">
    <jsp:setProperty name="idHandler" property="userName" />
    <jsp:setProperty name="idHandler" property="passWord" />
    </jsp:useBean>
    <html>
    <head><title></title></head>
    <%
    String userName = request.getParameter("userName");
    String passWord = request.getParameter("passWord");
    if(userName == null)
    userName = "";
    if(passWord == null)
    passWord = "";
    if(!userName.equals("") && !password.equals("")){
    session.setAttribute("User", userName);
    session.setAttribute("Password", passWord);
    if (idHandler.authenticate(userName, passWord)){
    response.sendRedirect("welcome.jsp");
    } else {
    response.sendRedirect("loginfailed.html");
    %>
    <body></body>
    </html>welcome.jsp
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*, java.io.*, java.util.*, java.text.*" errorPage="" %>
    <%@ page import="com.mycompany.login" %>
    <jsp:getProperty name="idHandler" property="*">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title>welcome!!!!!!</title></head>
    <body>
    <%
    String name=(String)session.getAttribute("User");
    out.println("Welcome" +name);
    %>
    </body>
    </html>
    (code)
    login.javapackage com.mycompany.login;
    import java.sql.*;
    import java.io.*;
    public class Login {
    String Username = null, Password = null;
    //default constructor
    public Login(){}
    //method for the database connection
    public Connection getConnection()
    throws IOException{
    Connection conn = null;
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@localhost:1521:xe",
    "system",
    "abcdefgh");
    catch(SQLException e)
    System.out.println("SQLException: " + e.getMessage());
    while((e = e.getNextException()) != null)
    System.out.println(e.getMessage());
    catch(ClassNotFoundException e)
    System.out.println("ClassNotFoundException: " + e.getMessage());
    return conn;
    //method that is called from loginhandler.jsp and this checks for the authentic user and
    public boolean authenticate(String user, String pass)
    throws SQLException, IOException{
    Login dbconn = new Login();
    Statement stmt = dbconn.getConnection().createStatement();
    String sql = "SELECT USER_NAME, PASS_WORD FROM LOGINDETAILS WHERE USER_NAME='" + user + "'" + "AND PASS_WORD='" + pass + "'";
    ResultSet rs = stmt.executeQuery(sql);
    if(rs.next()){
    Username = rs.getString("USER_NAME");
    Password = rs.getString("PASS_WORD");
    if(Username != null && Password != null && user.equals(Username) && pass.equals(Password)){
    return true;
    else return false;
    public void setUsername(String name)
    Username=name;
    public String getUsername()
    return Username;
    public void setPassword(String password)
    Password=password;
    public String getPassword()
    return Password;

  • Probloms deploying web application in weblogic 8.1

    Hi,
    I've been using weblogic8.1 to host my web applications.
    The problem that i'm facing is that when i try to upload/deploy the (.war) file through weblogic console it shows the status as success but when i try to access a web resource, it gives me an error saying " The resource did not process correctly" on the browser, where as when i place the (.war) file directly in the applications folder of the user domain i'm able to access the web resource successfully on my browser.
    Can anyone help me in resolving this issue. I require it urgently.
    Thanks

    WLS 9.2 includes pretty advanced features in this area. Both deployment plans and application libraries could be used. There's also a domain/lib directory where jar files can be placed and are visible throughout the server instance.
              Unfortunately 8.1 has none of these features. In 8.1, your choices are to either add these into the $CLASSPATH, or package them in the application.
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problem deploying an application with more task flow

    Hi all,
    I am using Jdeveloper 11.1.1.0 and weblogic 10.3.1
    I am trying to deploy an application that has more task flows.
    I am in the home page and I click on a button and I go to a new task flow.
    If I run the application from Jdeveloper it works, but if I deploy the application and try to do it I have this error on the page .jspx:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    and this error on the server log:
    servlet failed with Exception oracle.adf.controller.security.AuthorizationException:ADFC-0619: Can't check authorization at:
    '/myFolder/calledTaskFlow.xml#myViewActivityoracle.adf.controller.internal.security.AuthorizationEnforcer.handleFailure<AuthorizationEnforcer.java:147>
    oracle.adf.controller.internal.security.AuthorizationEnforcer.checkPermission
    oracle.adf.controller.internal.security.AuthorizationEnforcer.checkRead
    oracle.adf.controller.internal.security.AuthorizationEnforcer.getTaskFlowDefinition
    oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.findTaskFlowDefinition
    What's the problem?
    Thanks
    Edited by: user10799119 on 2-set-2009 6.27

    I have not understood well what you mean: "Its better you create an EAR profile, have proper ADF Security set up in Jdev with users and roles, and also proper roles and permissions assigned to taskflows, and then deploy the profile directly from JDev."
    I have proper ADF Security set up in Jdev with users and roles, and also proper roles and permissions assigned to taskflows, and then deploy the profile directly from JDev. After that I have deployed my application to EAR file. I am using the EAR file create by default by Jdeveloper. Is this correct? Or have I to create another profile?
    "If you still wanna deploy the EAR, check the Users and Roles section under security in the Weblogic console. Users and Roles need to be configured in Weblogic as well. In 11g they get deployed automatically but with any previous version of Jdev you might have to check this in the WLS console."
    In the weblogic console, clicking on Security realms --> myRealm --> providers, I have defined myAuthenticator
    I am using Jdeveloper 11.1.1.0 and web logic server 10.3.1, so it seems to me that users and roles get deployed automatically
    what have I to do?
    thanks

  • Error deploying Web application

    Hello Everyone, i have a problem with my web application that is not able to be deployed.
    the first time i deployed the application everything worked correctly i performed the contex lookup with no problem as was able to connect to the EJB application, i performed some changes, and now everytime i tried to deploy again the application i get this error
    [#|2010-02-12T23:03:34.661+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=23;_ThreadName=Thread-434;Servlet;WebServiceInterface;http://vmlinux:8024/WebServiceInterface/WebServiceInterface;|DPL5306:Servlet Web Service Endpoint [WebServiceInterface] listening at address [http://vmlinux:8024/WebServiceInterface/WebServiceInterface]|#]
    [#|2010-02-12T23:03:38.107+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=23;_ThreadName=Thread-434;_RequestID=3610621f-da38-477d-b37a-088311a00a42;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.testing.myEJBapplication.ReferenceServiceLocalBean/entityManager] in the scope of the module called [product/servers/glassfish/domains/domain1/applications/j2ee-modules/WebServiceInterface]. Please verify your application.
         at com.sun.enterprise.deployment.BundleDescriptor.findReferencedPUsViaPCRefs(BundleDescriptor.java:702)
         at com.sun.enterprise.deployment.WebBundleDescriptor.findReferencedPUs(WebBundleDescriptor.java:722)
         at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.getAllPersistenceUnitDescriptors(PersistenceProcessor.java:171)
         at com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:132)
         at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
         at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
         at com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
         at com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.handlePostDeployEvent(ModuleDeployer.java:636)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.postDeploy(ModuleDeployer.java:625)
         at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:188)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
    |#]
    any ideas for this?? Thank you in advance regards
    Edited by: White_Merovingian on Feb 13, 2010 5:55 AM

    yeah these stacktraces are big scary blobs of text, but somewhere hidden among all the nonsense there is always the little piece of information you need:
    "Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.testing.myEJBapplication.ReferenceServiceLocalBean/entityManager]"
    So you are referring to a persistence unit in ReferenceServiceLocalBean that does not seem to exist. Do you have your persistence.xml deployed in the META-INF directory of the EJB module? Does it contain a persistence unit with the name that is declared in the bean?

Maybe you are looking for

  • HP LaserJet P1006 not printing

    Just connected my HP LaserJet P1006 to the USB port of my wireless router. When I tried to print my computer went on the Net to download the printer driver. I tried printing again. I got the print dialog box, selected the printer which was connected

  • Import Error

    Cannot import video files straight into Adobe Media Encoder.  I receive the following error when trying to import a video file (I have tried importing multiple video files, including various Apple ProRes .MOV files and .H264 .mp4 files, etc): Adobe M

  • Make it so "Step Backward" does NOT change layers

    Just migrated from CS to CS4. The one change that is KILLING my productivity is Adobe's decision to make "Step Backward" also revert to the prior layer. Previously, I could (when drawing with a brush on my tablet) just click "Step Backward" if I mess

  • Ruined credit by Verizon from a final bill that was NEVER sent

    I have the exact issues as MANY Verizon customers. I was a LOYAL customer for at least 10 years and moved Verizon services with me twice. My last move I wasn't able to use Verizon so I was forced to use another company for internet and cable. Showing

  • Can't download 10.6.4

    I've been trying for days to download the new Mac OS X Update 10.6.4 and I keep getting that grey screen with the black box in the center that says I need to shut the computer down, or the computer just freezes. I have one of the new iMacs from late