Problem in deploying library because of deletion of GeneratedBarFiles folder from IBM Integration Bus workspace - ibm-integration-bus

I accidentally deleted GeneratedBarFiles folder from IIB workspace. Now i am trying to deploy a library and getting this error.
**The following Java exception occurs:
java.lang.NullPointerException
at com.ibm.etools.mft.broker.runtime.model.BrokerRuntimeManager.getGenBarFile(BrokerRuntimeManager.java:553)
at com.ibm.etools.mft.broker.runtime.model.BrokerRuntimeManager.deployAppOrLib(BrokerRuntimeManager.java:1814)
at com.ibm.etools.mft.broker.runtime.model.BrokerRuntimeManager.deployAppOrLib(BrokerRuntimeManager.java:1810)
at com.ibm.etools.mft.broker.runtime.wizards.steps.DeployStep.run(DeployStep.java:90)
at com.ibm.etools.mft.broker.runtime.wizards.steps.Step.execute(Step.java:48)
at com.ibm.etools.mft.broker.runtime.wizards.steps.StepEngine.runStep(StepEngine.java:106)
at com.ibm.etools.mft.broker.runtime.wizards.steps.StepEngine.run(StepEngine.java:70)
**
and one more error
**The following Eclipse exception occurs:
The project description file (.project) for 'GeneratedBarFiles' is missing. This file contains important information about the project. The project will not function properly until this file is restored.**
Is there any way to restore the .project file OR any other way to solve this problem.

I created a new workspace in another directory and it worked. It generated a new GeneratedBarFiles folder with a new .project file.

Related

Could not download org.springframework.vault

I am importing the gradle project in eclipse which is the spring boot application. I could see all the dependency jars are downloaded except "org.springframework.vault".
I could download the spring-vault-core-2.0.1.RELEASE.pom file from browser, so no network issues i guess.
When i checked in D:\softwares\gradle-4.6-bin\gradle-4.6\caches\modules-2\files-2.1 i could not find this directory. I tried to create this directory but i got the error pop up says "folder/file in it is open in other program". I have restarted the pc, also killed all the java process and tried to create this dir, but still failed.
I deleted the cache directory itself and did gradle build, it downloaded the jars freshly except the mentioned one.
code cannot be shared as it is working project.
when i ran the application getting the error
FAILURE: Build failed with an exception.
What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
Could not resolve org.springframework.vault:spring-vault-core:2.0.1.RELEASE.
Required by:
project : > com.gogoair.ps:xauth-security:2.0.4
Could not resolve org.springframework.vault:spring-vault-core:2.0.1.RELEASE.
Could not get resource 'https://jcenter.bintray.com/org/springframework/vault/spring-vault-core/2.0.1.RELEASE/spring-vault-core-2.0.1.RELEASE.pom'.
Failed to move file 'C:\Users\CHE32904\AppData\Local\Temp\gradle_download5901172107951949118bin' into filestore at 'D:\softwares\gradle-4.6-bin\gradle-4.6\caches\modules-2\files-2.1\org.springframework.vault\spring-vault-core\2.0.1.RELEASE\562973b9fcc1880af51f50b2d1a53cf8b9f2745c\spring-vault-core-2.0.1.RELEASE.pom'
Failed to create parent directory 'D:\softwares\gradle-4.6-bin\gradle-4.6\caches\modules-2\files-2.1\org.springframework.vault' when creating directory 'D:\softwares\gradle-4.6-bin\gradle-4.6\caches\modules-2\files-2.1\org.springframework.vault\spring-vault-core\2.0.1.RELEASE\562973b9fcc1880af51f50b2d1a53cf8b9f2745c'

Spring cannot find file in classpath, but it's right there at the root of the war file

I have a project using the standard Maven web app layout, deployed within Tomcat 8.5 in Eclipse Photon (with latest updates).
Inside of src\main\webapp\WEB-INF\applicationContext.xml, there is an <import resource="classpath:/other-spring-stuff.xml" />
I verified the other-spring-stuff.xml which is normally sitting in src/main/resources, appears in the root of the WAR generated by mvn install.
But when trying to run the app in Tomcat within Eclipse, I get:
20:37:17 SEVERE: Servlet [servletSpringDispatcher] in web application [/myapp] threw load() exception - 2018-08-27 #{org.apache.catalina.core.StandardContext loadOnStartup}
java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:227)
I don't really know whether this is a problem with Maven, Eclipse, or Spring.
What can cause this? This is actually in a project that was working fine until yesterday, and nothing changed on the project configuration.
The original problem (spring.xml not found) and secondary problem (false report of missing web.xml) were both resolved by taking the following steps:
Delete the project from the workspace, but keep it on the file system
Go to the project's filesystem location and delete .project, .classpath, and .settings/
Re-Import the project into Eclipse, select Existing Maven Project as project type
To prevent reocurrence: remove .project, .classpath, and .settings/* from git and then add them to .gitignore
I believe the root cause is that one of these Eclipse-specific config files that was checked into the repo had become corrupted and/or incompatible with my version of Eclipse. Also: these files seem to contain absolute-path references to things in the workspace, so they break when the project is checked out unmodified to a different location.

Move NopCommerce Plugin Project location

Getting error after moving plugin location from root to plugins director. Could you help me to resolve it. I can create new but don't want to create new one.
E:\NopCommerce\Nop.Plugin.Notification.Email
\Nop.Plugin.Notification.Email.csproj : error : The project file could not be
loaded. Could not find a part of the path 'E:\NopCommerce
\Nop.Plugin.Notification.Email\Nop.Plugin.Notification.Email.csproj'.
E:\NopCommerce\Nop.Plugin.Notification.Email\Nop.Plugin.Notification.Email.csproj
Seems like you just moved the plugin into a new directory without changing the solution file.
You have to fix the path inside of the .sln file. Otherwise the solution cannot find the project and thus it cannot be loaded properly.

TIBCO Error: One Concept file not compiling

I am trying to build the project and the build is successful. However when I try to deploy the EAR file, it is throwing a class not found exception. I looked into the EAR file and I am seeing that the file which is throwing the error is not compiling and creating a class file. It is a concept file. Any help would be appreciated.
Try manually adding the missing file on the Resources tab of the enterprise archive's Shared Archive object. This should force it to be included in the EAR file.

Trying to compile an XCode project with a workspace on Jenkins slave

I got a Jenkins slave building single xcode projects, working perfectly.
However, I got a project with a workspace where some 3rd party files are setup in the root of the workspace with a gitmodule then imported in to the project as described here.
When Jenkins compiles and reaches AppDelegate.h it throws and error when trying to import a file from the library.
fatal error: 'RestKit/Restkit.h' file not found #import <RestKit/Restkit.h>
I got the project compiling by pointing to the workspace. However it now fails when reaches the packaging stage. I don't see the build directory created in the workspace.
** BUILD SUCCEEDED **
Cannot remove *.ipa files from a non-existing directory:
/Users/leon/Work/projects/wearehive/flatstr/build/Flatstr/dev/jenkins/workspace/Snug-debuOLD/build/Debug-iphoneos
Packaging IPA
FATAL: null
java.lang.NullPointerException
at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:421)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
at hudson.model.Build$RunnerImpl.build(Build.java:178)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
at hudson.model.Run.run(Run.java:1434)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
Your Project=>build settings=>Header Search Paths, add follow path:
"$(SOURCE_ROOT)/RestKit/Build/Headers"
Be sure checked box in front of them.
I use xcode plugin and use this for SYMROOT value instead of space fixes the problem.
${workspace}/build/[app name]/Build/Products

Resources