Help Building Simple Web Application

So i've decided to build an online football pool application. I've decided its going to be built in java. I have spent some time going through java tutorials and learning what i can on my own.
I've decided to use Apache Tomcat 4.1 as my web server and jsp/servlet engine. I know i am going to also use SQL Server as my database (i was able to get my hands on a copy)
I want to separate my presentation logic from business logic. I plan on implementing my business logic using java beans that will reside in the web-inf/classes directory of my Tomcat directory.
1) Am I headed in the right direction?
2) Does anyone know of a good hands on book/web site that describes building a web application from the ground up using a similar architecture as described above. I have a lot to learn about java as well but prefer to learn it hands on.
I appreciate any and all feedback.

some interesting links...
http://www.andreasklimke.de/webdev/misc.html
http://www.xml-book.com/xml,-xslt,-java,-and-jsp-a-case-study-in-developing-a-web-application.html
http://java.sun.com/webservices/docs/ea2/tutorial/doc/WebApp13.html

Similar Messages

  • Problem with tutorial; "Build a Web Application with JDeveloper 11g Using "

    I've got a rather new installation of Vista Business x64 on my developer rig, and last week I installed the new JDeveloper 11g version. The installation was all-inclusive, no customization on my end.
    In addition I've got a test installation of an Oracle DB 11gR1 on an available server here.
    To familiarize myself with the new JDeveloper I decided to spend some time with the JDeveloper 11g tutorials found here: http://www.oracle.com/technology/obe/obe11jdev/11/index.html.
    I've started twice on the second tutorial, "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces", and find myself repeatedly stuck at step 19 in section "Creating the Data Model and Testing it".
    It seems impossible to deploy the application to the default application server. The server starts fine on its own, I can access it via the admin console on port 7001 and it looks good. However, when I try to run the HRFacadeBean funny things are happening, symptomized by the following error messages seen in the IDE log-area:
    The "Messages" pane displays:
    "Compiling...
    Context: MakeProjectAndDependenciesCommand application=HR_EJB_JPA_App.jws project=EJBModel.jpr
    C:\Oracle\Middleware\jdk160_05\jre\bin\java.exe -jar C:\Oracle\Middleware\jdeveloper\jdev\lib\ojc.jar -g -warn -nowarn:320 -nowarn:372 -nowarn:412 -nowarn:413 -nowarn:415 -nowarn:486 -nowarn:487 -nowarn:489 -nowarn:556 -nowarn:558 -nowarn:560 -nowarn:561 -nowarn:705 -Xlint:-fallthrough -Xlint:-serial -Xlint:-unchecked -source 1.6 -target 1.6 -noquiet -encoding Cp1252 -d C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes -namereferences -make C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes\EJBModel.cdi -classpath C:\Oracle\Middleware\jdk160_05\jre\lib\resources.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\rt.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jsse.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\jce.jar;C:\Oracle\Middleware\jdk160_05\jre\lib\charsets.jar;C:\JDeveloper\mywork\HR_EJB_JPA_App\.adf;C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\classes;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xmlparserv2.jar;C:\Oracle\Middleware\jdeveloper\modules\oracle.xdk_11.1.1\xml.jar;C:\Oracle\Middleware\modules\javax.jsf_1.2.0.0.jar;C:\Oracle\Middleware\modules\javax.ejb_3.0.1.jar;C:\Oracle\Middleware\modules\javax.enterprise.deploy_1.2.jar;C:\Oracle\Middleware\modules\javax.interceptor_1.0.jar;C:\Oracle\Middleware\modules\javax.jms_1.1.1.jar;C:\Oracle\Middleware\modules\javax.jsp_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\javax.jws_2.0.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.soap_1.3.1.0.jar;C:\Oracle\Middleware\modules\javax.xml.rpc_1.2.1.jar;C:\Oracle\Middleware\modules\javax.xml.ws_2.1.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\modules\javax.resource_1.5.1.jar;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.stream_1.1.1.0.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\wlserver_10.3\common\lib -sourcepath C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src;C:\Oracle\Middleware\jdk160_05\src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\toplink-src.zip;C:\Oracle\Middleware\jdeveloper\modules\oracle.toplink_11.1.1\eclipselink-src.zip C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Dept.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\Emp.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeLocal.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeClient.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacade.java C:\JDeveloper\mywork\HR_EJB_JPA_App\EJBModel\src\oracle\HRFacadeBean.java
    [11:45:27 PM] Successful compilation: 0 errors, 0 warnings.
    [Application HR_EJB_JPA_App is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" displays:
    "C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\stopWebLogic.cmd
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://localhost:7101 with userid weblogic ...
    This Exception occurred at Wed Oct 29 23:47:40 CET 2008.
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:512)
         at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:565)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:305)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:125)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx4.connect$1(<iostream>:16)
         at org.python.pycode._pyx4.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyFunction.__call__(PyFunction.java:184)
         at org.python.pycode._pyx16.f$0(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py:1)
         at org.python.pycode._pyx16.call_function(C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
         at weblogic.management.scripting.WLST.main(WLST.java:129)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.WLST.main(WLST.java:29)
    Caused by: java.net.ConnectException: t3://localhost:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
         ... 38 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused: connect; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:303)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:193)
         ... 43 more
    Problem invoking WLST - Traceback (innermost last):
    File "C:\Oracle\Middleware\user_projects\domains\base_domain\shutdown.py", line 1, in ?
    File "<iostream>", line 22, in connect
    WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3://localhost:7101 Use dumpStack() to view the full stacktrace
    Done
    I'm not that familiar with these things but it seems to me that there is an issue with port numbers here. The application seems to expect a app.server service at port 7101, but does'nt find one.
    Any suggestions on how to fix this problem would be appreciated?
    LA$$E

    Jupp,
    It fails in a similar way.
    What I did was; create a simle 'Hello World' html file, saving it with the jsp extension. In Jdev11g i made a new application and an emtpy project, then loaded the jsp file and made it the default run-target. This compiles nicely.
    When running the project it first attempts to start the WebLogicServer (WLS). After a few minutes it is started as seen in the "Running: DefaultServer" pane:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\oracle_client\product\11.1.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\Oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <30.okt.2008 kl 19.20 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <30.okt.2008 kl 19.20 CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Mon Aug 18 22:39:18 EDT 2008 1142987 >
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <30.okt.2008 kl 19.20 CET> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "Kromp.lan", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.0.0.8:7001 for protocols iiop, t3, ldap, snmp, http.>
    <30.okt.2008 kl 19.20 CET> <Warning> <Server> <BEA-002611> <Hostname "127.0.0.1", maps to multiple IP addresses: 10.0.0.8, 127.0.0.1>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Development Mode>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <30.okt.2008 kl 19.20 CET> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 121552 ms.
    DefaultServer started.
    In the "Messages" pane, however, things are not looking so good:
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:20:49 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    But, of course, the server is actually running as I can access it via its Admin Console.
    So, I try to run the project again, and this time the following is shown in the "Messages" pane:
    Compiling...
    Context: MakeProjectAndDependenciesCommand application=TestAppJsp.jws project=TestProjJsp.jpr
    [7:26:39 PM] Successful compilation: 0 errors, 0 warnings.
    [Application TestAppJsp is bound to Server Instance DefaultServer]
    [Starting Server Instance DefaultServer]
    #### Server Instance DefaultServer could not be started: Server Instance was terminated.
    The "Running: DefaultServer" now comes up with:
    C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    [Server Instance DefaultServer is shutting down.  All applications currently running will be terminated and undeployed.]
    Process exited.
    The WLS is still running though as I can still access its adm console.
    To me it seems that it is attempting to start a separate instance of the WLS for each run attempt, but then I could be wrong.....:(
    Later I'll try to change the default WLS port from 7001 to 7101 as suggested in another port here.
    I must admit that I'm a bit surprised that the JDev11g doesn't work fine at this very simple level when performing a default install.

  • Compiling simple web application in samples

    I recently downloaded the J2EE SDK and opened the indexSamplesDomain.html file under the samples directory. Clicked the simple web application link and proceeded to follow instructions to build the application. In this very first example I received an error stating that asant tool could not find the common-ant.xml file in the samples directory. Anyone have any idea the simplest example application has a bug in the build script????
    thanks

    Hi
    You should have a variable called FORMACTION_22_0 ,what you could try as well is to remove the forms autocorrelation from the script:
    In OpenScript: View -> OpenScript Preferences -> Correlation -> HTTP, click on the +* to open DOM Correlation, then double click on it and uncheck the action check box.
    Then you will need to re-correlate the script.
    Script -> Correlate Script
    That should remove all the form variables.
    Alex

  • I need help with the Web Application Certificate

    Greets,
    The title says it all really. I need help with the Web Application Certificate.
    I've followed the instructions from here:
    https://www.novell.com/documentation....html#b13qz9rn
    I can get as far as item 3.c
    3. Getting Your Certificate Officially Signed
    C. Select the self-signed certificate, then click File > Certification Request > Import CA Reply.
    I can get the certificate in to the Filr appliance but from there I'm stuck.
    Any help much appreciated.

    Originally Posted by bentinker
    Greets,
    The title says it all really. I need help with the Web Application Certificate.
    I've followed the instructions from here:
    https://www.novell.com/documentation....html#b13qz9rn
    I can get as far as item 3.c
    ok when you have you self signed certificate and you requested an official certificate with the corresponding CSR then you just need to go back to the digital certificates console. To import the official certificate, select the self signed certificate, then click File > Certification Request > Import CA Reply. Then a new windows pops out to select the certificate from your trusted authority from your local hard disk. Find the file (.cer worked for me) and click ok. As soon as you do this in the digital certificates console the self signed certificate will change the information that now it is officially signed. Look at the second column and you should see the name of your trusted authority under "issue from"
    I personally had a lot of issues across all platforms. Especially Firefox and Chrome for android. Needed to pack all the root cert, intermediate cert and signed cert into one file and import as CA reply. Not even sure if this is correct now. But at least it works.

  • Query Builder in Web application

    Hi, I want to develop a web application, which include query builder for database using Jdeveloper nad ADF. In this application must be page with this queries and execute them. The problem is that i have no idea how to realize it, Please help me
    Manuals, links and other information would be good.

    <puts flame shields on>
    APEX has this out-of-the box, perhaps that would be a better tool for the job?
    <ducks>
    John

  • Simple Web Application - To display list and then details

    Hello All,
    I am trying to build simple classifieds web application using - JSP, MySQL.
    I am little confused how to achieve following using JSP - for example -
    Craigslist can display list of classifieds and when clicked on individual classified - the record is shown as Static HTML file -
    http://newyork.craigslist.org/mnh/cpg/708366015.html
    http://newyork.craigslist.org/mnh/cpg/708343755.html
    How can i achieve the same results dynamically - i mean, how can i create a static HTML page using information in database and put that static HTML file on server so it can be picked up by search engines ...
    I am new to java guys .. so please show me some light or explain me how do i code this using JSP.
    Thank you,
    Jagdish

    How can i achieve the same results dynamically - i mean, how can i create a static HTML page using information in database
    and put that static HTML file on server so it can be picked up by search engines ...By definition a dynamic html page doesn't exist, so how would a search engine find something that doesn't exist?

  • Need help in creating WEB application....

    Hi
    I Created WEB application using jsp,java classes.
    I kept All jsp files and classes in web-inf classes folder and created a war file and deployed that one in WEBLOGIC 7.0. I need to start a class while starting the server. I configured the startup classes using weblogic console.Now i am getting classnotfound exception while running the server saying that the startup class is not found. Is it necessay to set classpath to the classes which are under war file.If yes please give me an idea how to set classpath to a file which is under war/web-inf/classes/..
    Any help will be appreciated.
    Regards
    Anand Mohan

    Not sure about Weblogic, but in general you add the entire path to your classpath. For Windows 2000 servers -> Control Panel -> System -> Advanced Tab -> Env Variables
    Example from simle Tomcat install:
    CLASSPATH
    C:\Jakarta\jakarta-tomcat-4.1.18\common\lib\servlet.jar;C:\Jakarta\jakarta-tomcat-4.1.18\webapps\myApp\WEB-INF\lib\classes12.jar;C:\Jakarta\jakarta-tomcat-4.1.18\webapps\myApp\WEB-INF\classes\com\brainysoftware\java\StringUtil.jar

  • Need help for Visual Web application onkeydown event

    hi,
    I have create a visual web application. I have include a text field and a button in my webpage. When user press a key in the text field, i would like to change the button to enable. I try to use the keydown event to call the function in java package. However, it display error once I put the function name in my onkeydown event in jsp page. The code is shown as below.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{RegisterProgress.page1}" id="page1">
    <webuijsf:html binding="#{RegisterProgress.html1}" id="html1">
    <webuijsf:head binding="#{RegisterProgress.head1}" id="head1">
    <webuijsf:link binding="#{RegisterProgress.link1}" id="link1" url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body binding="#{RegisterProgress.body1}" focus="form1:txtPassword1" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{RegisterProgress.form1}" id="form1">
    <webuijsf:button actionExpression="#{RegisterProgress.button1_action}" binding="#{RegisterProgress.button1}" id="button1"
    style="left: 71px; top: 96px; position: absolute; width: 72px" text="Next"/>
    <webuijsf:textField binding="#{RegisterProgress.txtPassword1}" id="txtPassword1" label="Password :" onKeyDown="="#{RegisterProgress.keydown}" style="left: 24px; top: 48px; position: absolute"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    Is there anybody may teach me the way to invoke the keydown event?

    Sorry,
    onKeyDown="="#{RegisterProgress.keydown}"
    should be onKeyDown=#{RegisterProgress.keydown}"
    But, that onkeyDown still can't work.
    Below is my java package:
    package usm_biologin;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.webui.jsf.component.Body;
    import com.sun.webui.jsf.component.Button;
    import com.sun.webui.jsf.component.Form;
    import com.sun.webui.jsf.component.Head;
    import com.sun.webui.jsf.component.Html;
    import com.sun.webui.jsf.component.Label;
    import com.sun.webui.jsf.component.Link;
    import com.sun.webui.jsf.component.Page;
    import com.sun.webui.jsf.component.StaticText;
    import com.sun.webui.jsf.component.TextArea;
    import com.sun.webui.jsf.component.TextField;
    import javax.faces.FacesException;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    public RegisterProgress() {
    public void init() {
    super.init();
    txtUsername1.setText(getRequestBean1().getUsername());
    txtPassword1.setText("");
    try {
    _init();
    } catch (Exception e) {
    log("RegisterProgress Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    public void preprocess() {
    public void prerender() {
    public void destroy() {
    protected RequestBean1 getRequestBean1() {
    return (RequestBean1)getBean("RequestBean1");
    protected ApplicationBean1 getApplicationBean1() {
    return (ApplicationBean1)getBean("ApplicationBean1");
    protected SessionBean1 getSessionBean1() {
    return (SessionBean1)getBean("SessionBean1");
    public String button1_action() {
    return null;
    public void keydown() {
    Any help will be appreciated.

  • Urgent help on WAD(web application designer

    Hello can any one provde documentation on BEX WEB APPLICATION DESIGNER.
    NAg

    Hello Nag,
    Have a look at these links
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/47/d4fed1c60a9743ade3b4cf306d5d48/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/40/8b174082fe1961e10000000a155106/content.htm
    Hope it helps.
    Regards,
    Mohan

  • Tipps for building a web application

    I have an idea for a web application. It is fun do do it and if well done, it can earn much money.
    There are two people now working on it, inlcuding me. I develop the concept, write the servlets. He is good at XHTML.
    What other skills does a typical web application need?
    I think we need someone with law skills. If the application comes out, it may not contain any legal weaknesses. Otherwise competitors could destroy us easily. We would have no money to defend ourselves until the application earns money.
    Of course we would also need someone who is good at business laws. A company has to be founded and so on.
    How many people does a medium complex web application need? And what skill sets? What are important things to consider?

    I'd say you need someone with A LOT experience and A LOT of knowledge in existing technologies (if youre doing e 90s style e-hype startup). And have an idea noone had before, because there is A LOT of existing solutions to almost any problem sold A LOT of times from A LOT of huge companies with A LOT of money.
    I dont want to destroy you motivation but i think its gotta be more than 2 Quereinsteiger to earn money with j2ee on web. If it was i'd be riding a ferrarie and not doing student assistance at university or coding web apps for t-systems.
    Still.. DO IT! 'Cause its really fun to learn the stuff and j2ee is a really nice framework. But go into details of j2ee and dont start coding servlets like you would 'code' html.

  • ISO - tool to generate simple web application

    Hi, everyone,
    We have a client with two dozen legacy applications that need to be migrated to the web. They all have fairly simple business logic. All they really need is basically web access to the backend legacy databases.
    I am curious if there is a tool out there that can read a database schema and automatically generate the java classes for accessing the data and produce the corresponding html forms and screens.
    Any suggestions?
    Thank you for your help.

    Would you like to consider http://jakarta.apache.org/struts ? Thats the closest that I can think of.
    struts makes forms and actions on the forms with beans (not ejbs...just java classes) easier, some work involved though. These beans can talk to data models (a data model is a class with fields corresponding to the columns of a table, with get and set methods). If you like you can include data model information in the struts beans.

  • Tutorial for Building Mobile Web Applications Using ADF/BC4J-problem

    This is the tutorial for:
    Develop a offline, Web-based Disconnected Mobile application
    Trying to create an offline mobile application using jdeveloper & oracle lite. I want to be able to update the home database after using the application in a disconnected fashion. I do not have a web site, nor is that a feasible option.
    Jdeveloper 10.1.3.4 which should be OK as it is higher than the release specified in the tutorial.
    webtogo
    oraclie lite 10
    oracle 10.
    I have tried to follow the tutorial completely and I can not get this to connect from webtogo. It runs fine in the jdeveloper usising the container. I created the war file, did the wtg packaging process, opened the mobile manager and published the application & granted access to user 'john'. The samples provided work fine. The new application appears on the webscreen after installing web 0c4j. When I click on it, the address toolbar shows:
    http://localhost/webtogo/bc4jtutorial/faces/CustomerOrders.jsp
    When it installed mobile client, it installed the CustomerOrders.jsp into:
    E:\mobileclient\mobile_client_oc4j\j2ee\mobileclient\applications\mobileclient\bc4jtutorial
    an example of the samples that work shows
    http://localhost/webtogo/sample6/list
    in the browser address line.
    Which looks like it's really
    E:\mobileclient\mobile_client_oc4j\j2ee\mobileclient\applications\mobileclient\samples\sample6
    on the file system
    Any one have any ideas? I'll take another solution if someone has found one. However, i am not a great java programmer so thought jdeveloper was great to create forms and access the database.
    Theo Korol
    [email protected]

    Hi,
    selecting a session bean, this option shows for me in 11.1.2. Make sure that - by accident - you don't select the local or remote interface class
    Frank

  • Trying to build a web application with stateful ejb clustering

    Hi to everyone,
    I'd like to know if someone gets to work a stateful ejb clustering. The stateful ejbs are called from a servlet so i'm not using RMI.
    The ejb clustering sample works! but It is using RMI and this is not use for me.
    My application already works but not in a cluster. Is this possible? I supose yes AND HOW???
    Thanks in advanced.

    Might look at: https://jsfportletbridge.dev.java.net to get started.

  • Tutorial: Build a Web Application (JSF) Using JPA

    Hi,
    I am trying the subject tutorial at
    [http://www.oracle.com/technology/products/ias/toplink/jpa/tutorials/jsf-jpa-tutorial.html#CHDIIEHA]
    and it seems I have to install OC4J and TopLink JPA.
    I will appreciate if anyone explain me if it is necesary, and in case of it
    witch is the reasson.
    I have some configured enviroments to develop JEE 5. I am talking about Eclipse Galileo against JBoss
    and NetBeans 6.7.1 aginst glassfish v2ur2
    Thanking in advance,
    Jose

    You might want to ask your question in a JDeveloper/ADF forum. With JSF/JPA, the only reason for XE is to provide a JDBC Data Source, so this product is hardly used.
    Once you move to JSF, you are switching to a 3-tier (or n-tier) software model, and the middle of the tiers is OC4J. So you need to get that. And TopLink provides the connection to the database.

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

Maybe you are looking for

  • How to use EEWB to add fields in business partner page

    Hello All I am working on CRM 5.0 EEWB I am trying to add new field in the business partner page I followed the steps for creating the project and the extension but I faced some problems 1-I chose the package BBP_BUPA_MAIN    BBP Business Partner Gen

  • Full screen incoming caller display 2730 classic

    Is there a way of making the phone display the incoming caller display larger, when your driving and using Bluetooth its almost imposable to read the number or name of caller I know the font size can be changed for other applications but this one is

  • Customer master details

    hello guru's,                 my requirment is i need to upload Customer Master details using BAPI  in LSMW. can anyone tell me the Business Object Type and Method name ..i know message type and idoc type for Customer Master bt i dont know how to sea

  • Database table updation with XML Document data

    import java.io.*; import java.lang.*; import java.net.URL; import java.sql.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import oracle.xml.sql.dml.OracleXMLSave; import org.w3c.dom.Document; public class

  • Regional Settings bug.

    Hi, 2 week ago I received my Pre2 as part of the Developer Program, thank you for that. I am from Brazil.. and we still don't have the Pre avaliable in our market.. hopefully this is something that will be worked out.. so while you guys don't launch