Hi I'm trying to build/deploy war to websphere process server 7.0. and I run on windows environment.....
I use http://illegalargumentexception.blogspot.com/2008/08/ant-automated-deployment-to-websphere.html as my reference. and http://illegalargumentexception.googlecode.com/svn/trunk/code/java/WebSphereAntFiles/ as my sample code to deployed.
this is my buil.properies is ?
#build properties
mywebappear=D:/data/code/WebSphereAntFiles/scripts/test/mywebappEAR.ear
#WAS6 install directory
was_home=C:/IBM/WID7_WTE/runtimes/bi_v7
#server name (see cell/node/server; e.g. "server1")
was_server=server1
#user + password; for use when security is enabled
was_user=admin
was_password=admin
#stops scripts on problem
was_failonerror=true
#virtual host
was_virtualhost=default_host
#Absolute path to EAR file
#was_ear=fooEAR.ear
#Name of the enterprise application
#was_appname=fooEAR
this is my console while I trying to build with ws_ant.bat
[wsDefaultBindings] mywebapp.war
[wsDefaultBindings] <virtual-host> --> default_host
[wsDefaultBindings]
[wsDefaultBindings] ------------------------
[wsDefaultBindings] Saving EAR File to directory
[wsDefaultBindings] Saved EAR File to directory Successfully
test_wsStartServer:
WAS_wsStartServer:
depCheck:
depCheck:
[startServer] ADMU0116I: Tool information is being logged in file
[startServer] C:\IBM\WID7_WTE\runtimes\bi_v7\profiles\qwps\logs\server1\startServer.log
[startServer] ADMU0128I: Starting tool with the qwps profile
[startServer] ADMU3100I: Reading configuration for server: server1
[startServer] ADMU3028I: Conflict detected on port 8880. Likely causes: a) An instance of
[startServer] the server server1 is already running b) some other process is
[startServer] using port 8880
[startServer] ADMU3027E: An instance of the server may already be running: server1
[startServer] ADMU0111E: Program exiting with error:
[startServer] com.ibm.websphere.management.exception.AdminException: ADMU3027E: An
[startServer] instance of the server may already be running: server1
[startServer] ADMU1211I: To obtain a full trace of the failure, use the -trace option.
[startServer] ADMU0211I: Error details may be seen in the file:
[startServer] C:/IBM/WID7_WTE/runtimes/bi_v7/profiles/qwps\logs\server1\startServer.log
BUILD FAILED
D:\data\code\WebSphereAntFiles\scripts\test\build.xml:68: The following error occurred while executing this line:
D:\data\code\WebSphereAntFiles\scripts\was\wsStartServer.xml:49: Java returned: -1
[startServer] ADMU3028I: Conflict detected on port 8880. Likely causes: a) An instance of
[startServer] the server server1 is already running b) some other process is
[startServer] using port 8880
I am guessing that you have already started your server. com.ibm.websphere.ant.tasks.StartServer will fail to start the server if it is already running.
Either stop calling this task or stop your server before running the script.
Related
I am using sqlplus-script-runner plugin to run my sql command at remote server as my screenshot, but I got error:
ERROR: ORACLE_HOME directory [10.53.253.161:1521/u01/app/oracle/product/12.1.0/dbhome_1] does not exist!
Do you know how to config Oracle_home of remote db ?
I found the answer: Oracle_home is oracle path on my local machine and include the remote ip on the instance
Try changing your url to 10.53.253.161:1521/u01/app/oracle/product/12.1.0
Does Jenkins user have visibility to that folder?
I am having some serious grief trying to publish my mvc6 application due to a powershell file blockage. I ran powershell as an administrator and adjusted the execution policy. But it doesnt seem to have any impact on the publishing process in vs2015. Further to that i even tried in vain to run the Unblock-File cmdlet in the NPM.
Anyone have any ideas about how I can get this to work? the full error is below:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error MSB4018: The "InvokePowerShell" task failed unexpectedly.
System.Management.Automation.PSSecurityException: AuthorizationManager check failed. ---> System.Management.Automation.Host.HostException: A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message: Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning message. Do you want to run G:\_PIPELINE_MANAGEMENT\_SOURCE\_MANAGEMENT\_2016\ProjMgr\src\ProjMgr\Properties\PublishProfiles\ProjMgr-publish.ps1?
at System.Management.Automation.Internal.Host.InternalHostUserInterface.ThrowPromptNotInteractive(String promptMessage)
at System.Management.Automation.Internal.Host.InternalHostUserInterface.PromptForChoice(String caption, String message, Collection`1 choices, Int32 defaultChoice)
at Microsoft.PowerShell.PSAuthorizationManager.RemoteFilePrompt(String path, PSHost host)
at Microsoft.PowerShell.PSAuthorizationManager.CheckPolicy(ExternalScriptInfo script, PSHost host, Exception& reason)
at Microsoft.PowerShell.PSAuthorizationManager.ShouldRun(CommandInfo commandInfo, CommandOrigin origin, PSHost host, Exception& reason)
at System.Management.Automation.AuthorizationManager.ShouldRunInternal(CommandInfo commandInfo, CommandOrigin origin, PSHost host)
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
at Microsoft.Web.Publishing.Tasks.InvokePowerShell.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
Done executing task "InvokePowerShell" -- FAILED.
Done building target "PowerShellPublish" in project "ProjMgr.xproj" -- FAILED.
Done building project "ProjMgr.xproj" -- FAILED.
Done executing task "MSBuild" -- FAILED.
Done building target "FileSystemPublish" in project "ProjMgr.xproj" -- FAILED.
Done building project "ProjMgr.xproj" -- FAILED.
2>Publish failed due to build errors. Check the error list for more details.
Create another publish profile and try again.
For me this works.
I managed to get it to publish by copying my entire project folder to the root of my local. Must be a folder permissions issue somewhere...
I have to use neo4j for my rails application.
So I started installing the neo4j server.I followed steps to install here on linux.
But when I run
./bin/neo4j console
It gives
ERROR Failed to start Neo Server on port [unknown port] Bad value 'conf/neo4j-http-logging.xml' for setting 'org.neo4j.server.http.log.config': HTTP log directory [/opt/neo4j-community-2.3.2/data/log] is not writeable.
org.neo4j.graphdb.config.InvalidSettingException: Bad value 'conf/neo4j-http-logging.xml' for setting 'org.neo4j.server.http.log.config': HTTP log directory [/opt/neo4j-community-2.3.2/data/log] is not writeable.
I am unable to start the neo4j server.Help me how to resolve it.
Thanks in advance.
The error message very clearly mentions the root cause:
HTTP log directory [/opt/neo4j-community-2.3.2/data/log] is not writeable.
So check file permissions and fix them so the user running neo4j can write to that directory.
I'm building a CONNECT for HL7 compliant portal and get an error when attempting to deploy the glassfish domain. Portal requires glassfish 2.1.1 below is the error i get.
Could not load definitions from resource com/sun/tools/appserver/ant
lib.xml. It could not be found.
recreate.glassfish.domain:
-backup.glassfish.domain.configuration:
-backup.glassfish.domain.certificates:
-deploy.create.glassfish.password.file:
[echo] deploy.glassfish.password.file.path: C:\Users\PROGRA~1\AppData\Local
\Temp\2\glassfish43310913
-deploy.glassfish.asadmin:
-delete.glassfish.domain:
-deploy.setup.init:
-deploy.set.env:
-deploy.create.glassfish.password.file:
-deploy.glassfish.asadmin:
-create.glassfish.domain:
BUILD FAILED
C:\NHINC\deploy.xml:399: Execute failed: java.io.IOException: Cannot run program
"%AS_HOME%\bin\asadmin.bat": CreateProcess error=2, The system cannot find the
file specified
Total time: 0 seconds
C:\NHINC>
For anyone else who has a similar problem, this version of glassfish is not supported. I used the next version up and it fixed the problem.
I was about to test my grails application using the XAMPP Tomcat server for checking.
I followed the instruction set here regarding how to deploy the .war file into the web-app folder of the Tomcat.
The project did deploy within the workspace of Tomcat but when I tried to start the project and restarted Tomcat I get this error message:
FAIL - Application at context path /[Project Name] could not be started
I also tried using the command grails> tomcat deploy, I get this error message on the console:
Error Error executing script Tomcat: : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/deploy?path=%2F[Project Name] (Use --stacktrace to see the full trace)
My question is what is the proper way of deploying Grails application with the following Tomcat specifications:
Tomcat Version: Apache Tomcat/7.0.21
JVM Version: 1.6.0_31-b05
To create the war file:
grails prod war
Check the target folder for a war with your app name and version.
Then move the file to webapps folder of Tomcat. If Tomcat is configured to auto deploy, you will see the content of your war file extracted inside webapps.
Finally just open localhost:8080/yourapp/