Problem in JSF with Swing in a web application

hi
i am using jsf for my online projects.my problem is that when i use Swing concept ,the server is closed automatically when i click the swing dialog option 'OK', how can i protect server being closed automatically when user click the the options of Swing dialog box.it is so tedious because my application is going to integrate
with online server?
my swing java file is
* FileExistsDialog.java
package com.obs.ftw.util.alert;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.Rectangle2D;
import java.util.*;
import javax.swing.*;
import javax.swing.plaf.metal.MetalLookAndFeel;
* FileExistsDialog: A JOptionPane-like dialog that displays the message
* that a file exists.
public class FileExistsDialog extends JDialog {
* The component that gets the focus when the window is first opened
private Component initialFocusOwner = null;
* Command string for replace action (e.g., a button).
* This string is never presented to the user and should
* not be internationalized.
private String CMD_REPLACE = "OK"/*NOI18N*/;
* Command string for a cancel action (e.g., a button).
* This string is never presented to the user and should
* not be internationalized.
private String CMD_CANCEL = "CANCEL"/*NOI18N*/;
// Components we need to access after initialization
private JButton replaceButton = null;
private JButton cancelButton = null;
public FileExistsDialog(){
     System.out.println("INSIDE THE FILE EXIST DIALOG");
     JFrame frame = new JFrame() {
     public Dimension getPreferredSize() {
     return new Dimension(200,100);
     frame.setTitle("Debugging frame");
     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     frame.pack();
     frame.setVisible(false);
FileExistsDialog dialog = new FileExistsDialog(frame, true);
     dialog.addWindowListener(new WindowAdapter() {
     public void windowClosing(WindowEvent event) {
     System.exit(0);
     public void windowClosed(WindowEvent event) {
     System.exit(0);
     dialog.pack();
     dialog.setVisible(true);
* Creates a new FileExistsDialog
* @param parent parent frame
* @param modal modal flag
public FileExistsDialog(Frame parent,boolean modal) {
super(parent, modal);
     //initResources();
     System.out.println("INSIDE THE FILE EXIST DIALOG CONSTRUCTOR");
initComponents();
pack();
* Determines the locale, loads resources
/* public void initResources() {
     Locale locale = Locale.getDefault();
resources = ResourceBundle.getBundle(
          "samples.resources.bundles.FileExistsDialogResources", locale);
imagePath = resources.getString("images.path");
}*/ // initResources()
* Sets all of the buttons to be the same size. This is done
* dynamically after the buttons are created, so that the layout
* automatically adjusts to the locale-specific strings.
private void equalizeButtonSizes() {
     System.out.println("INSIDE THE equalizeButtonSizes()");
String[] labels = new String[] {
replaceButton.getText(),
     cancelButton.getText()
     // Get the largest width and height
     Dimension maxSize= new Dimension(0,0);
     Rectangle2D textBounds = null;
     Dimension textSize = null;
FontMetrics metrics =
          replaceButton.getFontMetrics(replaceButton.getFont());
     Graphics g = getGraphics();
     for (int i = 0; i < labels.length; ++i) {
     textBounds = metrics.getStringBounds(labels, g);
     maxSize.width =
     Math.max(maxSize.width, (int)textBounds.getWidth());
     maxSize.height =
     Math.max(maxSize.height, (int)textBounds.getHeight());
Insets insets =
     replaceButton.getBorder().getBorderInsets(replaceButton);
maxSize.width += insets.left + insets.right;
maxSize.height += insets.top + insets.bottom;
// reset preferred and maximum size since BoxLayout takes both
     // into account
replaceButton.setPreferredSize((Dimension)maxSize.clone());
cancelButton.setPreferredSize((Dimension)maxSize.clone());
replaceButton.setMaximumSize((Dimension)maxSize.clone());
cancelButton.setMaximumSize((Dimension)maxSize.clone());
} // equalizeButtonSizes()
* This method is called from within the constructor to
* initialize the dialog.
private void initComponents() {
     System.out.println("INSIDE THE initComponents()");
     // Configure the window, itself
Container contents = getContentPane();
contents.setLayout(new GridBagLayout ());
GridBagConstraints constraints = null;
setTitle("Waring");
     // accessibility - all applets, frames, and dialogs should
     // have descriptions
     this.getAccessibleContext().setAccessibleDescription("Descriptions");
     addWindowListener(new WindowAdapter() {
     public void windowOpened(WindowEvent event) {
          // For some reason the window opens with no focus owner,
          // so we need to force the issue
     if (initialFocusOwner != null) {
          initialFocusOwner.requestFocus();
          // Only do this the 1st time the window is opened
          initialFocusOwner = null;
     public void windowClosing(WindowEvent event) {
     System.out.println("INSIDE THE windowClosing");     
     // Treat it like a cancel
          windowAction(CMD_CANCEL);
     // image
JLabel imageLabel = new JLabel();
imageLabel.setIcon(
new ImageIcon("/images/degraded_large.gif"));
// accessibility - set name so that low vision users get a description
imageLabel.getAccessibleContext().setAccessibleName("OK");
constraints = new GridBagConstraints ();
constraints.gridheight = 2;
constraints.insets = new Insets(12, 33, 0, 0);
constraints.anchor = GridBagConstraints.NORTHEAST;
contents.add(imageLabel, constraints);
// header
JLabel headerLabel = new JLabel ();
headerLabel.setText("SAMPLE");
headerLabel.setForeground(
     new Color(MetalLookAndFeel.getBlack().getRGB()));
constraints = new GridBagConstraints ();
constraints.insets = new Insets(12, 12, 0, 11);
constraints.anchor = GridBagConstraints.WEST;
contents.add(headerLabel, constraints);
     // Actual text of the message
     JTextArea contentTextArea = new JTextArea();
contentTextArea.setEditable(false);
contentTextArea.setText("SAMPLE");
contentTextArea.setBackground(
          new Color(MetalLookAndFeel.getControl().getRGB()));
// accessibility -- every component that can have the
     // keyboard focus must have a name. This text area has no
     // label, so the name must be set explicitly (if it had a
     // label, the name would be pulled from the label).
contentTextArea.getAccessibleContext().setAccessibleName(
          "CONTENTNAME");
constraints = new GridBagConstraints ();
constraints.gridx = 1;
constraints.gridy = 1;
constraints.insets = new Insets(0, 12, 0, 11);
constraints.anchor = GridBagConstraints.WEST;
contents.add(contentTextArea, constraints);
     // Buttons
     JPanel buttonPanel = new JPanel();
buttonPanel.setLayout (new BoxLayout(buttonPanel, 0));
     replaceButton = new JButton();
     replaceButton.setActionCommand(CMD_REPLACE);
replaceButton.setText("OK");
replaceButton.setToolTipText("TO OK");
     replaceButton.addActionListener(new ActionListener() {
     public void actionPerformed(ActionEvent event) {
     windowAction(event);
buttonPanel.add(replaceButton);
// spacing
buttonPanel.add(Box.createRigidArea(new Dimension(5,0)));
     cancelButton = new JButton();
     cancelButton.setActionCommand(CMD_CANCEL);
cancelButton.setText("CANCEL");
cancelButton.setNextFocusableComponent(replaceButton);
     cancelButton.setToolTipText("TO CANCEL");
     cancelButton.addActionListener(new ActionListener() {
     public void actionPerformed(ActionEvent event) {
     windowAction(event);
buttonPanel.add(cancelButton);
constraints = new GridBagConstraints ();
constraints.gridx = 1;
constraints.gridy = 2;
constraints.insets = new Insets(12, 12, 11, 11);
constraints.anchor = GridBagConstraints.WEST;
contents.add(buttonPanel, constraints);
     // Equalize the sizes of all the buttons
     equalizeButtonSizes();
     // For some reason, the dialog appears with no input focus.
     // We added a window listener above to force the issue
     initialFocusOwner = replaceButton;
} // initComponents()
* The user has selected an option. Here we close and dispose the dialog.
* If actionCommand is an ActionEvent, getCommandString() is called,
* otherwise toString() is used to get the action command.
* @param actionCommand may be null
private void windowAction(Object actionCommand) {
     System.out.println("INSIDE THE WINDOW ACTION");
     String cmd = null;
if (actionCommand != null) {
     if (actionCommand instanceof ActionEvent) {
     cmd = ((ActionEvent)actionCommand).getActionCommand();
     } else {
     cmd = actionCommand.toString();
     if (cmd == null) {
     // do nothing
     } else if (cmd.equals(CMD_REPLACE)) {
     System.out.println("your replace code here...");
     } else if (cmd.equals(CMD_CANCEL)) {
     System.out.println("your cancel code here...");
     setVisible(false);
     dispose();
} // windowAction()
* This main() is provided for debugging purposes, to display a
* sample dialog.
// main()
} // class FileExistsDialog
and calling java function is
public String fileDialog(){
     return "Success";
public void processFile(ActionEvent event){
     System.out.println("INSIDE THE FILE DIALOG");
     FileExistsDialog file     = new FileExistsDialog();
     System.out.println("SUCCESS");
called from
     <h:commandButton action="#{userLogin.fileDialog}" actionListener="#{userLogin.processFile}"></h:commandButton>
pls help me as soon
advance thanks
rgds
oasisdeserts

Swing is GUI library for use in desktop applications.
JSF is a web application framework which runs on an application server and is accessed by clients via web browsers.
To fully understand what you have done, try accessing your application from a different machine than the server.
To answer your question, don't invoke System.exit() if you would like the process to continue. But that is the least of your problems.

Similar Messages

  • How to use Swing in a web Application

    Can you suggest me some good PDF/tutorial or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    I'd say the biggest disadvantage is that your client machines have to download and install the bloody java plug in.
    What you write about your UI ain't half vague. What the deuce is a "color coded asset"? Is it
    interactive? If not, could it be represented by an image? If so, even if it is a non-static image, it is a simple
    matter for your webapp to generate the image on the fly. Many web app tutorials demonstrate that.

  • 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.

  • Problem with Uploading files in Web applications with the iPad

    Hello,
    I have a question. How can I upload a word file in the gmx-Mailserver with my IPad? I can only find the picture library. In this library i cannot upload a word-file or other files-types. I use Safari. The same problem exists by other web applications.
    Thanks for your help.
    Kami2013

    I think I just did something wrong myself. I was finally able to upload the file. However, I wrote the following procedure in my package but wasn't able to download the file from the report. Do I need to grant any privilege from the system user?
    Also, does anyone know how to convert a BLOB table into 11g Securefiles table?
    Thanks.
    <pre>
    procedure download_birth_cert(p_vrds_birth_cert_pk in number) is
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(4000);
    Lob_loc BLOB;
    begin
    select mime_type, blob_content, file_name, dbms_lob.getlength(blob_content)
    into v_mime, lob_loc, v_file_name, v_length
    from vrds_birth_cert
    where vrds_birth_cert_pk = p_vrds_birth_cert_pk;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header(nvl(v_mime,'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the user does a save as
    htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    exception
    when others then
    null;                    
    end download_birth_cert;
    </pre>

  • Problem integrating JSF with Spring

    Here is faces-config.xml
    <application>
    <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>dateuser</managed-bean-name>
    <managed-bean-class>com.datesite.user.DateUser</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>entityManagerDateUser</property-name>
    <property-class>com.datesite.user.EntityManagerDateUser</property-class>
    <value>#{entityManagerDateUser}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    Here is the deployment exception
    javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value com.datesite.user.EntityM
    anagerDateUser@380b4f9 of type class $Proxy35 to type class com.datesite.user.EntityManagerDateUser for managed bean d
    ateuser.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:53
    7)
    Seems liek it can't figure out which class to instantiate?
    Please help.

    I've used the spring integration but I have not encountered this issue.
    It looks to me like Spring is giving out a proxy implementation that cannot be used in place of the actual class. Some things you might want to try:
    1) Configure Spring to create the bean upon initialization instead of waiting for it to be used.
    2) Remove any aspect-oriented configuration from the spring bean (including transaction support) to see if that makes a difference.
    3) Consider the possibility of a class loading conflict, i.e. was the spring container loaded by a different class loader than the one for the web application?
    Finally I would consider posting this on the forums at springframework.org.

  • Problem in loading the WL6.1 Examples Web Applications

    While the server 6.1 is starting, an error message is displayed in the DOS window.
    19.10.2001 14:28:28 CEST> <Debug> <HTTP> <Could not resolve entity "-//BEA Systems, Inc.//DTD Web Application 6.1//EN". Check
    your dtd reference.>
    <19.10.2001 14:28:30 CEST> <Error> <HTTP> <[examplesWebApp] Error reading Web application "C:\bea\wlserver6.1\config\examples\a
    pplications\examplesWebApp"
    java.net.UnknownHostException: www.bea.com
    It sounds to be related with the web.xml file. I thank you by advance for your help.
    Cheers

    Hi there,
    Many thanks for your answer. I am fine but I am sure I will be even more fine
    when I solve this technical issue.
    I checked the weblogic.xml file as you suggested and it is OK.
    I even tried to access the URL "http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd"
    with IE5. I had some doubt regarding our corportate proxy. But it worked fine.
    I can access successfully the dtd with a browser. I really don't see what is going
    wrong. I attached in case of the weblogic.xml file for your examination.
    Here is an extract of the error message displayed in the DOS window.
    <23.10.2001 13:52:50 CEST> <Info> <J2EE> <Deployed : DefaultWebApp>
    <23.10.2001 13:52:50 CEST> <Info> <HTTP> <[HTTP examplesServer] Loading web app:
    examplesWebApp>
    <23.10.2001 13:52:50 CEST> <Info> <HTTP> <[examplesServer] Loading "examplesWebApp"
    from directory: "C:\bea\wlserver6.1\config\
    examples\applications\examplesWebApp">
    <23.10.2001 13:52:50 CEST> <Warning> <HTTP> <servlet DisplaySetToPage is referenced
    but not defined in web.xml>
    <23.10.2001 13:52:50 CEST> <Debug> <HTTP> <Could not resolve entity "//BEA Systems,
    Inc.//DTD Web Application 6.1//EN". Check y
    our dtd reference.>
    <23.10.2001 13:52:52 CEST> <Error> <HTTP> <[examplesWebApp] Error reading Web
    application "C:\bea\wlserver6.1\config\examples\a
    pplications\examplesWebApp"
    java.net.UnknownHostException: www.bea.com
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    etc....
    Could the origin of my problem come from the aforementionned error message "<servlet
    DisplaySetToPage is referenced but not defined in web.xml>" ?
    I thank you once again by advance for your help and support.
    Cheers
    Athmani H.
    BEA Weblogic Support <[email protected]> wrote:
    Hi Athmani
    Greetings...!
    How are you doing?.
    Weblogic 6.1 examples web application, examplesWebApp, should have the
    below given DOCTYPE in the weblogic.xml.
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application
    6.1//EN"
    "http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd">
    Please check that.
    Thanks & Regards
    BEA Systems Supoport
    Athmani wrote:
    While the server 6.1 is starting, an error message is displayed inthe DOS window.
    19.10.2001 14:28:28 CEST> <Debug> <HTTP> <Could not resolve entity"-//BEA Systems, Inc.//DTD Web Application 6.1//EN". Check
    your dtd reference.>
    <19.10.2001 14:28:30 CEST> <Error> <HTTP> <[examplesWebApp] Error readingWeb application "C:\bea\wlserver6.1\config\examples\a
    pplications\examplesWebApp"
    java.net.UnknownHostException: www.bea.com
    It sounds to be related with the web.xml file. I thank you by advancefor your help.
    Cheers
    [weblogic.xml]

  • Problem displaying WebHelp in firefox called from web application

    We're using RoboHelp 7.03. When the WebHelp is generated, it seems that the navigation topics all immediately begin with a few illegal characters. This isn't a problem in IE -- it ignores these characters and displays our help pages fine. In Firefox, however, the WebHelp loops when trying to open the main topic page and does not display the "Show TOC" link for the sub-pages. (The navigation pages I'm referring to are the skin files, whgdata files, whdata, etc.)
    I should note, this occurs only for the project that we're calling from within a web-based application we offer our customers. Firefox displays the WebHelp correctly when opened regularly from the browser.
    I did a search-and-replace operation on the WebHelp published for the web application. Removing the illegal characters took care of the problem, but I'm wondering if there is any way to remove these characters from the output so we don't have to remember to do the search and replace each time we publish the project? (It's in beta stage right now; we're going to be republishing the help fairly often.)
    I'm not sure if these will display properly, but the illegal characters look like this: 
    Thank you,
    Sasha M.

    Those characters are known as the BOM characters. See item 22 in http://www.grainge.org/pages/authoring/rh7/using_rh7.htm.
    You say the behaviour is different when you run the help independently and when the developers call the help. Could it be that you are viewing it from a different location? What if the help is run from the location the developer's use but independently of the application?
    Visit www.grainge.org for RoboHelp and Authoring tips

  • Issue with receiving response from web application

    Hi,
    I have configured B2B with business protocol as 'Custom document document over Internet', document exchange protocol as AS2-1.1 and transport protocol HTTPS1.1 to invoke a web application deployed in Oracle Application server. B2B is able to invoke the web application with HTTPS request which contains an xml.
    I have set the acknowledgment mode as 'Sync' and 'Is acknowledgement handled by B2B' as true. But while receiving the response from web application which is an xml, B2B is showing the error as
    Description: Unable to identify the document protocol of the message
    StackTrace:
    Error -: AIP-50083: Document protocol identification error
         at oracle.tip.adapter.b2b.engine.Engine.identifyDocument(Engine.java:3244)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1665)
         at oracle.tip.adapter.b2b.msgproc.Request.postTransmit(Request.java:2382)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1825)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:974)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1166)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
         at java.lang.Thread.run(Thread.java:534)
    I have added headers as present in the wire message of the request. In B2B, it is showing the wire message for response as follows.
    TO_PARTY=XXX
    AS2-To=XXX
    DOCTYPE_NAME=TestAS2DT
    DOCTYPE_REVISION=1.0
    Date=Tue, 03 Nov 2009 06:09:22 GMT
    AS2-Version=1.1
    AS2-From=YYY
    Content-Transfer-Encoding=binary
    [email protected]
    ACTION_NAME=TestAS2_BA
    Content-Type=application/xml
    Server=Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server
    MIME-version=1.0
    User-Agent=AS2 Server
    FROM_PARTY=YYY
    Content-Disposition=attachment; filename=1.0
    Connection=Keep-Alive
    From=YYY
    Keep-Alive=timeout=15, max=100
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the xml sent as response from web application in Payload as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the HTTP response in b2b_dc_transport.log. In transport log it is not showing any error. Please help me to fix this issue.

    Hi,
    Request and Response should be part of same agreement. I hope you are not confused between Acknowledgement and Response. Acknowledgement can be received in the same session (sync mode) but Response will always come in a different session and will be treated as a different document. If, for request, party A is initiator and B is responder then for response party B will be initiator and party A will be responder (as Requset and Response are two docs in case of Custom Document)
    For configuring X-Path, please refer section 8.3.11 Configuring the XPath Expression for a Custom XML Document at below link -
    http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/busact_coll.htm#sthref784
    Please let us know whether you are trying to receive a response or Ack?
    Regards,
    Anuj

  • Need help with a customized interactive web application for  apparel

    Help!!!!
    Hi I am a web designer at beginners stage with web
    devlopment. I am seeking guidance on how to develop a customized
    interactive web application so that the end user can change color
    and patterns of apparel on vector images such as teamsports
    uniforms and tshirts. Once the design is customized to their liking
    they can save it with all of the spec information in a file to
    there desktop or to a database to send to the manufacturer.
    Also looking for a possible way to use a CMS so I can upload
    templates of the garment easily for the end user to customize
    online. Can this be done and if so how? This is an example the kind
    of application I am looking for:
    http://www.dynamicteamsports.com/elite/placeorder.jsp
    I am in desperate need of some brilliant developer to help
    with this.
    Thanks in advance for anyone who is willing to assist or give
    me guidance,
    Danka
    "Reap what you sew"

    some parts of that are doable using non-advanced skills, but
    will be difficult and unwieldly if there are more than a few
    colors/patterns.
    saving the image to the server is a bit more advanced and
    you're going to need some server-side scripting like php, perl, asp
    etc. in addition to some flash programming ability.

  • [JSF 1.2] - Role Based Web Application: Whats the correct way of doing it?

    Hello,
    i have a web application that in some pages is role based. I have two database tables, Role and Permissions. Role can have 1..N Permissions and vice versa.
    In one page i need to render some forms depending on user role.
    What is the best approach to this?
    1. I have a sessionBean and on login load all the permissions (it's less secure but faster) based on user role;
    2. Everytime i use rendered="#{sessionBean.checkPermissions['can-create']}" i query the database. This checkPermissions gets the user role and retrieve all permissions of that user on demand;
    The first option is faster but while the user is logged if permissions changes we might have problems.
    The second, if i user 3 rendered attributes i do 3 queries to the database.
    Is rendered attribute the correct implementation?
    Regards.

    Yes, the rendered attribute is the correct way to accomplish this.
    As to the question of caching the result or querying the database each time, that is something that needs to be answered on an application by application basis.

  • Implementing  Resultset   with  Pagination in a Web Application

    Hi
    How is best way for to implent Pagination without lost performance using Cursor ?
    In Client side Have Buttons
    A-D
    E-J
    K-P
    Q-Z
    When Letters are Initial names , there is too a button where return all records
    Is there some good way or there is relevance ?
    Thank you in advance

    You can certainly reduce the latency of web requests by making things asynchronous. e.g. if you have a slow piece of functionality such as registration & sending of emails back, you could make that completely asynchronous and just send a message to a JMS Queue then consume it in another process/thread. Then the user of your web application doesn't have to wait for the slow processing to complete before their browser refreshes.
    To make it easy to integrate JMS into your application, you might want to stick to a POJO model and then use Spring Remoting over JMS via Lingo
    http://lingo.codehaus.org/
    James
    http://logicblaze.com/

  • Problems with planning function in Web Application Designer in 2004s

    Hi All,
    I have a problem in WAD 2004s with planning function. I created a web template that includes a query. It runs on the enterprise portal, and I can edit this query. The problem is: I don't know how to save this edited query, because when I use the button with function save, the new value doesn't appear in the relevant info cube.
    Anybody can help me how to save the new values to the info cube?
    Thanks in advance
    Dezso Toth

    I don't know if you ever resolved this, but you may just ned to change a setting on your query properties.  When data is entered into planning layouts and saved, that data is put into a "yellow" request in the underlying infocube. 
    Until the necessary volume of data is posted which causes this to change to "green", it remains yellow.  Note that this request could also be changed to green several ways.  i.e. manually, by flipping the "real-time infocube behavior" switch, etc. 
    Anyway, as long as it "yellow" your query, by default will not consider it, unless you change it's properties to tell it to consider "yellow" requests.  This can be done via RSRT and pressing the "properties" button.  Choose request status "2" and your problem should be solved

  • Problem running report with BI Publisher and Web Service

    Hello,
    I actually try to run a Bi Publisher report via the Web Service.
    I use the following documents:
    - http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
    - "How to integrate Oracle BI Publisher via Web Services in Oracke Forms"
    Everything works fine. But when I try to copy it on local computer the file is 0 length. I use the "getReportBytes" method.
    Here is the code I tried with:
    String userName = “Administrator”;
    String passWord = “Administrator”;
    System.out.println(”calling ” + myPort.getEndpoint());
    System.out.println(myPort.validateLogin(userName,passWord));
    ReportRequest repReq = new ReportRequest();
    ReportResponse repRes = new ReportResponse();
    repReq.setAttributeFormat(”pdf”);
    repReq.setAttributeLocale(”en-US”);
    repReq.setAttributeTemplate(”World Sales”);
    repReq.setReportAbsolutePath(”/Sales Manager/World Sales/World Sales.xdo”);
    repRes = myPort.runReport(repReq,userName,passWord);
    System.out.println(repRes.getReportContentType());
    byte[] binaryBytes = repRes.getReportBytes();
    OutputStream out = new FileOutputStream(”D:
    out.pdf”);
    out.write(binaryBytes);
    out.close();
    System.out.println(”Success for Run Report”);
    Thanks in advance.

    Hi,
    I assume that you use 10.1.3.4. If not, my hint is not relevant for you ....
    There's a new parameter in the web service API to set the Chunk-Size. Unfortunaltely is the default value not so, that the behaviour is like in older releases (no chunk-size ... the whole document at once). If you set the chunk size to -1, you should get your document. So try to add
    repRequest.setSizeOfDataChunkDownload(-1);
    regards
    Rainer

  • Drill down problem when execute CR Viewer from Sap Web Application Server

    Hello,
    We are using Sap  Was 7.01.
    The report viewer jar files deployed to the j2ee engine , and I am using j2ee servlet application to execute the report.
    Everything works OK, but when I am trying to drill down to the next sub report the screen become blank.
    I checked with httpwatch and it seems that there is no response from the server , after DD.
    The web.xml file look like this:
    <web-app>
         <display-name>WEB APP</display-name>
         <description>WEB APP description</description>
         <context-param>
           <param-name>crystal_image_uri</param-name>
           <param-value>./CrystalReports/crystalreportviewers</param-value>
          </context-param>
          <context-param>
           <param-name>crystal_image_use_relative</param-name>
           <param-value>server</param-value>
          </context-param>
          <context-param>
           <param-name>crystal_servlet_uri</param-name>
           <param-value>/CrystalReportViewerHandlers</param-value>
          </context-param>
         <servlet>
                <servlet-name>CrystalReportViewerServlet</servlet-name>
                <servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
        </servlet>
         <servlet>
              <servlet-name>reportviewerClient.jsp</servlet-name>
              <jsp-file>/reportviewerClient.jsp</jsp-file>
         </servlet>
         <servlet>
              <servlet-name>ReportViewerSrvlt1</servlet-name>
              <servlet-class>com.illumiti.demo.ReportViewerSrvlt1</servlet-class>
         </servlet>
        <servlet-mapping>
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <url-pattern>/CrystalReportViewerHandler</url-pattern>
         </servlet-mapping>
         <servlet-mapping>
              <servlet-name>ReportViewerSrvlt1</servlet-name>
              <url-pattern>/jRun</url-pattern>
         </servlet-mapping>
    </web-app>
    There are no javascript errors and I can see that the following JS files exist on the browser cache:
    allInOne.js
    allStrings_en.js
    crv.js
    Also the dynamic rendering of the graphic objects working,  for exampale:
    http://sapdevpor.themigroup.net:52000/ReportViewerNwds/CrystalReportViewerHandler?dynamicimage=crystal1258027361240644774257355486184.png
    sapdevpor is the Sap application server.
    Need help with this asap.
    Thanks
    Nir

    Hello,
    to which directory have you unzipped the Files? I would suggest C:\temp because there are problems with long filenames. Have you tried to reboot and then disconnect Drive M:?
    Regards
    Gregor

  • Problem in submitting data while refresh in web application

    Hi all,
    I have problem in submitting data while refreshing the page.
    In my application voucher number is generated automatically and as soon as number is genereated voucher detail is inserted in database for newly generated voucher number.
    Both of these activity done on the same page as my client want so.
    Now I have problem that while refreshing the page, the same data for incremented voucher number stored in database that should not be done.
    If there is any solution for this situation other than 1) Generating number in one page and inserting on another 2) block refresh activity, then please reply me.
    It's urgent. Your help will help me a lot.
    regards,
    Deepalee

    Hi
    <u>You can use either of the BADIs depending on your requirement.</u>
    BAdI Definition Name Description                                                                               
    BBP_PGRP_ASSIGN_BADI EBP Purchasing Documents: Assign Purchasing Group(s)       
    BBP_PGRP_FIND        Shopping Cart: Determine Responsible Purchasing Group(s)                                                                               
    BBP_DOC_CHANGE_BADI
    BAdI for Changing EBP Purchasing Documents
    <b>Please read the Standard documetation available with them using SE18 transaction in SRM system.</b>
    Which SRM version you are using ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

Maybe you are looking for

  • Booklet printing of A4 pages on A3 paper

    I would like to print A4 pages on A3 paper in booklet form. I select Booklet Printing + Front side only + A3 media size. The pages print off centre. They are scaled correctly but not positioned correctly. What esle to I need to specify? I had a simil

  • Bringto front, but while not gaining focus

    hi, I wish to create an aplication which runs in the background, and at pre-determined times apears at the front of the screen momentairily (ontop of any other programs running), and then goes to the back again. However, what i wish to know is: is it

  • After updates photo to get new albums that cant be deleted

    in my iphone 4 i have new photo library & Camera Roll how can i move photo from photo library back to camera roll & delete the photo library?

  • Need to reset Airport Express

    I just got speakers to connect to A express. I am now trying to play music wirelessly from laptop. Not Working!!! Looks like I need to reset airport etc... Unfortunatley my password is not working and I cannot change any settings. Any advice??? Thnx

  • Thinkpad S430 missing SM Driver in device manager

    I upgraded my S430 hard drive to an SSDMy operating system is Windows 8.1 Pro 64 bitI took a screenshot of my Windows device manager before upgrading the hard drive and it had no unknown devices and included one device called "SM Driver"Now after upg