JDeveloper Tutorial does not work

Tutorial: "Developing a WEB Application Using the EJB Technology Scope"
does not work I get to step 3 - item 11 which is running the browseDepartments jsp. I get a :
500 Internal Server Error
java.lang.NoSuchMethodError: int java.lang.StringBuffer.indexOf(java.lang.String).. etc.
I have started over several time just to make sure I am following the tutorial correctly. I still get the following error. Is there an errata document on this tutorial?
Thank for any help,
Bob

500 Internal Server Error
java.lang.NoSuchMethodError: int java.lang.StringBuffer.indexOf(java.lang.String)
     java.lang.Object oracle.adf.model.binding.DCUtil.findContextObject(oracle.adf.model.BindingContext, java.lang.String)
          DCUtil.java:294
     oracle.adf.model.binding.DCBindingContainer oracle.adf.model.binding.DCUtil.findBindingContainer(oracle.adf.model.BindingContext, java.lang.String)
          DCUtil.java:537
     void oracle.adf.controller.lifecycle.LifecycleContext.initialize(oracle.adf.controller.lifecycle.Lifecycle, java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          LifecycleContext.java:121
     void oracle.adf.controller.lifecycle.LifecycleContext.initialize(oracle.adf.controller.lifecycle.Lifecycle, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          LifecycleContext.java:77
     void oracle.adf.controller.struts.actions.DataActionContext.initialize(oracle.adf.controller.lifecycle.Lifecycle, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          DataActionContext.java:51
     org.apache.struts.action.ActionForward oracle.adf.controller.struts.actions.DataAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          DataAction.java:154
     org.apache.struts.action.ActionForward org.apache.struts.action.RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)
          RequestProcessor.java:484
     void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          RequestProcessor.java:274
     void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          ActionServlet.java:1482
     void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          ActionServlet.java:525
     void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
          HttpServlet.java:760
     void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          HttpServlet.java:853
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          ResourceFilterChain.java:65
     void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          EvermindFilterChain.java:16
     void oracle.adf.model.servlet.ADFBindingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
          ADFBindingFilter.java:228
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
          ServletRequestDispatcher.java:600
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
          ServletRequestDispatcher.java:317
     boolean com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationServerThread, com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindHttpServletRequest, com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
          HttpRequestHandler.java:790
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(java.lang.Thread)
          HttpRequestHandler.java:270
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run()
          HttpRequestHandler.java:112
     void com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run()
          ReleasableResourcePooledExecutor.java:192
     void java.lang.Thread.run()
          Thread.java:484
There is no code lines that are indetified as error.
Thanks,
Bob

Similar Messages

  • OTN Jdeveloper Download does not work!

    The JDeveloper download does not work. After entering the questions a 404 error page appears.
    Waht is going wrong here?

    Hello Reinhard:
    I finally [after over a week of trying]have JDeveloper 10.1.2 downloading. Question is... will it work [not be corrupted!} Reply here and maybe the two of us can figure a way to get it to you.

  • Request Scope for portlets? Sharing data tutorial does not work for portlet

    I created 2 identical applications, one that was a regular JSF web app, and one a JSR168 portlet. By following the "Sharing Data Between Two Pages" tutorial, I can get this technique to work without a problem in the web app, but the portlet (deployed locally using the pluto server) does not work. What is the difference between a regular app and a portlet app?
    This shows that portlets apparently handle scope much differently than other applications, so any information relating to this would be helpful to pass along.

    Portlet Life Cycle Differences
    A portlet page is the same as a web application page in the Creator 2 application
    model with differences only in the page life cycle. To best understand the life
    cycle differences, you must first understand how a portal interacts with a portlet.
    This interaction between portals and portlets is defined by the JSR-168 Portlet
    specification. Typically a portal display in the web browser shows multiple
    portlets. That is, when the portal page is displayed, there are actually multiple
    portlets displaying or rendering their content. The job of the portal is to manage
    how these portlets are displayed. Internally, the portal is responsible for telling
    each portlet two things:
    1. When to display itself
    2. If there has been an action, such as a button press, performed inside that
    portlet.
    When a portal wants portlets to display their contents, the portal sends a render
    request to each portlet showing in the portal. If one of the portlets showing in the
    portal has a button tied to an action request, when that button is pushed, the
    portal fires an action request for that portlet. In addition, the portal generates a
    render request for the portlet and all other portlets on the page. You should note
    that the portal implementation fires both action and render requests for each
    action method on a portlet showing in the portal. The implication of this
    interaction means the portlet page being rendered can not make assumptions
    about the state of the values to be shown. Unlike a normal web application page,
    a portlet page can't assume that the page being rendered in the Render Response
    phase is the same page that was built in Restore View. If a portlet wants to
    maintain state across repeated render requests, the portlet must use the session
    bean to store stateful information.
    The main point to remember is a portlet page must always be prepared to render
    it's values from scratch or session data. This implies you should never bind
    portlet page UI components to page bean properties or request bean properties.
    Also, you should never rely on page bean instance variables that might be set
    during an action event.
    Hope this helps.

  • Example in Data Modeler Tutorial does not work as described

    Using Oracle Data Developer 4, I cannot get the example on https://docs.oracle.com/cd/E57998_01/doc.41/e57984/tut_data_modeling.htm#DMDUG36173 to work as described. The Foreign Key fields in the logical model are not generated. They are only generated in the relational model when I develop the logical model. However, the names follow the template {table}_{table}_ID, which will cause problems for long table names. Now I have two questions:
    1. How can get the foreign key fields to be generated in the logical model, as descibed in the tutorial?
    2. Where can I see the default naming rules for generated fields used by the program and where can I change them? - I found a description how this works in Version 3, but these options do not exist anymore in Version 4.

    2. Where can I see the default naming rules for generated fields used by the program and where can I change them? - I found a description how this works in Version 3, but these options do not exist anymore in Version 4.
    In version 4 the template definitions are defined in the properties for the Design.
    Right-click on the Browser entry for your Design and select Properties.
    In the tree in the left panel of the Design Properties dialog, expand Settings, then expand Naming Standard and select Templates to display the Template definitions.
    David

  • ADF: auto complete in tutorial does not work

    Hi all,
    I'm studying ADF tutorials. Developing Rich Web Applications with Oracle ADF tutorial has a sample of Auto-complete property. I followed the tutorial from the first step but cannot go further because At Part 3, Step 3 it is not possible to drag an Autocomplete Behaviour onto Combobox. Futhermore in the screenshots, it seems possible to type into Combobox which i never see such an example before.
    This is the link of the Step that i'm talking about:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_3.html
    Thanks in advance,

    I finally found a way to correct it. When you drag and drop the whole view, JobID is type of Combo Box but it should be Input List of Values (Combo Box). To solve this you need to only delete that combo box (not the whole structure) and drag and drop the Job ID again. This time select List Of Values so it becomes a combo box with editable area. This part is not mentioned in the tutorial makes the confusion.
    Edit: I just see your edit, the forum link points out the same problem. This is the workaround. Unfortunately one of the basic tutorials of Oracle ADF is confusing.
    Edited by: elmariachi on Jan 4, 2013 12:22 PM

  • Sending Email Tutorial Does Not Work

    Has anyone been able to successfully complete the "Sending Email From a Web Application" tutorial?
    I am able to Build and Deploy, but receive a "Class Not Found" error on deployment.
    Win2K sp3, 1Gig Ram 3 Gigs Free Disk
    I am using my own email account for both To: and From: on our Exchange email server.
    Thanks in advance.
    Clay

    Make sure everything you need is in your classpath.
    Hope this helps,
    - D.t.O

  • Dynamic image does not work in the template builder plug-in (Apex-BI Intgr)

    Hi all, I posted this problem in the BI Publisher topic but nobody responded maybe this is because mods thought this is an Apex-BI integration issue.
    If I'm in the wrong place, please do warn me.
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    ...This works obviously
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    ...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    ...This, however, does not work.
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1

    Hi Oeren,
    your steps seem basically to be correct. I have a tutorial how to do this here (in german)
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/pdf-dyn-images/index.html
    when you see the URL corrently as long as you have it as a plain text field, the XML tag and the
    referencing seem to be OK.
    Here are two thought - the issue might be one of these ...
    How did you insert the dummy image into the word document - did you do it via "insert" or
    via "link to file". "Link to File" does not work - you must choose the simple "insert".
    Another one: Does your BI Server have a connection to the internet - is the proxy server correctly set ..?
    Does this help ..?
    Regards
    -Carsten
    Cloud Computing mit APEX umsetzen. Jetzt!
    http://tinyurl.com/apexcloudde
    SQL und PL/SQL: Tipps, Tricks & Best Practice
    http://sql-plsql-de.blogspot.com

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

  • Troubleshooting Guide: Audio does not Work after a Certain Period of Time

    Hello everyone, Thanks for choosing the HP Forums! If your sound recently stopped working on Windows 8.x or Windows Server 2012, and you suspect a Windows Update is involved, then look no further! This is the troubleshooting guide that will explain how to resolve the issue! Explanation: Currently, there is a Windows update that may be causing the sound on your computer to stop working. The update is KB2962407, and it is now an “Important” update. That means that it will be installed by Windows Update unless you hide it. This thread also covers generic sound troubleshooting that can resolve "no sound" issues. Before tackling the update itself, since a Windows update may not be the culprit, there is some troubleshooting that can be done. A Round of Troubleshooting: 1. Running the Audio Troubleshooting in Windows 8 can resolve the issue. It does contain the ability to eliminate any setting that affects sound. Here are some steps on how to run this troubleshooter: a) Hold down the “Windows” and “R” key and then type “troubleshooting” and hit Enter.b) A window will open. On the left, click “View All”, then “Playing Audio”.c) Click “Advanced” and run it as Administrator. Then click “Next” to complete the process. 2. Try creating a new user account. The changes forced by the update may only affect one user. This HP document shows you how to create a new user under the “Creating a new account in Windows 8” section: Managing User Accounts and Logins (Windows 8) 3. Try a pair of headphones or external speakers. It will rule out where the issue lies if sound does not work through a second or third output device. 4. Another solution is to uninstall the driver manually then force it to be installed again:a) Open Device Manager, and go to the “Sound, video and game controller” section.b) Right-click on your audio driver and select “uninstall”.c) Restart the computer. This will force the hardware to write a new driver upon startup. 5. Finally, make sure that the remaining steps that you haven't tried from this document are attempted: No Sound from Speakers (Windows 8) New Inclusions: Disabling and enabling the sound driver has been tested with successful results enough for me to post here. These are the instructions to do this: a) Open Device Manager, and go to the “Sound, video and game controller” section.b) Right-click on your audio driver and select “disable”.c) Wait a minute, then right-click on it and select "enable" Also, A System Restore is also a valid troubleshooting step. This will return the computer to a point before the update and/or external source of the issue occurred. Here is a document on how to perform a System Restore: System Restore If you want something stronger, a Windows Refresh completely refreshes Windows 8, without affecting files: Refresh Your PC to Resolve Problems (Windows 8) Also, here is a Windows sound troubleshooting tutorial. Just out of curiosity, I re-created the issue on a Windows 8 computer and went through this tutorial. It was able to resolve the issue: No sound in Windows  *Everything in italics  is currently un-tested, but will be tested as soon as possible. I believe these steps will help: In the search bar, type "services.msc" and hit Enter. Hold down the "Windows" key and "R" key. Type "services.msc" and hit Enter. Look for the following services: - Audio Service- Windows Audio- Windows Audio Endpoint Builder I want you to right-click each of those services, and select "Stop". When they are all stopped, right-click on each one again, and select "Start". As well, make sure each service's status is "Started" and their startup type is "Automatic". Troubleshooting the Update: At this point, unless you want to reinstall the operating system, the only other option is to tackle the update, KB2962407. Please note that the following troubleshooting is ONLY a workaround, for now, and only should be done if the computer has installed this update. First, you can try the Hotfix in this Microsoft document, specifically to address KB2962407: Windows RT, Windows 8, and Windows Server 2012 update rollup: June 2014 If that doesn't help, then uninstalling the Windows Update, and then hiding it, is the only method of eliminating the issue if it caused by this update. Here is the procedure for uninstalling the update: 1. Go into Control Panel, then click on “Programs and Features”.2. Click on “View Installed Updates”. Look for the update with the ID number KB2962407.3. Right-click on the update and select “Uninstall”. Restart the computer. Next, here is the procedure for hiding the update: 1. Go into Control Panel, then click on “Windows Updates”.2. Click on “Check for Updates”. When the process is completed, is should find important update(s) available. Clicking on the message will open a window where the important update(s) is.3. Right-click on the KB2962407 update and select “Hide Update”. This will prevent the update from being installed next time Windows Updates are being installed. Conclusion:
    At the end of this guide, you will have sound working again (assuming that the cause was the Windows Update, or at least software-based). Please let me know if you have any other questions or concerns. Thanks!
    Mario

    Hello everyone  Thank you so much for making use of my thread, dedicated to resolve the issue. I appreciate all the feedback  For those who are still experiencing issues, please reply to this post with the following information, and I can continue to assist: 1. The computer's model number. If you require assistance locating this information, please reference this website: Guide to finding your notebook product number 2. The computer's operating system. If you require assistance locating this information, please reference this website to determine your Windows operating system. (Make sure to include whether it's 32 or 64 bit.) 3. Does this occur on certain programs, or all programs? 4. Have you installed any new software or drivers on this computer, before the issue appeared? 5. What steps have been attempted from my first post on this thread, and what were the results? Additionally, if the issue just began occurring, I would perform a system restore. I want you to bring the computer back to the earliest restore point possible, in an attempt to dodge whatever caused the issue. Here is a document on how to perform a System Restore: System Restore Thanks again for all the continued support! Mario

  • After upgrading to Lion internal mic does not work with Facetime

    After upgrading to Lion internal mic does not work with Facetime.  The mic is picking up sound as noted in System Prefs.  This was working just fine before the updgrade.  Facetime works OK on my iPod. 

    you have in french a tutorial to recreate your partition here
    Rebuild partition with Recovery HD lion after upgrade to 10.7.2
    i tested, it's work !
    For your wifi problem:
    Try to change your setup of wifi, look this table given by apple:
    I changed my wifi setup wep to wpa and it's work !

  • Regular expression does not work in IE

    Hi,
    I'm having a regular expression which should check the content of an inputText field: it should contain a number, a character and the size should be at least 6. It's working when I test it in FireFox but it always fails to succeed in IE:
              <af:inputText>
                <af:validateRegExp pattern="^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$"
                                   noMatchMessageDetail="Does not match."/>
              </af:inputText>How comes it does not work in IE (6.0)?
    JDeveloper 10.1.3.3
    Thanks in advance,
    Koen Verhulst

    hi Koen
    The web page you refer to ...
    http://www.fileformat.info/tool/regex.htm
    ... seems to be doing server side Java regular expressions (and as such will behave the same in both FF and IE).
    The af:validateRegExp component you want to use does client side evaluation of the regular expression, using scripting, hence the apparent difference between FF and IE.
    There is also this web page ...
    http://www.regular-expressions.info/javascriptexample.html
    ... that seems to behave similar to the markup and scripting resulting from the af:validateRegExp component.
    Besides the value "2abcdef" there seem to be others that are accepted by IE for the regular expression "^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$", values like these:
    "a2abcdef", "a2abcde", "abcdef2abcde", "2a3cdef", "2a34567"
    Although these values are not accepted by IE (but are accepted in FF):
    "2abcde", "23bcdef"
    success
    Jan

  • JCLoginDialog does not work correctly in JDev 10

    Have anyone got the JCLoginDialog to work with JDev 10g and JDBC?
    I have a JCLoginDialog generated by JDeveloper 10g, and have made the appropriate changes as described in the JDeveloper help. (Removing password and deployPassword entries in bc4j.xcfg and made the described changes in the getInfo method.)
    When I am starting the application, I am repeatedly getting prompted for username and password, although I enters the correct values).
    Below is some trace from my getInfo-method:
    Debugger connected to local process.
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = student
    getInfo --> password = student
    getInfo <-- user = student
    getInfo <-- password = student
    getInfo --> user = xyz
    getInfo --> password = null
    getInfo <-- user = student
    getInfo <-- password = student
    student/student is the correct database username and password, and xyz is the value for username in bc4j.xcfg.
    Another interesting thing is that the runtime exception checked for in the beginning of the getInfo-method:
    RuntimeException exc = ((RuntimeException)((Hashtable)connEnvironment).get(DefaultConnectionStrategy.LAST_EXCEPTION));
    is always null, even if I tries to enter an incorrect password.
    I need a quick solution for this, since we must be able to use different database users in our application.
    Thanks in advance.

    Has anyone succeded in doing this?
    This is a very very basic functionality, and it does not work in JDev10g Production. Either it is a bug in ADF, or a bug in the documentation of how to implement this.
    Oracle Support, where are you? I have not got any answers for this, neither in this forum, nor in Metalink.

  • Application does not work properly when I press a CommanButton

    Hi all, I am having a problem with weblogic 10.3.5.
    It turns out that an application built with JDeveloper 11.1.5, I test it, and everything goes well in the JDeveloper integrated Weblogic.
    But when deploy in a standalone weblogic 10.3.5 server, the application does not work properly when I press a CommanButton to go to another page search (the property "action" is set correctly) , but nothing happens, stays in the same home page. Similarly when a commanButton link to run a task-flow, It do not work , however in the JDeveloper integrated Weblogic it runs correctly.
    How I can solve these problems?
    Thanks.

    Thanks Frank for help us, but when I writing this comment we are doing at home. So, we going to test the page in a stand alone weblogic server 10.3.5. We wrote the URL as :
    " http://<our ip>:7001/myApp/faces/index.jspx "
    this application contains a report desing and compiled with iReport 4.5.1 ( last version in the moment ), we can see the report when I press a commanButton without any problem.
    But now, we need try your suggestions in the office, and give you more information about it . Thanks for the moment.
    In the Afternoon we gonna give you more information about it .

  • Import package does not work - beginner help

    Hi, I'm a beginner with java. I just trying to figure out how to use packages. I followed everything in the tutorial, but I can't figure out why my simple example does not work.
    I made the following directories three, for the sake of the example.
    in /home/username/Desktop I created a directory named it
    inside it I created prove
    inside prove I created test1 and test2
    Inside test1 I created the following sample class:
    package it.prove.test1;
    public class HelloWorld
         private String message;
         public HelloWorld(String message)
              this.message = message;
         public String getMessage()
              return this.message;
    }in the directory test2 I created this other one:
    package it.prove.test2;
    import it.prove.test1.HelloWorld;
    public class HelloWorldProgram
         public static void main(String[] args)
              HelloWorld hw = new HelloWorld("Guten Tag, Welt!");
              System.out.println(hw.getMessage());
    }So now I have this three:
    it
    it/prove
    it/prove/test1, it/prove/test2
    As I said in test1 there is HelloWorld.java and in test2 HelloWorldProgram.java.
    When I compile HelloWorld.java, it worked fine.
    When I try to compile HelloWorldProgram.java, the compiler says that cannot find package it.prove.test1..
    Why that? What did I make wrong?
    Sorry both for my bad english (it is not my first language) and for the really trivial question (I'm a really beginner).
    Tnx to whoever will help

    Assuming you are running on Windows here.
    Packages are directly tied to the classpath. Before java can find the it.prove.test1 package, it needs to be a part of the classpath. To make this possible, you need to add the root of the path, where the 'it' directory is in, to the classpath, like this:
    javac -cp .;/home/username/Desktop file.java
    the -cp switch tells java which classpath to use; it consists of two elements:
    . = current directory
    /home/username/Desktop = the directory containing the 'it' package root
    When run like this, it should work. The same goes for running the code, you would run it like this:
    java -cp .;/home/username/Desktop it.prove.test2.HelloWorldProgram
    Hope that gives you the hints you need.

  • Delphi Client Web Service does not work fine

    I wrote a Hello web service with a method and with a parameter, and import WSDL in delphi, All works very well. But when I add two parameters I receive the error below:
    java.lang.IllegalStateException: Cannot obtain java type for: {urn:CalculatorFacade/types}add
    at org.jboss.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:710)
    at org.jboss.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1187)
    at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1045)
    at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:972)
    Using the google I discovery this tutorial.
    http://www.javapassion.com/planning/handsonbyol/netbeanswebservices
    I wrote a calculator web service with Netbeans and deploy it on jboss-4.0.3.
    So I was change my project parameters to change wscompile parameters: rpcliteral, strict
    When I execute the code: x = calc.add(a, b)
    I receive another error:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: javax.xml.rpc.JAXRPCException: No such operation 'int_1'
    at org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:273)
    at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
    at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
    I test this web service in a Java client and it works very fine, but with delphi client it does not work :(
    Can someone help me?
    []s, Welington B. Souza

    Welington,
    Could you post the source of the web service that gives you the error?

Maybe you are looking for

  • Web app security ... i don't get it

    I do not get it how do one configure web.xml I want every page to be protected against unlogged user and some pages only to some of them From what I read it's only necessary to have only one root role that every user is part of and then any sub-role

  • Can I use multiple ID on IPad?

    I have an IPad which my friend set up for me, he used his Apple ID so he could load music on, but now I can't update my software.  If I log of his account and log on to mine do I lose all the 1500 songs he loaded for me??

  • Function Module for Production order configuration

    Hi, I have variant configuration scenario. I have to run the transaction CO01 in the background. Is there any Function module, by which i can configure the production order in the back ground. As of now, when i am doing it manually but not able to fi

  • Can you  say internally what happens?

    String s1 = new String("ABCDEF"); String s2 = new String("ABCDEF"); if(s1==s2){ s.o.pln("true") }else s.o.pln("false") } here it gives false String a="xxxxx"; String b="xxxxx"; if(s1==s2){ s.o.pln("true") }else s.o.pln("false") } here it gives true

  • Strange problem with default mail account

    Just recently, the behavior of my default mail account (ATT yahoo server) has changed. This is a regular POP account, but suddenly, although mail still comes into the account as it should, the messages are not treated as new messages: there's no mail