Steps to compile and deploy files on jsap
steps to compile and deploy files on jsap
classpath that has to be set
where to put the .class files
(Where to fnd JNDI tab)
jsas-sun java application Server
I like to depoy servlet files on this server
But it requires cloudscape to be started
(database server)
i have not even a single entry in the name of cloudscape
Similar Messages
-
ALUI Customization Deploying a Custom Project Step 2: Build and Deploy JARs
Hi,
I'm trying to deploy custom project after succesfully completing the installation and debug of AL UI Customization. As given in the documentation (see link below) in the step 2 Build and Deploy I see error given below on executing "ant install" command. Can somebody please identify the error in this?
http://edocs.bea.com/alui/devdoc/docs60/Plumtree_Development_Environment/UI_Customization/PlumtreeDevDoc_DevEnv_DeployProject_Java.htm
D:\plumtree_ui_source\portalui\6.1.x>ant install
Buildfile: build.xml
Trying to override old definition of task copy
global.init:
[copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
[echo] Ant Contrib successfully loaded.
[copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to copy.
init:
[echo] Using ANT built-in compass loader
[copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar to c
opy.
[echo]
[echo] Could not fine Socrates build location. Setting compass to
[echo] offline mode.
[echo]
[comp-loader] -----------------------------------------------------
[comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
[comp-loader] Storing loaded properties in System
[comp-loader] Stored 67 properties
[comp-loader] Loaded Compass ( 0 file(s) copied, 17 task(s) defined )
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 24 component(s)
[comp-props] [ customer-repo_ptwebui ]
[comp-props] Created Properties for 24 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 15 component(s)
[comp-props] [ customer-repo_ptwebui_dotnet ]
[comp-props] Created Properties for 15 component(s)
install:
Duplicated project name in import. Project global defined first in D:\plumtree_u
i_source\portalui\6.1.x\_buildcommon\scripts\ant\common\include\global.xml and a
gain in D:\plumtree_ui_source\portalproduct\6.1.x\_buildcommon\scripts\ant\commo
n\include\global.xml
Trying to override old definition of task uri://plumtree.com/ant/common/properti
es:definebasicprops
Trying to override old definition of task uri://plumtree.com/ant/common/properti
es:loadprojectproperties
Trying to override old definition of task uri://plumtree.com/ant/common/cp-stage
:loadcomponentprops
global.init:
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
[echo] Ant Contrib successfully loaded.
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
py.
epglobal.init:
[echo] Using ANT built-in compass loader
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar
to copy.
[echo]
[echo] Could not fine Socrates build location. Setting compass to
[echo] offline mode.
[echo]
[comp-loader] -----------------------------------------------------
[comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
[comp-loader] Already loaded
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_nopull ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 29 component(s)
[comp-props] [ customer-repo_java ]
[comp-props] Created Properties for 29 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 14 component(s)
[comp-props] [ customer-repo_dotnet ]
[comp-props] Created Properties for 14 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_noarch ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 2 component(s)
[comp-props] [ customer-repo_win32 ]
[comp-props] Created Properties for 2 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_solaris32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_linux32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_aix32 ]
[comp-props] Created Properties for 1 component(s)
init:
clean:
[delete] Deleting directory D:\plumtree_ui_source\portalproduct\6.1.x\build
install:
[ant] Parent project doesn't contain any reference 'compass.loader'
global.init:
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
[echo] Ant Contrib successfully loaded.
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
py.
epglobal.init:
[echo] Using ANT built-in compass loader
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar
to copy.
[echo]
[echo] Could not fine Socrates build location. Setting compass to
[echo] offline mode.
[echo]
[comp-loader] -----------------------------------------------------
[comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
[comp-loader] Already loaded
[mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\registe
rdir
[mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\feature
dir
[mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\install
code
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_nopull ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 29 component(s)
[comp-props] [ customer-repo_java ]
[comp-props] Created Properties for 29 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 14 component(s)
[comp-props] [ customer-repo_dotnet ]
[comp-props] Created Properties for 14 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_noarch ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 2 component(s)
[comp-props] [ customer-repo_win32 ]
[comp-props] Created Properties for 2 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_solaris32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_linux32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_aix32 ]
[comp-props] Created Properties for 1 component(s)
init:
[echo]
[echo] The property BuildEnvironment.IA_HOME either is not set
[echo] in your build.properties file or is set to an incorrect
[echo] location. You will be unable to build an installer. This
[echo] does not affect developer installations. Developers can
[echo] ignore this warning.
[echo]
[echo] Current value: ${BuildEnvironment.IA_HOME}
[echo]
build-registerscripts:
[echo] Environment variables necessary for versioning not set. BUILD_MAJOR
, BUILD_MINOR, BUILD_SERVICEPACK, and BUILD_HOTFIX must be set in order to get a
ccurate version information.
[devinstall] install-portalui-java
[fastmarshall] Parent project doesn't contain any reference 'compass.loader'
global.init:
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
[echo] Ant Contrib successfully loaded.
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
py.
epglobal.init:
[echo] Using ANT built-in compass loader
[copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
.x\marshallcode\${build.home}\components\RECENT\compass\LATEST\java-loader\compa
ss-loader.jar to copy.
[echo]
[echo] Could not fine Socrates build location. Setting compass to
[echo] offline mode.
[echo]
[comp-loader] -----------------------------------------------------
[comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
[comp-loader] Already loaded
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_nopull ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 29 component(s)
[comp-props] [ customer-repo_java ]
[comp-props] Created Properties for 29 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 14 component(s)
[comp-props] [ customer-repo_dotnet ]
[comp-props] Created Properties for 14 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_noarch ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 2 component(s)
[comp-props] [ customer-repo_win32 ]
[comp-props] Created Properties for 2 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_solaris32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_linux32 ]
[comp-props] Created Properties for 1 component(s)
[comp-props] Version: <206776> (11/15/2005 11:59 AM)
[comp-props] [ general ]
[comp-props] Created Properties for 1 component(s)
[comp-props] [ customer-repo_aix32 ]
[comp-props] Created Properties for 1 component(s)
epmarshall.init:
[mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\warbuil
ddir
Trying to override old definition of task comp-collate
Trying to override old definition of task comp-stage
init:
epmarshall.marshall-java:
portalui.marshall-java:
[comp-collate] Version: <null> (null)
[comp-collate] Collate [java-portalui]
BUILD FAILED
D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\portalui\include\p
ortalui-dev.xml:34: The following error occurred while executing this line:
D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:1177: The following err
or occurred while executing this line:
D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:652: The following erro
r occurred while executing this line:
D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:733: The following erro
r occurred while executing this line:
D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:478: The following erro
r occurred while executing this line:
D:\plumtree_ui_source\portalproduct\6.1.x\marshallcode\marshall_portalui.xml:69:
No File: D:\bea\alui\_customer_repository\portalui\6.1.x\local\java-ptwebui\jav
a-ptwebui.mf
Total time: 1 minute 15 secondsaThanks for the help! It started building after commenting the DTD tag include in the xml.
But build failed with few warnings and errors.
two of the warnings are as follows (FYI I've compass folder as you suggested in other thread)
#1
[copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\pt
webui\portaluiinfrastructure\${build.home}\thirdparty\ant-contrib\0.6\ant-contri
b-0.6.jar to copy.
#2
Could not fine Socrates build location. Setting compass to
offline mode.
=============================
AND the ERROR message is as given below
precompile:
buildjava:
[javac] Compiling 154 source files to D:\plumtree_ui_source\portalui\6.1.x\ptwebui\portalpages\build\x86\classes\java
[javac] D:\plumtree_ui_source\portalui\6.1.x\ptwebui\portalpages\java\prod\src\com\plumtree\portalpages\condition\conditiontypes\ConditionTypeClientIPAddress.java:158: compareTo(java.lang.String) in java.lang.String cannot be applied to
(java.lang.Object)
[javac] if ("*".compareTo(arIPAddress) != 0 && ((XPConver
t.ToInteger(arIPAddress[i]) < 0) || ((i == 0) && (XPConvert.ToInteger(arIPAddres
s[i]) == 0)))) {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
BUILD FAILED
D:\plumtree_ui_source\portalui\6.1.x\build_core.xml:103: The following error occurred while executing this line:
D:\plumtree_ui_source\portalui\6.1.x\ptwebui\build_core.xml:80: The following error occurred while executing this line:
D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\common\include\default-build.xml:142: The following error occurred while executing this line:
D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\common\antlib\java.xml:35: Compile failed; see the compiler error output for details. -
EJB compilation and deployment problems
Dear fellows
I have good understanding of EJB development process, but the compilation and deployment process of EJB is very problematic for me. Please write me the complete steps which should include:
1. Starting from class, interface programs creation
2. Package creation and accessing it along with class path setting
3. How and where to compile these classes and interfaces (app server details), JAR
4.deployment details on any app server like SUN, web logic
Kind regards
Shahzad faisalDear fellowsDear Shahzad faisal
Start with the JEE5 tutorial:
http://java.sun.com/javaee/5/docs/tutorial/doc/
Part 3 discusses EJB stuff
I would recommend going to a few samples, bundled with most of the appservers to see the appserver specific stuff.
>
I have good understanding of EJB development process,
but the compilation and deployment process of EJB is
very problematic for me. Please write me the complete
steps which should include:
1. Starting from class, interface programs creationSo you have the classes and interface implemented.
Next thing is to create a ejb-jar.xml in which your EJBs are defined (optional for EJB3.0)
2. Package creation and accessing it along with class
path settingPackaging all in a jar file is enough for an appserver to find your classes.
3. How and where to compile these classes and
interfaces (app server details), JARCompilation usually needs the javx.ejb.* classes, most appservers have a j2ee.jar in which the javax.* classes you need are present.
in jour jar file you package your classes and deployment descriptor
4.deployment details on any app server like SUN, web
logicDeployment to appservers is product specific, see the manual here.
you may want to add some other , vedor specific, deployment settings which are not ejb specification defined, these go into a vendor specific DD, for Sun for example the sun-ejb-jar.xml.
>
Kind regards
Shahzad faisal -
Is there anyone at all here who has successfully compiled and deployed an SSRS custom report item in VS2012? Is there a demo out there that actually works in VS2012? Is there anyone who has actually been able to compile and deploy that
apparently obsolete Polygons demo? (Pardon my impatience but I'm running a bit short of time here.)
After much hacking and googling I was able to get Polygons to compile but I still can't deploy it to the toolbox. ('The custom report item type PolygonsDesigner is not installed'). I've modified the RSReportDesigner.config
as instructed but I have no rssrvpolicy.config file on my local machine and
as yet I have no idea if that is necessary for local development.
In order to get it to compile I first added the reference C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.ProcessingCore.dll to both projects.
To the PolygonsDesigner Project I also added the references:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportDesigner.Controls.dll
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.ReportingServices.Designer.11.0.dll
C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\Microsoft.ReportingServices.Interfaces.dll
Are these the correct references?
Exactly what software do you need installed on your local machine in addition to VS2012 in order to create a custom control?
(Designer.11.0 was added per the instructions in reference: https://connect.microsoft.com/VisualStudio/feedback/details/783391/unable-to-integrate-previously-working-ssrs-custom-report-item-to-vs-2012s-toolbox
After that I added the alias RSDesigner to it's properties and extern alias RSDesigner; at the top of the PolygonsDesigner.cs file. )
As of now, the top of the PolygonsDesigner.cs is as follows. I don't recall making any other changes to the code. As far as I can remember this is all I did in order to be able to compile the code in VS2012.
extern alias RSDesigner;
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.ReportDesigner;
using Microsoft.ReportDesigner.Design;
using Microsoft.ReportingServices.Interfaces;
using Microsoft.ReportingServices.RdlObjectModel;
using System.Xml;
using System.Xml.Xsl;
using System.Xml.XPath;
[LocalizedName("Polygons")]
[Editor(typeof(CustomEditor), typeof(ComponentEditor))]
[ToolboxBitmap(typeof(PolygonsDesigner), "Polygons.ico")]
[CustomReportItem("Polygons")]
[ToolboxItem(typeof(RSDesigner::Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
[System.CLSCompliant(false)]
public class PolygonsDesigner : CustomReportItemDesigner
{ etc...Just fixed this myself.
It appears the documentation online is wrong and the sample code is missing a reference to a reporting services dll and an attribute.
What you need to do to get it working in VS2012 is add a reference to: Microsoft.ReportingServices.designer.11.0.dll to the PolygonsDesigner project and then add the following attribute to the PolygonsDesigner class: [ToolboxItem(typeof(Microsoft.ReportDesigner.Shell.CRIToolboxItem))]
I also removed the [System.CLSCompliant(false)] attribute.
You then recompile and place both dlls in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies directory and the PolygonsDesigner.dll into the C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin
or what ever is you reporting services path.
You also need to change the Microsoft example for the rereportserver.config file to:
<ReportItemDesigner>
<ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
</ReportItemDesigner>
<ReportItems>
<ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCRI,PolygonsCRI"/>
</ReportItems>
Notice that I changed the namespaces and class to what is in the actual code so if you change it make sure you change it here.
And here in the RSReportDesigner.config:
<ReportItems>
<ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsCustomReportItem,PolygonsCRI" />
</ReportItems>
<ReportItemDesigner>
<ReportItem Name="Polygons" Type="Microsoft.Samples.ReportingServices.PolygonsDesigner, PolygonsDesigner" />
</ReportItemDesigner>
<ReportItemConverter>
<Converter Source="Chart" Target="Polygons" Type="PolygonsCRI.PolygonsConverter, PolygonsDesigner" />
</ReportItemConverter>
Notice I haven't changed the last part as I didn't know what the PolygonsCRI.PolygonsConverter was.
And make sure the rssrvpolicy.config looks like this:
<CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Description="This code group grants PolygonsCRI.dll FullTrust permission. ">
<IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.SQLSERVER\Reporting Services\ReportServer\bin\PolygonsCRI.dll" />
</CodeGroup>
After a restart of ssrs and relaunch of VS2012 I opened a test project and added the PolygonsDesigner.dll to the toolbox and it works.
Jamie -
VC - Compile and Deploy performance issues related to UserID
Dear Guru's,
I'm currently working at a customer where a small team of 4 is working with VC 7.0.
One user has very long Compile and Deploy times. We first thought that it was related to his workstation.
Then one of the other guys logged in on his PC and run the compile + deploy ant then it suddenly takes seconds again.
So we created a new userID for this user who has the issues "<oldUI>+test" and suddenly all is back to normal for him.
But, now here it comes that we deleted his old userID and created it again, but the issue is still there.
So my assumption is that there is some kind of faulty record or index or something other strange linked to his userID.
What can this be and how can we solve it?
Thanks in advance!
BenjaminHi Anja,
We use VC on 7.0 and we do not have any integration with the DTR.
So in other words we use the default way of working with VC.
The user had his models in his Personal folder then moved it to the Public folder so that other colleagues could see/try them as well. It doesn't matter where the model is stored (public or personal) as long if this specific UID is used compiling/deploying goes very slow... the log files do not give much info, why this happens...
Cheers,
Benjamin -
Having problem in compiling and deploying servlet
please tell me about environment variable because i m totally confused.i want to know why do i need to set environment variable.and how would it help me to compile and deploy my first servlet.
i also want to know about Class path and path.
please tell me this.
i'll really appreciatethanks a lot.
i got my first servlet compiled deployed and run.
thanks againYou are welcome. If you think it really help, you can assign duke star to me :)
Good luck to your web application. -
How to compile and deploy JAX-WS web service from commandline (!) ?
I have read a couple of tutorials about how to create and deploy web services with
certain IDEs (e.g. Eclipse).
But I found no guide on how to compile a java web service source from command line !!
Lets say I have a java source class with annotations inside (like "@WebMethod").
How do I generate with the built-in j2ee v5 tools from a web service from command line and deploy it e.g. to TomCat or JBoss ?
Is there somewhere such a simple step-by-step intro?
Thx
PeterYou can download JWSDP 2.0 from sun and install it. Under jaxws (the installed directory) you can find sample directory which has build.xml can be run from command prompt using ant. if you want in detail means go through the build.xml and use wsgen.bat or wsimport under the bin directory of jaxws
Edited by: Muyallu_Bala on Apr 14, 2008 5:49 AM -
How to compile and deploy an ejb into Sun ONE app.server 7.0
I am new to Sun ONE application server. I Have .java files and deployment descriptor files with me. How should proceed. When i tried to use asant it is saying that build.xml not found. I copied build.xml from some other directory to the current directory. Then it is saying that common.xml not found. Please help.
Regards,
Nagaraju.Hi,
The build.xml file should be in a directory from where
you are running the asant command.
To resolve the common.xml file not found error,
open your build.xml and check from which location the common.xml file is incuded.
In the sample application it is four directories above
the directory where build.xml is located.
You can copy the common.xml in the current directory and then change the following in your build.xml
<!ENTITY include SYSTEM "../../../../common.xml">
to <!ENTITY include SYSTEM "common.xml">
Hope this helps.
Get back in case you have more issues -
Tutorial Step 8 - Compile and run Client
I have been unsuccessful in getting the client to run from the command prompt.
I have modified the compile and run bat files as follows"
COMPILE.BAT
c:\bea\jdk131_03\bin\javac -classpath ../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar
*.java
RUN.BAT
c:\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webserviceclient.jar;
InvestigClient
What am I missing????
===============
C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_client>c
:\bea\jdk131_03\bin\java -cp .;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
700\server\lib\webserviceclient.jar; InvestigClient
Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient (wrong
name: tutorials/java_client/InvestigClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)Craig,
The error suggests the absence of the class file 'InvestigClient.class' in
the CLASSPATH.
Could you please confirm that you were able to compile the client correctly.
Please check that you have the Investig.class file in the
tutorials\java_client directory.
I was able to run the client successfully here.
Regards,
Anurag
Workshop Support
"Craig Hall" <[email protected]> wrote in message
news:[email protected]...
>
I have been unsuccessful in getting the client to run from the commandprompt.
I have modified the compile and run bat files as follows"
COMPILE.BAT
c:\bea\jdk131_03\bin\javac -classpath../../WEB-INF/lib/Investigate.jar;../../WEB-INF/lib/webserviceclient.jar;c:\
bea\weblogic700\server\lib\webserviceclient.jar
*.java
RUN.BAT
c:\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic700\server\lib\webservice
client.jar;
InvestigClient
What am I missing????
===============
C:\bea\weblogic700\samples\workshop\applications\samples\tutorials\java_clie
nt>c
:\bea\jdk131_03\bin\java -cp.;../../WEB-INF/lib/Investigate.jar;c:\bea\weblogic
700\server\lib\webserviceclient.jar; InvestigClient
Exception in thread "main" java.lang.NoClassDefFoundError: InvestigClient(wrong
name: tutorials/java_client/InvestigClient)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) -
Slow Application if compiled and Deployed to CRIO
Hello all
I've developed an application that uses 16 channel from 4 9233 modules (the controller is 9004) onto disk.
The application works perfectly if run in development environment (LV 8.0.1) but it's incredibly slow if compiled with application builder and deployed to the RT controller (of course same application and same everything). It's so slow that the FIFO fills up and I can collect data no more.
Is there any workaround?
thanks in advance
giovanniHi, we are handling a similar support call through our system engineers team, I suppose it is your application, if this is true we go on working in that way and we'll post something here when we'll find a solution.
If you are not already in contact with NI Italy try posting your project here and I'll be glad to test it to see if I can reproduce this odd behavior.
Regards.
NicolaC.
Nationa Instruments -
Error while compiling and building file [java] ERROR: ejbc couldn't invoke
*[java] [EJBCompiler] : Compliance Checker said bean was compliant*
*[java] ERROR: Error from ejbc: Access is denied*
*[java] java.io.IOException: Access is denied*
*[java] at java.io.WinNTFileSystem.createFileExclusively(Ljava.lang.Stri*
ng;)Z(Native Method)
*[java] at java.io.File.checkAndCreate(File.java:1314)*
*[java] at java.io.File.createTempFile(File.java:1402)*
*[java] at java.io.File.createTempFile(File.java:1439)*
*[java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(Compiler*
Invoker.java:227)
*[java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp*
ilerInvoker.java:428)
*[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
er.java:328)
*[java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok*
er.java:336)
*[java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:27*
*0)*
*[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:4*
*76)*
*[java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3*
*97)*
*[java] at weblogic.ejbc20.runBody(ejbc20.java:517)*
*[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)*
*[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)*
*[java] at weblogic.ejbc.main(ejbc.java:29)*
*[java] ERROR: ejbc couldn't invoke compiler*
BUILD FAILEDYshemi,
You do not have to explicitly point the server to a compiler. Its already in
the IDE classpath. Can you provide more information on the steps you
followed.
You had stated that you had created a new workshop domain. Is this the
domain in which your are creating the new application ?
You can choose the server when you create the application or by editing the
application properties.
Can you verify this ?
Can you test the built in sample to check if it works fine ?
What is the operating system that you are working on ?
Can you try by creating a new empty application, and an ejb project and let
me know the results ?
Regards,
Raj Alagumalai
WebLogic Workshop Support
"yshemu" <[email protected]> wrote in message
news:3f4eabaf$[email protected]..
>
Hi Guys,
I have created a workshop domain with the configuration wizard.
I am trying to build a simple EJB - stateless session, has one method
that returns a string.
when I try to build I get the following :
"ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
ERROR: ERROR: ejbc couldn't invoke compiler
BUILD FAILED
ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
ERROR: ERROR: ejbc couldn't invoke compiler
Application Build had errors."
It seems like Workshop can't find the compiler.
I added "c:\bea81\jdk141_03\bin" to the application properties under
"server classpath additions" and still get the same error.
Does anyone know how I can point workshop to the compiler ?
Thanks
yshemi -
How to compile and deploy JSP code from Unix server command line?
I am new to JSP technology. We are thinking to modify some of JSP code to meet our need. But I am not sure what I should do after I change JSP code. How can I compile the changed code? How to deploy? How to publish on the web?
All files are regenerated if changed.
That goes for the .java and the .class files that are created. The jsp server checks to see if the current version is the latest. If it is, nothing gets changed or recompiled. If things are different, programs are recompiled.
Youll notice that if you have a new jsp it always takes longer the first time. Or even when you change a jsp, the first time takes the longest for the page to come up in a browser. This is because of recompiling.
Does this make any sense?
Adam -
Compilations and organizing files--suggestions
Because of an issue I was having with music disappearing (see these posts if interested):
http://discussions.info.apple.com/webx?128@@.68b7d52c
http://discussions.info.apple.com/webx?128@@.68b45f4b
I went ahead and followed the advice of others and unchecked the "Keep iTunes Music folder organized" to see if it would solve my problem. So for the last week or so things seem to be fine. Nothing magically disappearing. However, now I'm noticing that albums I want to keep as Compilations don't stay organized in my folder on my hard drive. It takes the songs and puts them in the separate artists folders. They show up as compilations in iTunes, which is good, and they stay filed under the appropriate album names, but I'm a bit anal and would like them to stay together on my hard drive as well. Any suggestions as to how to do this? The only thing I can think of is that when I'm importing a cd with multiple artists I make sure that the "Keep organized" is on and then turn it off?
Also, some others have posted that it's wise to uncheck the "Copy files to iTunes music folder..." What's the reason for doing this other than controlling duplicate files? And if you do uncheck that do you have to manually put those new imports into the iTunes music folder?
Any help is appreciated! Thanks!Given that you can read these files with notepad, I would think you could use Get-Content.
Something like this may work:
$Path = "\\Path\To\Directory"
$12linepath = "\\Path\To\12lineDirectory"
$4linepath = "\\Path\To\4lineDirectory"
$nomatchpath = "\\Path\To\NoMatchDirectory"
$files = Get-ChildItem -Path $Path -Filter *.phy | Select -ExpandProperty FullName
ForEach ($file in $files)
$linecount = (Get-Content $file).count
If($linecount -eq 12)
Move-Item -Path $file -Destination $12linepath
If($linecount -eq 4)
Move-Item -Path $file -Destination $4linepath
else
Move-Item -Path $file -Destination $nomatchpath -
Compilation and Deployment issue.
Hello Friends,
I have little doubt in the concept of compliation of java source.
If any application compiled using some jdkversion say 1.4.1_02 , but after the compilation the executables have been deployed on WAS sever which has jdk version say suppose 1.3.1_07. So if that appliction using some clases or methods which are defined in the higher version and not in the lower version, then in that scenario that application executables depoyed on WAS having some lower version of jdk which do not include those classes or methods ,it will work on the WAS server or not ...
Please provide your comment on this.....Thanks for your reply..
Now I am putting the exact problem what I have facing ...
I developed one application based on jdk version 1.4.1_02 , I compiled that application with the same version and the latter on deployed on WAS server which has jdk -version 1.3.1_07.
But When compiled that application with same jdk version which is on WAS server ie jdk 1.3.1_07 then i got following compilation error:
javac] D:\build\RBILLPAYMENTNew\source\server\WEB-INF\classes\com\reliance\
billpayment\pg\SendMessage.java:47: cannot resolve symbol
[javac] symbol : class Provider
[javac] location: package ssl
[javac] Security.addProvider(new com.sun.net.ssl.internal.ssl.Provid
er());
[javac] ^
[javac] 1 error
The reason may be that class or method may not be defined in jdk 1.31._07
version.
Now my question is if i compiled that code with jdk_1.4.1_02 (successfully) and then deploy it on WAS having (old version jdk 1.3.1_07 ) then it will be work or it sould give the same error what we got during compliation ..
Please comment on this ... -
32 K error while compiling and deploying flex application
Hi SAP Team,
This is regarding the modelling of complex and huge models in VC and
errors when modelling the same.
I have a huge and complex model containing more than 100 queries from
BI 7.0 system which iam using for modelling a VC application.I have 5
layers to display the queries data.
Iam getting deployment error when iam deploying the application which
is a 32 K flex deployment error.
I have modelled the application with multiple nested iviews and
multiple layers.
I have the following questions regarding the above VC model:
1)is there a upper limit of number of queries or services ( i have used
around 100 queries in the above model)that can be used in VC Model
2)is there any performance issue of using this many number of queries
in a single model and running all the queries on a single submit button
click.
3)How to deal with adobe flex compilation error when deploying large or
complex models
4)I have used all the best modelling practices in my model as per note
936390 .But still iam getting the error.
Thanks
P.Navakanth
+919985555065Can anyone pelase tell me what is the significance of the component:
com.sap.visualcomposer.vcflex.default
iam asking the above question because, theversion of above component is different from my actual v ersion of portal i.e EP is at Version 7.0 and SP 16 but the above component is at version7.0 and SP 10.
the SAP note 936390 says that The fix for 32k flex deployment problem was introduced with the release of flex2.0 runtime in SP14 patch 2.
I want to check whether the above component ( com.sap.visualcomposer.vcflex.default ) is actually causing the issue.
To see the component versions of your sap EP please navigate to
http://host:Port/sap/monitoring/ComponentInfo
Thanks
P.Navakanth
Maybe you are looking for
-
Hi, we as a company consider to use the iPhone instead of the Blackberrys for business telecommunication. I, personally, use the iPhone privatly. I have my account and download the Apps I need. But how can a company like ours manage this? Is there a
-
Create opportunity using workflow rule
Hi, Is there a way to create an opportunity record using a workflow rule. We want to be able to create a service opportunity to be triggered automatically by the sales person by either updating a flag or check box which inturn triggers a workflow rul
-
Migrating 9i from Solaris to Linux
I have a Solaris 8 (SPARC) server running 9.0.2.2 running a single database & instance. I'd like to migrate it to a Red Hat Linux (i386) server running 9.2.0.4, however I'm having nothing but problems using exp & imp. I wasn't aware of the "transport
-
Compiling & Installing Example Jar
I have a Vodafone V710, just bought it. I have created an sample application with NetBeans to run on my phone. Installing the JAR over USB with the V710 tool doesnt work. So I found out that there is a lot of discussions about the DRM. I tried to fin
-
System users name in the approval task description
Hi, Please let me know how we can get the user name in the approval task decription in the workflows. For example: the user currently gets the mail: Dear Approver ,please approve the PO. We would like instead o Dear Approver the users name should be