Codename One: Rename project - codenameone

I tried to rename my project to other one by Refactor\Rename, but I got errors after renaming processing finished and when I run project
Can you help me, please ?
Thanks a lot!

Don't use refactor/rename. There are many dependencies in the project creation especially with the main package name that can't be changed once you publish your app.
Create a new project with the correct packages/names and copy the sources manually to that project.

Related

How to create a react project war and deploy it on jboss?

I know there are many articles on google about this but in some cases they are keeping react(frontend) + springboot(backend) together in a single war, but my requirement is different I want to keep the both wars as separate.
So what I tried till now,
Directly adding the react build folder in jboss->standalone->deployment but it does not work, it works on tomcat but not on jboss
Then I created a new dynamic web maven project and renamed react build folder and added it to maven project webapps directory and created a war, but after deployment its giving 403 error, and I am not getting why.
Here is a snapshot of my folder structure, pom file and error on browser
Please help regarding this have been stuck at it for days now with jboss
Is there any other way to do it, I will be happy to change my approach.
tried this also, did not worked
https://www.megadix.it/blog/create-react-app-servlet/
spring boot comes with default tomcat, you can exclude from the dependency
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
https://dev.to/jakmar17/deploy-spring-boot-on-wildfly-application-server-2029
I have the same problem and I haven't found a good solution. The best I found is to create a dynamic web project in eclipse. Copy the build files into webContent and use HashRouter instead of BrowserRouter with basename equal to the project name. Finally compile and generate the war. I hope the advice helps you.

The directory react-app contains files that could conflict: package.json

I entered this command to the terminal:
create-react-app react-app
And I get this error:
The directory react-app contains files that could conflict: package.json
Either try using a new directory name, or remove the files listed above
Please help!
If you're on Windows, just go to the Users folder and you'll see that a folder of your project would have been created. Just delete the project folder you want to recreate. And it's done.
Temporarily move the files VScode complaints about to another folder (in your case package.json)
Then create-react-app react-app
Bring back the files
I had the same issue but with a .json file pre-built with new folder I make with VSCODE...deleting the file fixes this issue. Hope this helps someone.
P.S.
React package includes a .JSON file and VS code for some reason has a default .JSON file on new folders(yet to figure that out). Good luck!
In Visual Studio 2022, this happens if you put the project and the solution in the same folder when creating a new project.
SOLUTION
Uncheck the box
Uncheck the box in visual studio for standalone react app
Just delete the README.md
It's working for me.

DotNetNuke uninstalling modules and deleting files

I have recently completed Clinton Patterson's guide on DNN module development and was just playing around with the module that I have developed (reinstalling the module, uninstalling the module, etc).
However, some of my source files including View.ascx, Settings.ascx, Edit.ascx, module.css, 00.00.01.SqlDataProvider, Uninstall.SqlProvider, ReleaseNotes.txt, License.txt went missing all of a sudden and is nowhere to be found.
I am not too sure why this is happening but I am suspecting it's due to me uninstalling the module and selecting the "Delete Files?" option when uninstalling. Now I am unable to install the module anymore as all the files mentioned above can't be found in my project anymore.
So my question here is whether my assumption is correct in which I have 'accidentally' deleted my source file when uninstalling the module? And if so, is there any way that I can recover those files because I can't seem to find them anywhere (not even in the recycling bin).
Anyway, shouldn't uninstalling a module deletes those files that were installed and not touch the original source files? Sorry I am rather new to this and I can't really find any similiar questions about this online. Thank you very much!
P.S: I am using DotNetNuke Community Version 07.01.02 if that helps.
Uninstalling the module:
Selecting the 'Delete Files?' option when uninstalling the module:
I don't believe that will remove the files if there's a PROJECT or SOLUTION file in the directory.
It's a safety catch for development environments. I would just manually delete them after you go though the uninstall process.

classnotfoundexception javax/mail/MessagingException

I am getting the classnotfoundexception javax/mail/MessagingException using eclipse/jetty.
I have added activation.jar, javax.mail-1.5.3.jar, and javaee.jar to my java build path to my lib folder and war/web-inf/lib folder.
Any suggestions would be greatly appreciated. Thank you.
You have to add those jar file in classpath, go to your project build path and there you can see classpath tab, find your jar's and select them and save, should work after that.
My mistake was that I was trying to execute the code on the client. Once I moved the code to the server it worked great and javaee.jar wasn't required.

Modifying mvn and redlpoying the code

I am working on an open source project and am kind of new to mvn. The project I am working on is https://github.com/bsautner/com.nimbits. They offer a ready to go solution , however I need to edit a few fields here and there. I tried to download the source and do an mvn install in the jetty directory. However it keeps failing. Whats the best way to build the above project?

Resources