I am using JDeveloper 12.2.1.2 on Windows to develop applications for OSB.
I had previously used the database adapter in another project within the same application. Now when I drag a DB adapter into the composite, the wizard prompts me for all values, then gets stuck on "Generating the business service..." message without actually adding it. The menu works. I can perform other functions.
I tried closing JDeveloper and restarting, then adding again. Stuck at same point.
Found the problem.
I had created a folder named "Database" under "Resources". In the first step of the wizard, I selected this folder as the location to create the business service in.
I then noticed that the files were getting created in "Resources". Apparently, JDeveloper messes up the location and then gets stuck because it can't find the files it creates in the wrong folder.
The solution is to not make any changes to the default folder location.
Related
So, new to .NET Core and going slow. Followed a standard tutorial for ASP.NET Core MVC app using Entity Framework to connect to MSSQLLocalDB - this went well.
Converted the application to connect to MySql, and went equally well,
Changed the name of a table on MySql to Interests from Interest, and after a bit of fiddling around this to was put to bed, that is it was working as expected.
Went to run the application today and I get:
There were Build Errors Would you like to continue and run the last successfull build.
Code has reverted to Interest, from Interests in several places in Obj files,
for instance "Create.cshtml.g.cs"
Corrected the code and went to run, the same build error pops up, and all corrections are undone.
I make the changes again, save the files, exit VS, reload, the changes are as they should be, run and it reverts all changes, failing again.
I thought this might be some sort of cache issue so deleted the obj folder, again corrected the entries, but again run the build and the corrections reverted!
I solved this issue on my machine by changing the cshtml file properties. Right click the chstml file in the Solution Explorer window, click on Properties in the context menu.Then in the Properties window, change the "Copy to Output Directory" to "Copy if newer". Then make sure "Build Action" is set to "Content".
I am trying to run ColdFusion existing project in my local system, I am getting the error message below. Am I missing anything?
Selected file is not in the document root of the server. If the
project is not in the document root, create a linked folder to the
document root (selecting Project Properties > ColdFusion Project)
Try to do it:
https://forums.adobe.com/thread/896469?tstart=0
The bottom line: In CFBuilder, go to the Servers view and right click on the local server running you are running against. When the initial screen comes up, check to make sure all of that is correct, then click NEXT. On the next view ("Local Server Settings") there is a path for the Document Root. Make sure that's correct and click Finish.
The background: I had to relocate my Apache server to a new directory with a different name. Even though I changed all of the associations in the Projects and the Workspace and the httpd.conf file for Apache, the localhost settings in CF Builder were still pointing to the old Document Root. Once I corrected that, everything worked like a champ.
I found other Questions and Answers dealing with getting the NetBeans IDE to talk to the Apache Tomcat servlet container. But they seem to be out of date or involve extraneous steps. I remember the process as being less complicated on my Mac. But I cannot remember the exact steps.
Indeed, getting Tomcat to talk to NetBeans is fairly simple though not obvious.
Java EE edition of NetBeans
If downloading NetBeans, grab an edition of NetBeans IDE already bundled with Tomcat. You may need to customize the installation to get Tomcat, as described in this Question.
But that version of Tomcat is likely to be out of date. So let‘s look at hooking up a fresh copy of Tomcat with NetBeans IDE.
File Permissions
First be sure your copy of Tomcat can run. The permissions by default usually do not allow execution, at least in my experience on a Mac. So reset the permissions. If you are a Unix whiz, you can do so in the command-line. The rest of us use the BatChmod app.
I turn on all the checkboxes except Clear xattrs.
Verify that Tomcat can run by executing the startup.sh file in Tomcat’s bin folder. Point your web browser to http://localhost:8080/ to see a Tomcat page. Then run shutdown.sh to quit Tomcat.
Tip: You may delete all the files ending in .bat. Those are "batch" files used only on Microsoft Windows. Mac OS X uses the Unix files ending in .sh instead.
Define a Server in NetBeans
In the Services pane, context-click on the Servers item. From the context menu, choose Add server.
Big NetBeans Tip: When in doubt, context-click. While the Mac convention is to provide a main menu item for every item with context-menu being a mere convenience, NetBeans depends heavily on context-menus.
In the dialog that appears, choose Apache Tomcat or TomEE. Type a name to be displayed in NetBeans list of "Servers". I suggest typing "Tomcat" plus the version number.
Click Next for the next panel of this Add Server Instance wizard.
Tomcat Location
Click the Server Location > Browse button, and choose where your Tomcat folder. I keep mine in my "home" folder.
Deployment Location
Turn on the Use Private Configuration Folder checkbox.
We need to choose a folder where we want Tomcat (specifically, Tomcat’s Catalina module) to do its work, keep its temporary files, keep its logs, and place the installed copy of your web app when you run from within NetBeans. You must create this folder. The folder’s location can be anywhere. For its bundled version of Tomcat, NetBeans uses a folder nested in ~/Library/Application Support. But I tend to create a folder in my home folder with a nested folder for each version of Tomcat, ~/Apache-Tomcat-Netbeans/8.0.27/ for example. Unix & Java tend to get cranky about spaces in file paths, so I use hyphens rather than spaces in those folder names.
Click the Cataline Base > Browse button to display a file picker. Use the Create New Folder icon button in the upper right corner to create the folder hierarchy you want to use for your web app’s deployment when run from NetBeans (as discussed in previous paragraph).
Tomcat Manager User
Lastly in that panel, make up a user name and password to be used as a Tomcat "manager" to startup and shutdown Tomcat. Be sure to check the Create user if it does not exist checkbox.
The wizard panel should look something like this screen shot.
Click the Finish button. And voilá, you have a new Tomcat server defined within NetBeans.
The last step is to tell your project to use that server.
In your project’s Properties dialog, set Build > Run > Server (popup menu) to your newly defined server.
Having migrated to Win 8.1, I am now getting this message box when building an existing project.
I cannot workout how to get rid of this box as I dont need this feature. Where is the setting that is making this box appear?
On build I get this message box.
Unable to connect to a database specified in the solution.
Do you want to modify this database connection properties?
I have inspected the SLN and PROJ files and cannot see the cause. In the solution it happens for some projects and cannot see a pattern as to why two projects that are similar where one is and one is not showing the box on build.
Edit the {Projectname}.csproj.user file.
Remove the xml element
<DatabaseConnection></DatabaseConnection>
Then either restart VS to reload the project.
Or
Unload and reload the project from within the VS IDE.
Since I was getting the box due to a dependant other project in the solution, it would be a good idea to do an inspection of all csproj.user files for the xml element.
Our BizTalk Server got renamed, but when we create a new project it still keeps defaulting to the previous server. I have been looking but I can't find anywhere to set these default values and update it.
edit:
Since it might be more clear if I add an image, I did.
Basically now when a new project is created the Server in the below screen is BizTalkDev_1. Can we change this to always be localhost when we create a new project? A hidden ini file somewhere?
When you go to visual studio project. Right click the project ...go to the property...and in the deployment part you can change the server name ...