Jdeveloper Migration from 10g to 12C - oracle-adf

I am using Jdeveloper10g in my current project. Now I want to migrate it to Jdeveloper12c.
so I download the Jdeveloper12c and open the Jdeveloper10g application into it.
Before open the application it run the migration tools. which migrate application successfully.
But actual problem arise after migration.
Project Structure :
Service Layer with EJB2.0 (Migrated and deployed successfully)
View
ADF_Module (BC )
In this architecture Service Layer component which has been written in EJB2.0 successfully compiled and deployed with any error.
But View and ADF_module failed for compilation.
In my first R&D I found View and ADF_Module both are dependent to each other . Both are using each other Api.
So when compiler go to compile the view.jpr it does not find ADF_Module class and shows error.
I do not know I to fix this error. Second this structure is compiled on Jdev10g.
Can some one help how to remove this cyclic dependencies or fix this complication error.
Thanks

You first need to move 10 to 11
then 11 to 12.
Each migration does changes in the project settings and 10 to 12 directly is not supported.

Your View project should have a dependency on your Model but not the other way around. This can be modified by right click on your project >Project properties > Dependencies > Use the pencil icon to modify the dependencies.

Related

How to recover DNN Site

One of our client has a DNN Site. There was some issue happened in the server and the drive that host the site is crashed. Luckily the database was in other drive. So we have database of the site. I have a back up of the site in my local system too. Now I need to restore the site. So My question is what steps should I perform exactly?
Below are some twists that I came to know recently:
There were other sites too and they were in different DNN version. Can we know from database which version of DNN was the sites running?
I tried to put my files on server and provide connection string of database. When I start the site, it complete the installation process, but shows me default DNN Page. Please see attached image for the same.
When I checked the Log file, it is throwing below error
Unhandled error loading module. ---> System.Web.HttpException: The
file '/Portals/_default/Containers/Xcillion/NoTitle.ascx' does not
exist
DotNetNuke.Services.Exceptions.Exceptions -
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled error
loading module. ---> System.Web.HttpException: The file
'/Portals/_default/Containers/Gravity/Title_h2.ascx' does not exist.
DotNetNuke.Services.Exceptions.Exceptions -
System.NullReferenceException: Object reference not set to an instance
of an object.
DotNetNuke.Services.Exceptions.Exceptions -
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error
Adding Module to ContentPane ---> System.NullReferenceException:
Object reference not set to an instance of an object.
Then I thought the site may use the inbuilt database (I am not remembering exactly what kind of database I set up). So I copied the site code in separate folder and tried to map this folder with IIS. And that is giving me below error:
DotNetNuke.Common.Initialize - The connection to the database has failed, however, the application is already completely installed, a 500 error page will be shown to visitors"
Can anyone tell me how can I recover this site?
Thanks in Advance.
Ouch!
Having the database (or databases) is a good start.
Look in the Versions table and the last row is the last DNN Version installed. Look in the Portals table to see which portals were created in that install.
The errors that refer to Containers refer to files that are missing from the site's file system. Your IIS configuration for the site points to the root of the file system.
The module load exception probably refers to a module's files that should be in /DesktopFiles/ModuleName.
So, if you have the database AND you have a copy of the files that correspond to the database, then put them all back, make sure that the connection strings are pointed correctly in web.config ... and cross your fingers.
If you have the DNN version and the correct database, you might try doing a clean install of the DNN, install the modules that you had installed on the one that crashed, and THEN swap the clean version's database with the one that you have -- actually a copy.
Make sure that you are keeping copies, and you may be able to reconstruct lots of things.
And, it goes without saying that you should take a blood oath about making good and regular backups, and storing them on a different disk.

Enable-Migrations causes project failed to build

I have created a sample WPF project, worked fine.
I added a MVVMLight project, made it a default startup project, and ran fine.
Now I added a class library project, and added an ADO.NET data model with "Code First From Database", and selected relevant tables, that gave me a good collection of entity classes.
I thought this way, I can keep my data model seperate from presentation and businesss logic layers, plus add additional target plateforms if needed and take the advantage of SoC.
So far so good.
Now I want to enable Migrations on my data layer only. I fired up Nuget console, selected dataLayer project in the "Default Project" drop down. Issued Enable-Migrations command and very first error I got was
"No connection string named 'dpFinDataModel' could be found in the application config file."
Now I modified Startup project - i.e. Mvvm project's App.Config to add App.Config details from DataLayer project.
Tried to rerun "Enable-Migrations", and following error occured:
PM> Enable-Migrations
The project 'dpFinMvvm' failed to build.
Am I doing something wrong here?
Will this approach work?
Thanks for all your help.
-DP
1) PM> Enable-Migrations would get an error if your project itself contains errors.
Try going through your code such as in debug mode and check if you have any build errors then try.
2) And for your config file error you may have not referenced it properly, try this tutorial to solve your issue.
http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/creating-a-more-complex-data-model-for-an-asp-net-mvc-application

asp.net pages can use class library but site won't compile

I am using VS2012 Update 3 and have a solution containing three visual basic projects a class library, a conosole app, and an IIS website.
The website has a reference to the library project. The library compiles fine and automatically places the latest dll in the bin folder of the website.
This was all working without issue before this week.
My web pages are able to import and use the class library. I get proper intellisense and the pages browse or eventually browse showing they are using the library. This week sometimes I get a type not defined error with browsing but after waiting it works. But the compile is always a fail now.
When compiling sometimes the errors show in the error list then eventually disappear but at ALL times when building the errors show up in the output tab as:
SomeCodeBehindFile.aspx.vb(#,#) error BC30002: Type 'SomeTypeInMyLibrary' is not defined.
Error BC30002 - Type XXX is not defined did not help. I tried using fully qualified variable types versus using the import. I tried changing the identity on the app pool to Network Service which has read permission on the whole site.
I've also tried Visual Studio's build > Clean Solution and deleting all files from windows' framework Temporary ASP.NET Files.
The only thing I may have done to irritate VS would have been renaming one of my asp files and its class names/page directive attributes manually but I have done this before without issue. I got paranoid and deleted that file and re-added it also. I also have 3 pages complaining about types not being defined now.
Was really perplexed for awhile. It also got worse with the pages using the library permanently refusing to browse. Though if I copied the library and erroring pages in another web app it would work! Not knowing what went off the rails I started a fresh VB web site and was back in business for awhile but then it started again. I did not connect what I did that actually caused the grief in my 2nd site. For a 3rd time I started a fresh web site this time using C#. Going great again up until that point I kept shooting myself. Thankfully the C# compiler gave a more helpful error message: "A using namespace directive can only be applied to namespaces; 'StaffPlusLibrary' is a type not a namespace". Grrr the problem was I kept adding a help page to the site related to the class library and called the page StaffPlusLibrary.aspx. I am careful not to name pages the same as existing classes but it did not register in my mind I was about to create a page using the same name as my library's root namespace. So the page created a class using the same name as the namespace. The ambiguity I introduced was not apparent until C#.

Cannot publish because a project failed to build and Could not find file 'obj\x86\Debug\MyApplication.exe' Errors

I am striving to get the source of my issue but no luck. I did check almost all suggestions to fix this problem when publishing project (publishing using right-click, checked DevExpress is not installed).
-Regarding DevExpress the application have some of it's assemblies.
- Cannot publish because a project failed
- Could not find file 'obj\x86\Debug\MyApplication.exe'
I did send publishing diagnostic to the Output and get this :
Task "GenerateApplicationManifest" (TaskId:158)
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2580,9): error MSB3113: Could not find file 'obj\x86\Debug\MyApplication.exe'.
Done executing task "GenerateApplicationManifest" -- FAILED. (TaskId:158)
Done building target "GenerateApplicationManifest" in project "MyApplication.csproj" -- FAILED.: (TargetId:194)
Can someone list all things I have to check to get this issue fixed ?
I just ran into the problem today. In my particular case, it was caused by this Microsoft Windows Update.
I uninstalled that update and publish began working as it always had. This is only a temporary work around and means you should probably regenerate your keys/certificates.
Right click on you Project
Click Publish
Go to Settings Tab
Click File Publish Options
Check All the options in the tab (As seen in attached image)

Joomla! Quickstart package manual

I made some custom template and I still struggling with the most significant problem, how could I make a quickstart?
All the information what I found, doesn't helped me, including (http://www.youtube.com/watch?v=nqG6Z8nhyBU), which is briefly:
Copy the designed database
Delete configuration.php from copied root
Copy default Joomla! Installation folder to copied root
Export sql.file from original database to copied installation/sql/msql
Rename that to sample_data.sql
Upload whole content to the server
Install as a usual Joomla! site
All the time I getting:
Error: the XML response that was returned from the server is invalid.
in this reason I have to skip this message) when I select install sample data in my Joomla! pack installation. My template not appears as deafult and the places of module postions these are messages for e.g:
Warning: DB reports: DB function failed with error number 1146
Table 'masolat.jos_sobi2_language' doesn't exist SQL=SELECT * FROM jos_sobi2_language ORDER BY sobi2Lang in C:\wamp\www\masolat\components\com_sobi2\config.class.php on line 2534
...and so on.....
So prorbaly the whole process that I've made is false. That's why I would like ask you some help.
Have you any idea, how can I accomplish without any kind of Joomla! copy/restore extension?
Short guide, review, link, explanation will be appreciated.
Thank you in advance!
Regards: Nehogymar
There are two ways that you can install Joomla, the way that you described or the easy way for non-programmers.
Try to install joomla the easy way, There is very good explanation in Joomla documentation. try: http://help.joomla.org/content/view/39/132
There is also a excellent guide for installing Joomla on WAMP:
http://www.compassdesigns.net/joomla-tutorials/how-to-install-joomla-15
The simple way to make a copy of a Joomla website to install is to use Akeeba Backup. It makes a nice ZIP package with all of the files, settings, and database with a nice install script. I have a base install with all of the extensions I use to speed up configuration time.
http://extensions.joomla.org/extensions/access-a-security/site-security/backup/1606

Resources