Struts Diagram and CVS Problems

We're having a difficult time with the StrutsPageFlow.oxd_struts and CVS. Anytime a developer makes a change to the Struts diagram and commits the struts-config.xml file, the StrutsPageFlow.oxd_struts file also gets committed. When a different developer updates the struts-config.xml file the StrutsPageFlow.oxd_struts file has a conflict on just about every item. We're also encountering this on our *.jpr and bc4j.xcfg files.
JDeveloper 10g is stealing a lot of our time as we're having to manually work around a lot of CVS conflicts on files that are not shown in the project but associated with project files like the struts-config.
Anyone else having CVS issues with these "behind-the-scene" files?

Hi Jason,
Unfortunately, this is a known issue. The only workaround we can suggest for struts at the moment is using an exclusive editing mode. Whenever a developer needs to modify the struts diagram, he should issue a cvs edit. Other developers should use the "List Editors" functionality in JDev to check whether someone is currently editing the file.
We're working on resolving these team development issues in the 10.1.3 release.
Thanks,
Brian

Similar Messages

  • JDev10G:  Struts Diagramming and Action calls in JavaScript

    I've noticed that a Struts diagram does not reflect actions that are called from within JavaScript methods. Is this something that will be included in JDeveloper 10G 9.0.5 production?

    We are not currently going into the code (java or java script) to look for action calls. I will enter an enhancement request for this functionality.
    Thanks,
    Pete

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

  • WLS 6.1 SP2 and Struts 1.1b3 Manifest Problem

    When I try to deploy the struts-example.war or if I add the struts.jar
    to any other web app I've created, I get this error when I start WLS and it
    tries to deploy that war.
    java.lang.StringIndexOutOfBoundsException
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName
    (WebAppHelper.java:469)
    I'm using version 1.1b3 of struts. I'm having no problems with version
    1.0.2 of struts.
    I'm guessing its complaining about the manifest file in struts.jar, but I
    don't understand why.
    Here's my version info and the stack trace (my web app is called findme in
    this example). Thanks in advance.
    -Phil
    Server BuildWebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product VersionsWebLogic Server 6.1 SP2 12/18/2001 11:13:46
    #154529 WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    <Feb 11, 2003 7:45:25 AM EST> <Error> <J2EE> <Error deploying application
    findme: Could not load findme>
    <Feb 11, 2003 7:45:25 AM EST> <Error> <Management> <ApplicationManager
    starting Config caught throwable
    java.lang.reflect.UndeclaredThrowableException:
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.jav
    a:469)
    at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:
    234)
    at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServ
    letContext.java:3407)
    at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletCont
    ext.java:3376)
    at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.ja
    va:862)
    at
    weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.
    java:815)
    at
    weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:144)
    at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java
    :76)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy29.addWebDeployment(Unknown Source)
    at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployme
    nt(WebServerMBean_CachingStub.java:1121)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:315)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploymen
    tTarget.java:279)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(
    DeploymentTarget.java:233)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploy
    mentTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy28.updateDeployments(Unknown Source)
    at
    weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments
    (ServerMBean_CachingStub.java:2761)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(App
    licationManager.java:370)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManag
    er.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy36.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start
    (ApplicationManagerMBean_CachingStub.java:480)
    at
    weblogic.management.Admin.startApplicationManager(Admin.java:1180)
    at weblogic.management.Admin.finish(Admin.java:590)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
    at weblogic.Server.main(Server.java:35)
    --------------- nested within: ------------------
    weblogic.j2ee.DeploymentException: Could not load findme - with nested
    exception:
    [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
    at
    weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:163)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:329)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:144)
    at
    weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java
    :76)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy29.addWebDeployment(Unknown Source)
    at
    weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployme
    nt(WebServerMBean_CachingStub.java:1121)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deployment
    Target.java:315)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploymen
    tTarget.java:279)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(
    DeploymentTarget.java:233)
    at
    weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploy
    mentTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy28.updateDeployments(Unknown Source)
    at
    weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments
    (ServerMBean_CachingStub.java:2761)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(App
    licationManager.java:370)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManag
    er.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImp
    l.java:636)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:
    621)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBe
    anImpl.java:359)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy36.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start
    (ApplicationManagerMBean_CachingStub.java:480)
    at
    weblogic.management.Admin.startApplicationManager(Admin.java:1180)
    at weblogic.management.Admin.finish(Admin.java:590)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
    at weblogic.Server.main(Server.java:35)
    >
    <Feb 11, 2003 7:45:32 AM EST> <Error> <J2EE> <Error deploying application
    struts-example: Could notload struts-example>
    <Feb 11, 2003 7:45:32 AM EST> <Error> <Management> <Error deploying
    application .\config\mydomain\applications\struts-example.war:
    java.lang.reflect.UndeclaredThrowableException>

    I've solved my own problem. I learned that there was a sp4 (let alone a
    sp3) for WLS. Installed that and the problem went away. Sorry for the
    noise.
    -Phil
    Philip Bower <[email protected]> wrote in
    news:[email protected]:
    When I try to deploy the struts-example.war or if I add the struts.jar
    to any other web app I've created, I get this error when I start WLS
    and it tries to deploy that war.
    java.lang.StringIndexOutOfBoundsException
    at weblogic.servlet.internal.WebAppHelper.resolveManifestName
    (WebAppHelper.java:469)
    I'm using version 1.1b3 of struts. I'm having no problems with
    version 1.0.2 of struts.
    I'm guessing its complaining about the manifest file in struts.jar,
    but I don't understand why.
    Here's my version info and the stack trace (my web app is called
    findme in this example). Thanks in advance.
    -Phil
    Server BuildWebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product VersionsWebLogic Server 6.1 SP2 12/18/2001
    11:13:46 #154529 WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02
    #154529
    <Feb 11, 2003 7:45:25 AM EST> <Error> <J2EE> <Error deploying
    application findme: Could not load findme>
    <Feb 11, 2003 7:45:25 AM EST> <Error> <Management> <ApplicationManager
    starting Config caught throwable
    java.lang.reflect.UndeclaredThrowableException:
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -1
    at java.lang.String.substring(String.java:1525)
    at
    weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper
    .jav a:469)
    at
    weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.j
    ava: 234)
    at
    weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebApp
    Serv letContext.java:3407)
    at
    weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServlet
    Cont ext.java:3376)
    at
    weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContex
    t.ja va:862)

  • JDeveloper IDE Crashing using double click on DataAction in struts-diagram.

    Hello,
    Has anyone had this problem with Jdeveloper10g?
    We have a workspace for an application that has grown fairly large. The
    problem happens when we try to drag a DataAction from the Component Palette
    onto the struts-diagram when in the the JDeveloper10g IDE and then
    double click the icon to create a data action. We get this message:
    An Error has occurred in the Java VM
    An operation has failed because an error has occurred in the Java VM. The current
    activity may fail and the system may have been left in an unstable state. The following
    is a stack trace.
    java.lang.StackOverflowError
    If further errors occur, you should restart the application.
    If the error was an OutOfMemoryError, try closing some components, such as some
    diagrams, or increase the Java heap size.
    Also, report the problem on the JDeveloper forum on otn.oracle.com, or contact Oracle
    support, giving the information in this message.
    The Version of JDeveloper we are using is: 10.1.2.1.0 Build 1913 but we also had the
    same problem using this same workspace in Build 1811. If we try a different workspace
    there is no problem and we don't see the issue. Neither do we see the problem if we drag
    either a DataPage or a plain Action from the Component Palette and the double click
    either of those to create a Jsp page or an action.
    We have spent hours using diffing software recursively on the workspace directories trying
    to determine what may have gone wrong. We have eliminated a great deal from the problem
    workspace including deleting everything from the struts-diagram (In a copy of the ws of course).
    We really can't afford to rebuild the workspace from scratch and this problem causes us a
    significant headache. It seems like a serious bug in JDeveloper itself.
    Any help would be appreciated.
    Thanks,

    Problem Solved! This condition is caused by a circular dependency set up when the view was checked as a depndency for the model. We had a small class in the view that was being used in the model so the model was made dependant on the view and this causes an infinite loop condition of some sort when double clicking on a newly dropped in DataAction as described below.

  • JDeveloper and CVS and TeamWork

    Hi,
    we have a small team with 4 members and are developing in JDeveloper 10.1.2 with CVS plug-in (struts, toplink, jsp).
    We are beginners and are frustrated now: every commit/update causes problems.
    Always are problems with
    - project.jpr files (synchronization among developers)
    - sessions.xml (we cannot really add this file to cvs)
    - state of offline tables (and digrams) are sometimes wrong show: restart of JDeveloper is necessary
    - many JDevelopers files are unvisible, but must be added to cvs
    - and more and more
    Please - are somebody using JDeveloper & CVS in team with satisfaction? Are our problems beginner-problems or is this way wrong?
    Thanks for your experience.
    Jara

    My biggests issues with JDeveloper and CVS are as follows:
    1. Oracle puts out an article that talks about Version controllable XML and the biggest culprits of violators of this rule are the Oracle project files: StrutsPAgeFlow.oxd_struts, ViewController.jpr, and Model.jpr. Not nice when you can no longer open your Struts-config.xml file due to all the <==== lines in the file! In almost all instances, since we've built most of the files and aren't adding/removing much from the project as a whole, we can easily correct these problems then commit again, or just issue a clean update on them, and disregard (especially when it appears to be an ordering issue)
    2. Also, we've seen model.jpr files switch contents (areas look like they are swapped around) in between versions. Why? The files are identical except the position of the nodes.
    3. I really want to know my OUT-OF-SYNC files BEFORE I do an update. Kind of like the Uncommitted files window, I'd like: Hey, how out of sync am I?
    4. The COMPARE utility is very nice, however, once CVS takes over and does the automatic MERGE, you're really left with a mess (at times). Any time we get a "failure to update" message, we issue a compare against the current reposistory version verses version on disk and see what the differences are. Then we search for whether our stuff was merged properly.
    5. The only docs I've seen on Jdeveloper and CVS are "introductory" type documentation. Don't put out a document that talks about issues that are "out-of-scope" when these are the very issues that people need to deal with every day, and are looking for answers. The "oracle jdeveloper 10g" handbook is no better, offering about 4 pages of an "overview of CVS".
    6. People have asked before about CVS, even on Metalink and an answer from Oracle is to look at an OTN post. I'm sorry, but that really doesn't cut it, especially when your support bill is over $500K/year.
    enough rambling...
    CVS and Jdeveloper 10.1.2 are working at our shop with 3-4 developers on the project, but it can be paintful during the "conflicts during merge" times.

  • JDeveloper and CVS

    Hi All,
    Just for anybody getting started with JDeveloper and CVS. I've been using both during a while and my comments are:
    -- If you are thinking to replace your old CVS System, you really must think about it, JDeveloper just incorporates a little subset of features any CVS System actually has (like eclipse).
    -- If somebody have been working with the same code your are using, to know if the code have changed isn't as simple like to make a "check for changes or compare with". Because if you use "JDeveloper Compare With option", JDeveloper check correctly for changes, but for changes over your own last revision, so if somebody create a new revision, you will loose your changes.
    well I think JDeveloper creators must make a lot of effort to incorporate CVS functionality, if not, better remove this option from it.
    anybody has any comments???

    I need to try to understand why you would want to erase a version controlled file in your sandbox from disk but not remove it from version control. I guess we do this automatically because it seems like the right thing to do... it should be noted that this is also the default behavior in Eclipse.
    If you remove a file from your sandbox but do not schedule it for removal from CVS, you could basically make changes in your sandbox that will cause other developers to run into compilation errors after you commit and they update.
    E.g. SomeClass.java depends on a class defined in AnotherClass.java. You remove SomeClass.java from disk but not from the sandbox. You then rename a method in AnotherClass.java that SomeClass.java had been using. You compile your project, it all seems fine. You commit your changes to the cvs repository. Then your collegue updates and the world is broken.
    It seems like a bad way to work. I'd be interested to know what the usecase is for doing this and whether there is perhaps a better way of achieving it (e.g. using working sets or the project content filters).
    I'm aware of the issues with the files you mention. They're not really issues with the CVS support as such, they're issues with the parts of the product which generate those files. I know that probably doesn't make much difference to you, but it is relevant in terms of how (quickly) things get fixed.
    The xml mergeability of several IDE files (in particular projects) improved greatly in JDeveloper 10.1.3 preview. I've tried very hard to raise awareness in the teams that develop those other features (ADF and Struts) about issues they have with version control. It's sometimes hard to convince people that there's really a problem for some reason. I'm hoping things will eventually improve. You can help that a lot by reporting such issues to your Oracle Support representative so that your specific problems are being tracked as TARs.
    Thanks,
    Brian

  • Struts diagram not opening?

    Hi gang
    In JDev 9.0.5.2 my struts diagram wont open. It's odd as the structure window correctly shows the struts elements, I can also edit the struts elements via the struts editor, but the diagram wont open?
    Anybody had this problem and found a solution?
    Cheers,
    CM.

    I thought it could be this too. I had been fooling around in the extension manager earlier in the day to speed up JDeveloper. However I left this option checked as I do use the struts diagrammer. As a re-assurance, I checked all options under the extension manager, restarted JDeveloper and again tried to open my struts diagram with no success.
    I also tried turning off the struts extension, restarting, turning the struts extension back on, restarting, then viewing the diagram to no success also. However this does allow me to view the actual XML file now, where as previously this wouldn't open either.
    Finally I performed a 'validate-XML' on the struts-config.xml which reports the file's contents are fine.
    Any other ideas? Is there any way to get any diagnostics out of JDeveloper to see what's happening? Is there a limit to the # of elements the struts diagrammer can handle? - I have around 50 data pages and many more forwards.

  • Upgrading JDeveloper 9052 to 1012 and centrino problems?

    I have recently purchased a new laptop with the following specification:
    Dell 9300
    Centrino 1.8
    1Gb DDR2
    ATI x300 128Mb
    60Gb Hard Drive
    Windows XP SP2 + all updates
    to replace my previous development machine.
    I have experienced the following problems when running JDeveloper on it and I'd appreciate your assistance in rectifying them.
    1. I installed JDeveloper 9052 on my laptop and tried to run an ADF based application that I have got running on many other development machines and a 904 server. When I ran the application on my laptop it worked fine until it reached the point within the application that created an inputStream from a URL - where it failed. I know that it fails exactly at this point after spending some time debugging the code. I found this very strange as I could successfully view the content of the URL in a web browser.
    2. In an attempt to find a solution to point 1. (see above) I installed version 1012 of JDeveloper. I tried to open the existing project that I had created in 9052 and when prompted agreed to convert it to the new format. Then without opening or editing any of the files I successfully ran the applicaiton by right clicking on the view controller within the project (applicaiton navigator panel) and selecting run from the context menu. The application ran successfully without any problems at this stage.
    HOWEVER, I then opened up the struts-config pageflow diagram and tried running it from there, the project failed.
    After studying the struts-config file both before and after I had opened it within 1012 I found the following discrepancy:
    BEFORE: - - - - -
    <action path="/getParams" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.GetParamsAction" name="DataForm">
    AFTER: - - - - -
    <action path="/getParams" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.GetParamsAction" name="DataForm" parameter="unknown">
    After manually removing this line of code I was able to get the application to run again. However every time I edit/view the struts config file or indeed save changes and reboot JDeveloper the parameter="unknown" line is added again and prevents the project from running.
    3. After further investigative work following point 2. I came across what I believe to be a further bug.
    When I reopened JDeveloper I noticed that the struts-config pageflow diagram had changed. A dataAction had been replaced by a dataPage as well as the extra line of code being added as described in point 2. The pageflow diagram should be dataPage --> dataAction --> dataPage but now it was dataPage --> dataPage --> dataPage.
    After further investigation I found a descrepancy in the following file before and after I had opened it in 1012. The nominalHeaderXml4\ViewController\model\StrutsPageFlow.oxd_struts file changed from this ....
    <shape name="/getParams">
    <elemRef name="" value="3d2b2d0e-0104-1000-8008-c222e564ea8e::/getParams::StrutsDataAction" type="StrutsDataAction" class="o:b:CID"/>
    </shape>
    to this when I had opened it 1012.
    <shape name="/getParams">
    <elemRef name="" value="51d65a60-0104-1000-8003-c222e56470a8::/getParams::StrutsDataForwardAction" type="StrutsDataForwardAction" class="o:b:CID"/>
    </shape>
    I have speant the last 2 days looking into these problems. I have found that both points 2 and 3 happen consistantly when opening 9052 projects in the 1012 environment. And have elimated the following things when trying to get JDeveloper 9052 to work correctly, firewalls, antivirus, windows updates, and software conflicts. The only difference that I can identify is that my new machine uses a centrino chip and my old one used a P4.
    I hope that someone will be able to shed some light on these problems for me as soon as possible. Thanks in advance for your help.
    David
    David Ferguson

    The struts-related observation is noted in the JDeveloper 10.1.2 Release Note Addendum:
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.2.0.0/readme_10.1.2.0.0_addendum.html#jan1
    For the 1st issue, I'd recommend opening a TAR with metalink so our worldwide support engineers can help diagnose the problem. I've not heard of any Centrino specific issues to date.

  • Best practice: team based development with JDeveloper and CVS?

    Hi all!
    I was wondering of what is the best way to work with Jdev 9i and cvs on a same project with 5 developers whereas
    all developers use the same JPRs and JWS?
    Which of the files should be checked in to the central CVS repository, which should be remained on the local machine of each developer?
    I assume, all java and xml files might be stored in the cvs repository. But how can we make sure that new files written by a member of the team will be added to my project?
    If we also check in the JPR and CFG files the merge of concurrent JPRs will fail and our project will be shreddered ;-)
    My question: what is your best experience with simultanous development on same projects?
    Any idea?
    Many thanks,
    Stefan

    1. Put everything that your project needs under CVS control:
    - buildscripts
    - BC4J jarfiles
    - BC4J generated files (java, xml, xcfg, jpx, cpx)
    - .properties, package.html, gif, ...
    - docu
    - install scripts
    - starter batch or exec, ...
    2. Each developer should have a own JPR and JWS file. In a seperate location those files could be checked in frequently to easy allow the setup of a new Developer workstation
    3. Use a sourcecode formatter (e.g. jalopy) on the BC4J generated java files to reduce merge conflicts because of empty lines generated by JDev dialogs
    4. Adding new files is no problem:
    - if you add new BC4J objects (AM, VO, ASC, EO, VL) also checkin the bc4j package XML so new files will be added.
    - set in project settings common / input paths - "Scan source path ..."
    5. Deleting BC4J files is a problem, because JDev does not automatically remove them from the project. So if someone deletes BC4J objects, you should close the project and delete it manually from the jpr file
    6. Close the project before making a CVS update wih external tool like Tortoise because of JDev caches
    Regards, Markus

  • How is the processing speed while using struts,spring,and JSF framework

    Hi friends,
    As per earlier technology like Servlets,I mean that there would have much more performance speed than other new technologies like JSP,struts,spring and hibernate framework.Because,in new technologies,flow of processings implicitly via MVC2 basis will probably much more time than older one.
    Total goal is only for attaining MVC2 or any other purpose?
    Please clarify my doubt?
    With Regards,
    Stalin.G

    Home grown applications have a problem in that as more and more features are added, it becomes increasingly impossible to maintain the application and enhance it. This is especially true when the original programmers leave the company. A framework provides a standard design approach that other programmers can hopefully more easily pick up.
    A lot of work has gone into creating these frameworks and they have been used in web sites that have millions of hits from users per day. They have high preformance. Of course, programmers can still write bad code in them that slows down the system. I believe anyone using these frameworks should study them well before using them (such as reading books on them).

  • Struts Actions and events in one jsp?!

    Hello,
    I have a problem with Struts actions and events in a jsp.
    It is a search page and when the user clicks the search button I trigger an event and when the user clicks on a link in the result table (same page) I use an action that opens a new detail jsp. The first search query works well, I get a result, open the detail page, go back (using an action).
    Then I start a new search, but struts tries to open the detail page. While debugging I found out, that struts apparantly has no action or event. Why does it work at first time?
    Any ideas?
    Thanks in advance
    Britta

    Thanks for answer,
    I work with actions AND events. I think that`s the problem. When I go back from detail page to search page I use a custom DataForwardAction class with the following method:
    public void onCancel(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    String ziel = request.getParameter("ziel");
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("Rollback");
    action.doIt();
    try
    ctx.setActionForward(ziel);
    catch (Exception e)
    ctx.setActionForward("liste_freig");
    Ziel has the correct value ("search") and I think the struts config is also correct:
    <action path="/material" type="view.actions.materialAction" className="oracle.adf.controller.struts.actions.DataActionMapping" parameter="/material.jsp" name="DataForm">
    <set-property property="modelReference" value="generalUIModel"/>
    <forward name="liste_freig" path="/liste_freig.do"/>
    <forward name="liste_angelegt" path="/liste_angelegt.do"/>
    <forward name="list_bewertet" path="/list_bewertet.do"/>
    <forward name="liste_abgelehnt" path="/liste_abgelehnt.do"/>
    <forward name="liste_onhold" path="/liste_onhold.do"/>
    <forward name="search" path="/search.do?action=search"/>
    </action>
    But when I get back from material page to search page (the first time it works). The location pathname is material.do not search.do When start a new search the material page opens, not, as desired, the search page with new results.
    Search Action:
    public class searchAction extends DataForwardAction
    public searchAction()
    protected void prepareModel(DataActionContext ctx) throws Exception
    HttpServletRequest request = ctx.getHttpServletRequest();
    DataActionMapping acmap = ctx.getActionMapping();
    DCBindingContainer bc = ctx.getBindingContainer();
    WebUtils.setSession(request);
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("delSearchQuery");
    action.doIt();
    String sEvent=null;
    try
    sEvent=request.getParameter("event");
    catch (Exception e)
    sEvent=null;
    if (sEvent==null)
    if (request.getParameter("action") != null)
    if (request.getParameter("action").equals("material"))
    Number mat_no=new Number(request.getParameter("MaterialNumber"));
    Number userId=new Number(WebUtils.getUserId(request));
    bc = ctx.getBindingContainer();
    action = (JUCtrlActionBinding) bc.findCtrlBinding("prepareMaterial");
    ArrayList arrayList= new ArrayList();
    arrayList.add(0,mat_no);
    arrayList.add(1,userId);
    action.setParams(arrayList);
    action.doIt();
    ctx.setActionForward("material");
    if (request.getParameter("action").equals("material_datasheet"))
    ctx.setActionForward("material_datasheet");
    super.prepareModel(ctx);
    public void onSearch(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    ctx.setActionForward("search");
    Struts config:
    <action path="/search" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.actions.searchAction" name="DataForm" parameter="/search.jsp">
    <set-property property="modelReference" value="searchUIModel"/>
    <forward name="search" path="/search.do?action=search"/>
    <forward name="material" path="/material.do?action=material"/>
    <forward name="material_datasheet" path="/material_datasheet.do?action=material_datasheet"/>
    </action>
    I think it`s a Struts bug. Or is there something I don`t see?

  • Jheadstart, JDeveloper and CVS and TeamWork

    Hi
    We're four-developer team and we've been working with Jheadstart for some months. Now we want to work with team options that provide jdeveloper (CVS or SCM). But, we are a too much suprised with all the problems that other developers had with CVS, we read it in some jdeveloper forums (JDeveloper and CVS and TeamWork and JDeveloper and CVS
    I get very worry about the problems that developers had with CVS and that at last they don't find a better solution than migrate to jdeveloper 10.1.3. All the forums recomend migrate to jdeveloper 10.1.3 for better support of team work, but I read (some time ago) that jdeveloper 10.1.3 still doesn't support ADF, then I assume we cannot use it with Jheadstart, Am I right? Is there a way to use Jheadstart with JDeveloper 10.1.3 Preview right now?
    What do you recomend for team work with Jheadstart?
    Thanks in advance
    Liceth

    Liceth,
    As you problably know, the JHeadstart team consists of consultants and we face the exact same problems and share the exact same frustrations as you do on an every day basis at our customer projects. It is indeed not easy to use JDeveloper in a multi-developer environment. In all fairness much of this is a given when doing file-based development, and I have seen the exact same problems in situations where other IDE's such as Eclipse etc were used. But using advanced frameworks like ADF and BC4J makes matters more complex, because the declarative way of developing these applications using drag&drop and powerful wizards make you as a developer be less 'in touch' with the file or files that are actually created and updated, and also there tend to be more files in such an architecture that are changed simultaneously by many developers at once.
    Merging is the only way out of this mess, and merge tools are not perfect, far from it. They get better and better but at some point you'll need to understand the semantics of the files that are to be merged to be able to merge them correctly, and merge tools will in all likelyhood never become that smart.
    Until they do, the only thing one can do is to tackle the problem from the other side: if merge tools dont understand the files they merge, we should take into account the weaknesses of these merge tools, and set up our files so that changes CAN be automatically merged, or in most cases at least. Indeed, JDeveloper 10.1.3 is taking good steps in this direction for notoriously tricky files such as JPR files and such. But the problem will never completely go away.
    As for using 10.1.3, well, as you said the preview does not contain ADF so JHeadstart will never run on it. We are developing JHeadstart 10.1.3 that will run on the production version of JDeveloper 10.1.3, but it will be a long time before that release will see the light. And although JDeveloper 10.1.3 is a kick-ass IDE (imho), it will not magically solve all multi-user issues. It will just be a bit more bearable.
    Is there ever a real solution for it? I don't know. I have worked intensively with the Oracle Designer product before I switched to Java, and that tool, which uses a database rather than files to store its information, was almost perfect when dealing with multi-user development. It could do so because the level at which conflicts occur is VERY finegrained (so not at 'code line' level but sometimes as far as 'individual properties in a property inspector' level), plus the advantages of instantaneous locking in the database when modifying something. And, thinking of it, it could do so because it dealt with 'structured objects' rather than files, thereby having some 'semantic' information about the data. I have this feeling we can only 'get it right' if we will treat, for instance, a Java file not as a collection of lines of code, but of a structured object tree with members, constructors, methods, parameters etc. etc., and store it as such, instead of storing it as a flat OS file.
    Just ranting here (this really should be a personal BLOG entry rather than a forum post, but oh well). As you can tell, its a subject that is very close to every developer's heart.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • Struts-Diagram slow

    My struts-diagram is becoming pretty huge by now and due to that it's terribly slow. Opening it, changing something in it, etc... it all takes seconds and it's getting worse because it's still getting bigger. My pc has 1.26GB of RAM, that should be enough I would say. Does somebody has an idea...?

    It seems to work a lot faster now... Great improvement...!
    Only now I'm stuck with a NoClassDefFoundError when I deploy to my application server (AS). I supose I have run the ADF Runtime Installer again, beacuse of the migration to the new UIX-version. The only thing I don't get is, why can you only run this locally...? Last time, we ran ran JDeveloper using X on our linux AS-server, isn't there an easier way for this...?

  • How can I Create Class Diagram and save as image in Java

    Hi
    I have to make a project in java that will generate class diagram of the input class file.
    I have some knowledge of listing methods/properties of a class file in text from but don't really know how to draw a class diagram model (JBuilder 2005 such class diagram whenever a class is compiled). I have to save that class diagram in an image file as well.
    Please guide me what must be my line of action to follow. I need some suggestions on urgent basis.
    Thanx in advance
    Regards

    Hi
    My problem is that I have to construct toll like JUDE. What I need from this tool is just to simply draw the diagrams and save in an image format.
    So I need to know how to draw the diagram and save in an image file. I don't know about the drawing libraries available in Java. Kindly help me
    Regards

Maybe you are looking for