Dcmctl war file deployment error
I am getting the following error while deploying the war using the dcmctl utility on the Unix box.
The command used to run the dcmctl is given below
------ Command --
'dcmctl deployApplication -f /export/home/xxx/igcs_app/igcs.ear -a igcs -co igcs'
------- Error -----
ADMN-300075
Nested exception
Base Exception:
java.rmi.RemoteException:EAR file:/var/tmp/dir4036.tmp/igcs.ear does not exists
Can anyone please let me know the possible causes for this error.
This part of the stack is a likely cause of the issue, probably a configuration issue in your application resulting in a null pointer during the initialization.
java.lang.NullPointerException
at java.io.File.<init>(File.java:203)
at kgu.util.io.FilePathGrafter.<init>(FilePathGrafter.java:34)
at com.doccenter.server.app.ServletContextListener.contextInitialized(ServletContextListener.java:58)
Similar Messages
-
OAS 10G WAR file deployment error (Errors in named queries)
Hi again,
I setup a 10G 10.1.3.1 Application Server and tried deploying my WAR file. In tomcat the WAR file deployment works fine. however in OAS I get this error and currently I'm clueless as to what causes the error.
[Oct 24, 2007 6:03:37 PM] Operation failed with error: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: Book_List_By_RegisterDate ... (other named queries)
My ApplicationContext.xml file contains this
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitManager" ref="persistenceUnitManager" />
<property name="persistenceUnitName" value="BookStudy" />
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter">
<bean
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="database" value="ORACLE" />
<property name="showSql" value="true" />
</bean>
</property>
</bean>
And a sample named query in the hbm.xml file is this
<query name="Book_List_By_RegisterDate">
from BookData
where to_char(regdate, 'MM/dd/yyyy') = to_char(:regdate, 'MM/dd/yyyy')
order by Author.author_name desc, bookname desc
</query>
Thanks,Uncomment, or add, the following line in your application's orion-web.xml file:
<web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
See njr28's comments @ http://forum.hibernate.org/viewtopic.php?t=951324&highlight=oc4j -
Error in J2ee .war file deployment using ASC
Hi,
When I deploy a .war file using Application Server Control web interface, after
30 min or so, it gave me an error: "Processing has already completed". But when
I checked, no application was deployed. Sometimes the same war file deployment
finished successfully if I repeat the deployment process several times. The whole application is in a single .war, the war file size is about 52 MB. Looks like this is a
deployment timeout issue when server is very busy. Any ideas?
Thanks,
RichardI have seen this before when the file names in the archive aren't case sensitive. I
suspect you're using NT, so the direct access to the file system is case insensitive by
default.
Make sure that the META-INF directory in the archive is in upper case, and check the case
requirements for the other files in the archive.
Regards,
Peter.
rashmi wrote:
Hello,
I have created a chat application containing jsps and beans, and deployed it first
in the exploded directory format. It works fine and I was able to run and test
it. Since all the tests are done and the module is over,now i want to package
it in war file and deploy it.Here comes the problem :- I have packaged the application
in a war file using jar command and copied it under applications directory but
when i restarted the server(wls 6.0 sp1) ,i found in console the application is
deployed under applications node and not under web applications node-why? Agian
unpacked the war file and deployed it in exploded directory format now the console
shows it under web app node then why does not it deploy it as web application
when deployed in war format. Any body faced the same situation,Plz help.
rds rashmi -
Hi,
I have a WAR file that causes WL 6.1 (refresh build) to fail when I attempt
to deploy it from the console. This WAR file deploys correctly on WL 6.0 SP2
and several other Web containers (Tomcat, Orion, JRun, Resin). The file is
large (> 5 MB) but I can send it by email if somebody wants to give it a
try.
I have noticed in the logs (see below) that the failure is caused by a
NullPointerException that is thrown in our DataSourceProxy class here:
private void setPingQuery(GenericDataSource dataSource)
dataSource.setPingQuery(PropertiesGetter.getInstance("Constants.properties")
.getProperty("persistency.pingQuery"));
here is the relevant piece of code in PropertiesGetter:
public static Properties loadProperties(String propertiesFileName)
throws IOException
Properties props = new Properties();
InputStream in =
PropertiesGetter.class.getClassLoader().getResourceAsStream(propertiesFileNa
me);
props.load(in);
return props;
so it is the loading of the Constants.properties file that fails and causes
the NullPointerException. This properties file is located under
WEB-INF\classes.
Note that with WL 6.0 SP2, although deployment goes fine, the application
fails later at runtime when Log4J tries to load its own properties file from
the same place. Other Web containers do not have this problem.
Alain.
Alain Rogister
http://www.ubiquity.be
####<Jul 31, 2001 11:52:37 AM CEST> <Debug> <HTTP> <VENUS> <myserver>
<ExecuteThread: '10' for queue: 'default'> <system> <> <101158> <Exception
thrown while loading actel: java.lang.NullPointerException>
java.lang.NullPointerException
at
be.actel.persistence.database.DataSourceProxy.setPingQuery(DataSourceProxy.j
ava:51)
at
be.actel.persistence.database.DataSourceProxy.setDataSource(DataSourceProxy.
java:46)
at be.actel.servlet.ActelDirectServlet.init(ActelDirectServlet.java:23)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:698)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:641)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:586)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:2157)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:2101)
at
weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
a:873)
at
weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
ava:804)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:411)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:160)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:606)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
90)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1093)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:315)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:606)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
90)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:482)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl
.java:913)
at
weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl
.java:900)
at
weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:885)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:618)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
90)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy60.addTarget(Unknown Source)
at
weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationM
anager.java:794)
at
weblogic.management.mbeans.custom.ApplicationManager.addApplication(Applicat
ionManager.java:891)
at
weblogic.management.mbeans.custom.ApplicationManager.addApplication(Applicat
ionManager.java:813)
at
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
.java:729)
at
weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
.java:662)
at
weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManag
er.java:191)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:606)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
90)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy2.update(Unknown Source)
at
weblogic.management.console.webapp._domain.__upload_app._jspService(__upload
_app.java:150)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:263)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:191)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:111)
at
weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
:35)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:147)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:263)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2349)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1956)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
####<Jul 31, 2001 11:52:37 AM CEST> <Error> <J2EE> <VENUS> <myserver>
<ExecuteThread: '10' for queue: 'default'> <system> <> <160001> <Error
deploying application actel: Could not load actel>
####<Jul 31, 2001 11:52:37 AM CEST> <Error> <Management> <VENUS> <myserver>
<ExecuteThread: '10' for queue: 'default'> <system> <> <141042> <Error
deploying application .\config\mydomain\applications\actel.war:
java.lang.reflect.UndeclaredThrowableException>
####<Jul 31, 2001 11:56:07 AM CEST> <Error> <Kernel> <VENUS> <myserver>
<ExecuteThread: '9' for queue: 'default'> <> <> <000000> <ExecuteRequest
failed>
weblogic.management.configuration.ConfigurationError: undefined parent for
mydomain:Application=actel,Name=actel,Type=WebAppComponent:
mydomain:Name=actel,Type=Application
at
weblogic.management.internal.xml.ConfigurationGenerator.getXml(Configuration
Generator.java:210)
at
weblogic.management.internal.xml.XmlFileRepository.saveDomain(XmlFileReposit
ory.java:194)
at
weblogic.management.internal.xml.XmlFileRepository.saveDomain(XmlFileReposit
ory.java:167)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:606)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
90)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:350)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy1.saveDomain(Unknown Source)
at
weblogic.management.internal.SaveDomainTrigger.trigger(SaveDomainTrigger.jav
a:47)
at
weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigg
er.java:238)
at
weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java
:229)
at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:65)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Hi All,
I have figured out the problem. The file path had '\' like c:\abc.xml. The java programs which read the archives does not like backward slash. So, what I did was I replaced backward slashes with forward slashes and things worked fine.
Winzip handles the slashes and that is the reason I was able to open the war file.
Hope this will help you.
Thanks,
Paran -
Class file missing from war file deployment
I have a web application that is being deployed to a war file. I have deployed several times successfully. Then with the latest changes, there is a class file that does not get included into the war file. It does get compiled and does exist in the project directory.
The class file is in a seperate project from the project where the war file deployment profile is; however both projects are in the same workspace.
There are several other classes in the project that contains the missing class file that does get included in the war file. I don't see anywhere in the profile where these files are selected individually.
I'm at a loss as to how to fix this problem other than add the file after deployment.
Appreciate any help or ideas...
Keith...Hi Keith,
You may want to follow this thread....
class object missing from ear file
Brigette -
EAR/WAR File Deployment Query on WEBLOGIC SERVER
Hi,
We are running weblogic server version 10.3.4.0 where EAR/ WAR files deployed on single server and that has been configured in the current WebLogic Server domain. These applications are up and running fine. We need to deploy a new WAR file on the same domain. My questions are:
@ Whether I can deploy new WAR file without STARTing and STOPing weblogic server instance?
@ When deploying new WAR file, whether it will affect existing deployed files or will it affect any other running services for a fraction of second?
Note: This new WAR file is independent application and will not affect any other services in the future.
Please assist.
Thanks,
DheerajThank you for your help but the result is still the same.
I deployed the library on weblogic server suggested by you.
File Deployed as library = oracle.adf.desktopintegration.model.ear
From the folder = C:\Oracle\Middleware\oracle_common\modules\oracle.adf.desktopintegration.model_11.1.1
It is active.
After this I loaded jdeveloper and deploy the same sample application and found that the result is same.
Pls let me know where I am going wrong.
Regards,
Masood
[11:53:09 AM] ---- Deployment started. ----
[11:53:09 AM] Target platform is (Weblogic 10.3).
[11:53:09 AM] Retrieving existing application information
[11:53:09 AM] Running dependency analysis...
[11:53:09 AM] Building...
[11:53:09 AM] Deploying 2 profiles...
[11:53:09 AM] Wrote Web Application Module to C:\JDeveloper\mywork\10MinDemo\ViewController\deploy\10MinDemo_ViewController_webapp.war
[11:53:10 AM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\10MinDemo\deploy\10MinDemo_Project1_10MinDemo.ear
[11:53:10 AM] Deploying Application...
[11:53:10 AM] [Deployer:149191]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' is initializing on 'ADFServer'
[11:53:11 AM] [Deployer:149193]Operation 'deploy' on application '10MinDemo_Project1_10MinDemo' has failed on 'ADFServer'
[11:53:11 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application 10MinDemo_Project1_10MinDemo on ADFServer.: .
[11:53:11 AM] Weblogic Server Exception: weblogic.management.DeploymentException:
[11:53:11 AM] Caused by: java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
[11:53:11 AM] See server logs or server console for more details.
[11:53:11 AM] weblogic.management.DeploymentException:
[11:53:11 AM] Deployment cancelled.
[11:53:11 AM] ---- Deployment incomplete ----.
[11:53:11 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer) -
Hi
I am new to Oracle J2EE environment. I have been using Apache-
Tomcat or iPlanet Application server for all my previous web
applications.
Can someone point me to the relevant resources on how to deploy
a war file on Oracle ? I am having the impression that Oracle
may have some sort of GUI-based deployment tools, if not, then I
really need some good how-to guides on war files deployment.
Oracle 9iAS seems pretty different from Apache-Tomcat.
Thanks a lot.
CTHi Teo,
As far as I can tell, Oracle's J2EE environment means "Oracle
Containers for J2EE" (OC4J). So if you haven't already done so, I
suggest you start with this URL:
http://technet.oracle.com/tech/java/oc4j/content.html
It has links to software, documentation, sample code, etc. for
OC4J.
After that, you can also look at the following sites (not in any
particular order):
http://www.elephantwalker.com
http://www.orionserver.com
http://www.orionsupport.com
http://www.atlassian.com
Good Luck,
Avi. -
Path Changes from hot deploy to war file deploy
We are using hot-deploy in our development environment. When we move from
hot-deploy to war file deployment in the test environment, we have to recode
all of our servlets to point to a new URL for our JSPs. Obviously, this
slows up war file deployment. We'd like to keep hot deploy for development
purposes, but need to resolve this issue.
Hot deploy environment:
wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver linked
to our content (JSP, HTML, source code, etc.) directory, in this case
/u1/webapps/zq.
wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver/WEB-INF/
classes/com linked to our class library structure.
Here's what works in hot deploy:
gotoPage("/zq/jsp/ZipQuote.jsp", request, response );
We must change it to this when we move to a war file:
gotoPage("/jsp/ZipQuote.jsp", request, response );
Here's gotoPage:
private void gotoPage( String address, HttpServletRequest request,
HttpServletResponse response )
throws ServletException, IOException
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher( response.encodeURL( address ));
dispatcher.forward( request, response );
Is there anything in the web.xml file we can change so that we can continue
to use
gotoPage("/zq/jsp/page.jsp", request, response )
like in the hot deploy environment? I've played around with the
<servlet>/<jsp-file> and <servlet-mapping>/<url-pattern> pairs, but with no
luck. Any suggestions? Anything with adding a package declaration to our
JSPs and/or precompiling them in the war file?
I suppose it would be possible to put a JspLoc variable in the
<context-param> or <env-entry>. Then, gotoPage( JspLoc + "page.jsp",
request, response ) would work in both environments, but that seems
inelegant and would add complexity and overhead.
Thanks,
Eric
<servlet>
<servlet-name>ZipQuote</servlet-name>
<jsp-file>/zq/jsp/ZipQuote.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>ZipQuote</servlet-name>
<url-pattern>/zq/jsp/ZipQuote.jsp</url-pattern>
</servlet-mapping>
OK, I've removed the link from applications/DefaultWebApp/zq to
/u1/webapps/zq and linked applications/zq to /u1/webapps/zq instead. Still
working out a couple issues (like acessing other classes), but this looks
like it will work. Thanks for the help.
"Dimitri Rakitine" <[email protected]> wrote in message
news:[email protected]...
> It sounds like in your development environment you deploy your application
> as a defaultwebapp ("/"), and, in the test environment you deploy it as a
> regular webapp with context-root "zq", so, you probably should change one
> of these to match another.
>
> Eric F <[email protected]> wrote:
> > We are using hot-deploy in our development environment. When we move
from
> > hot-deploy to war file deployment in the test environment, we have to
recode
> > all of our servlets to point to a new URL for our JSPs. Obviously, this
> > slows up war file deployment. We'd like to keep hot deploy for
development
> > purposes, but need to resolve this issue.
>
> > Hot deploy environment:
> > wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver
linked
> > to our content (JSP, HTML, source code, etc.) directory, in this case
> > /u1/webapps/zq.
> >
wlserver6.0sp1/config/mydomain/applications/DefaultWebApp_devserver/WEB-INF/
> > classes/com linked to our class library structure.
>
> > Here's what works in hot deploy:
> > gotoPage("/zq/jsp/ZipQuote.jsp", request, response );
>
> > We must change it to this when we move to a war file:
> > gotoPage("/jsp/ZipQuote.jsp", request, response );
>
> > Here's gotoPage:
> > private void gotoPage( String address, HttpServletRequest request,
> > HttpServletResponse response )
> > throws ServletException, IOException
> > {
> > RequestDispatcher dispatcher =
> >
getServletContext().getRequestDispatcher( response.encodeURL( address ));
> > dispatcher.forward( request, response );
> > }
>
> > Is there anything in the web.xml file we can change so that we can
continue
> > to use
> > gotoPage("/zq/jsp/page.jsp", request, response )
> > like in the hot deploy environment? I've played around with the
> > <servlet>/<jsp-file> and <servlet-mapping>/<url-pattern> pairs, but with
no
> > luck. Any suggestions? Anything with adding a package declaration to
our
> > JSPs and/or precompiling them in the war file?
>
> > I suppose it would be possible to put a JspLoc variable in the
> > <context-param> or <env-entry>. Then, gotoPage( JspLoc + "page.jsp",
> > request, response ) would work in both environments, but that seems
> > inelegant and would add complexity and overhead.
>
> > Thanks,
>
> > Eric
>
> > <servlet>
> > <servlet-name>ZipQuote</servlet-name>
> > <jsp-file>/zq/jsp/ZipQuote.jsp</jsp-file>
> > </servlet>
> > <servlet-mapping>
> > <servlet-name>ZipQuote</servlet-name>
> > <url-pattern>/zq/jsp/ZipQuote.jsp</url-pattern>
> > </servlet-mapping>
>
>
>
> --
> Dimitri
-
Deploy large war file (131M) error
hi,
I want to depoly an war (131M) application to oracle 10g application server (9.04),when I deploy to server use this command :dcmctl deployapplication -f ../myapp.war -a my aaa -rc /myapp, error occurred as below:
ADMN-705003
评估阶段失败。这可能是由于评估中使用的适配器的异常错误造成的。
基本异常错误::
java.lang.OutOfMemoryError:null
请致电 Oracle 技术支持。
java.lang.OutOfMemoryError
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_R
EMOTE_SERVER(RMIConnection.java:1527)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java
:1480)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocati
onHandler.java:55)
at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(Rec
overableRemoteInvocationHandler.java:22)
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingle
Instance(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unkn
own Source)
at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown
Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvalua
teDeploy(Unknown Source)
at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate
(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
I have modified dcmctl as
if %found%==true %ex% -jar -Xms256M -Xmx1024M %jarpath% %cmdString%
if %found%==false %ex% -jar -Xms256M -Xmx1024M %jarpath% %cmdString% -o %ohome%
these are the last two lines in the dcmctl.bat file.
I search on metalink and found this document:
Subject: On Deploying an EAR file You Receive Errors: ADM-705003 and/or Memory Errors
Doc ID: Note:290662.1 Type: PROBLEM
Last Revision Date: 26-NOV-2004 Status: MODERATED
The information in this document applies to:
Web Services - Version: 9.0.4
Oracle Containers for J2EE - Version: 9.0.0.0 to 10.10.10
This problem can occur on any platform.
j2ee deployments (WAR, EAR files) using dcmctl or dcmservlet
Symptoms
On deploying an EAR file, get this error on the server:
ADMN-705003 and / or this error on server or client:
java.lang.OutOfMemoryError
Cause
Too large EAR file
Fix
-- use compression in creating the archive
NOTE: in jDeveloper, the default is not-to-compress. See the checkbox under the Options page of the deployment profile's Properties
(right-cleck deployment profile icon, select Properties then find the Options page)
- if error from client, increase jDeveloper deployment-client heap size:
(right-cleck deployment profile icon, select Properties then find the Options page)
- if error from server, increase iAS deployment-server heap size
In EMWebsite for the target OC4J Node, select Server Properties and Java Options
set to e.g., -XmX512M for 512M
References
Note 223063.1 - Installing 9iAS Fails While Deploying OC4J Applications With No space left on device Error
but when I edit java Options any content,oc4j home instance can't startup,how can i do ?
thank you very much
lixinzhuHi Li,
You can have two parallel installations of Application Server, which I would strongly recommend. One instance of 10.1.2.0.2 (upgraded to 10.1.2.2) for Forms and Reports (and maybe Portal, Discoverer etc too), and one instance of 10.1.3.2 for your J2EE code.
If you have multiple servers, then you can cluster those OC4J's, which is great. If you have two servers, you can as well have one for 10.1.2 and one for 10.1.3 making better performance over all. However, there's no problem having both 10.1.2 and 10.1.3 on the same server.
The 10.1.3 server can use the Web Cache (as well as Apache) from the 10.1.2 server.
Regards,
Martin -
Hi,
I am new to weblogic and am trying to deploy jsps and servlets. This is my directory structure:
MiniEjbs --> src, build, myapp dirs
src ---->CalculateHOme,Calculate,CalculateBean. java files
build----> src ----> ejb's class files
----> META-INF-----> *.xml (for ejb)
--->MiniEjb.jar,Miniwebapps.war
myapp--->WEB-INF--->*.xml(web)
--->class---> accessServlet.class
---> calc_num.jsp
when I deploy the war file using console I get an error
J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"at "C:\bea\user_projects\domains\AnilRukkuDomain\AnilRukku\upload\Miniwebapp.war"
I created a new domain AnilRukkuDomain,but all my ejbs and client apps are in C:\MiniEjbs dir.Is this a problem for my deployment? After I deploy would my context root be myapp or do I set that explicitly? My ejbs are deployed without any problem.Will my application run if I create seperate modules and deploy individually?Is it mandatory for me to create an application?
Kindly help me out with this. I appreciate your help.
Thanks,
RukminiHello,
Could you check weblogic.xml?
Specifically the element jsp-descriptors.
For example:
One can receive the same error if weblogic.xml had specified workingDir to a non-existent directory i.e d:\foo.
The problem was that the weblogic.xml specified a non-existent directory for "workingDir" parameter for jsp-descriptor. Check once weblogic.xml especially <jsp-descriptor>.
<jsp-descriptor>
<jsp-param>
<param-name>compileCommand</param-name>
<param-value>javac</param-value>
</jsp-param>
<jsp-param>
<param-name>workingDir</param-name>
<param-value>d:\foo</param-value>
</jsp-param>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
Try to comment any elements in weblogic.xml that is either not used or redundant.
There is one CR also filed for prabably similar issue. You can get more informaiton about CR200819 from bea support.
Regards,
Kuldeep Singh. -
Application Viewer Deployment Problem - War File Path Error
Hello all!
I just installed a new CC&B demo environment (2.2SP6 on Apache/Windows) and the application viewer is not working at all. The first thing it does is throw a bunch of errors, such as
source file does not exist data/tables/updated.xml
source file does not exist data/maintobj/updated.xml
source file does not exist data/alg/updated.xml
source file does not exist data/batchContro/updated.xml
Then the App Viewer shows the following:
Data Dictionary Not built - submit F1-AVTBL
Maint. Object Not built - submit F1-AVMO
Algorithm Not built - submit F1-AVALG
Batch Control Not built - submit F1-AVBT
To Do Type Not built - submit F1-AVTD
Service XML Built 2008-04-14 (15:40)
Java Docs Built 2008-04-16 (08:43)
Cobol Source Built 2008-04-14 (10:22)
Manually submitting one of those throws this error:
File path to WAR file and location to expand WAR file are required if Use War File is switched.
Anyone seen anything like this?
Edited by: Adam D. on May 25, 2010 1:43 PMThat worked! Thank you so much. App viewer loads now and all the F1-* items show as built. Only problem now is all the CM xml files seem to be missing. Every time you click something in app viewer it throws an error such as:
Source file does not exist data/maintobj/ENG/CM/ext_BATCHCNTL.xml
This is just one of them. There are many, and they all exist in that same CM directory... which doesnt exist haha
Thanks again for the advice! -
Apache Turbine Application (WAR file) Deployment Issue in WL 8.1
If I try to deploy my Turbine War file in WebLogic 8.1 server as that of simple servlets War and I try access it, I get the following error:
Error 500--Internal Server Error
org.apache.turbine.services.InstantiationException: ServiceBroker:
unknown service PoolService requested at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:354) at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:296) at
org.apache.turbine.util.RunDataFactory.putRunData(RunDataFactory.java:226)
at org.apache.turbine.Turbine.doGet(Turbine.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
While deploying, it doesn't show any error. Only when I access the application, I get the error.
Could any one please help me out on this? Please give proper steps to be followed to deploy Turbine WAR file in WL 8.1
Thanks in advance,
Ravi K.If I try to deploy my Turbine War file in WebLogic 8.1 server as that of simple servlets War and I try access it, I get the following error:
Error 500--Internal Server Error
org.apache.turbine.services.InstantiationException: ServiceBroker:
unknown service PoolService requested at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:354) at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:296) at
org.apache.turbine.util.RunDataFactory.putRunData(RunDataFactory.java:226)
at org.apache.turbine.Turbine.doGet(Turbine.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
While deploying, it doesn't show any error. Only when I access the application, I get the error.
Could any one please help me out on this? Please give proper steps to be followed to deploy Turbine WAR file in WL 8.1
Thanks in advance,
Ravi K. -
Export WAR file compilation error
Hi,
I have an application that compliles and deployes fine in JSC. However, if I try to export WAR file to deploy on the Weblogic server I get the error below. The error seems to be due to the fact that one of the JSPs resides in a subdirectory. Moving it to the main directory solves the problem, but this application will have many JSPs and I won't be able to keep them in the same directory. Is it a bug or I miss something?
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Building jar: E:\cartman\dist\cartman.war
do-dist:
extract.war:
Expanding: E:\cartman\dist\cartman.war into E:\cartman\dist\tmp
Deleting: E:\cartman\dist\tmp\WEB-INF\sun-web.xml
Deleting: E:\cartman\dist\cartman.war
Copying 1 file to E:\cartman\dist\tmp\WEB-INF
errorhandler.modifications:
Moving 1 files to E:\cartman\dist\tmp\WEB-INF
Processing E:\cartman\dist\tmp\WEB-INF\web.before.errorhandler to E:\cartman\dist\tmp\WEB-INF\web.xml
Loading stylesheet E:\cartman\nbproject\export-web-xml.xsl
j2ee13.init:
j2ee13.web.xml:
Moving 1 files to E:\cartman\dist\tmp\WEB-INF
Processing E:\cartman\dist\tmp\WEB-INF\web.before.j2ee13 to E:\cartman\dist\tmp\WEB-INF\web.xml
Loading stylesheet E:\cartman\nbproject\j2ee13-web-xml.xsl
j2ee13.index.jsp:
j2ee13.jspf:
Moving 5 files to E:\cartman\dist\tmp
Transforming into E:\cartman\dist\tmp
Processing E:\cartman\dist\tmp\Help.jsp.before.j2ee13 to E:\cartman\dist\tmp\Help.jsp
Loading stylesheet E:\cartman\nbproject\j2ee13-jsp.xsl
Processing E:\cartman\dist\tmp\Login.jsp.before.j2ee13 to E:\cartman\dist\tmp\Login.jsp
Processing E:\cartman\dist\tmp\ThankYou.jsp.before.j2ee13 to E:\cartman\dist\tmp\ThankYou.jsp
Processing E:\cartman\dist\tmp\WelcomeUser.jsp.before.j2ee13 to E:\cartman\dist\tmp\WelcomeUser.jsp
Processing E:\cartman\dist\tmp\adminReports\adminReportsMain.jsp.before.j2ee13 to E:\cartman\dist\tmp\adminReports\adminReportsMain.jsp
Processing E:\cartman\dist\tmp\Help.jsp.before.j2ee13 to E:\cartman\dist\tmp\Help.jsp
Processing E:\cartman\dist\tmp\Login.jsp.before.j2ee13 to E:\cartman\dist\tmp\Login.jsp
Processing E:\cartman\dist\tmp\ThankYou.jsp.before.j2ee13 to E:\cartman\dist\tmp\ThankYou.jsp
Processing E:\cartman\dist\tmp\WelcomeUser.jsp.before.j2ee13 to E:\cartman\dist\tmp\WelcomeUser.jsp
Processing E:\cartman\dist\tmp\adminReportsMain.jsp.before.j2ee13 to E:\cartman\dist\tmp\adminReportsMain.jsp
Failed to process E:\cartman\dist\tmp\adminReportsMain.jsp.before.j2ee13
E:\cartman\nbproject\build-impl.xml:411: java.io.FileNotFoundException: E:\cartman\dist\tmp\adminReportsMain.jsp.before.j2ee13 (The system cannot find the file specified)
BUILD FAILED (total time: 15 seconds)The file adminReportsMain.jsp is under Web Pages/adminReports directory.
Thanks in advance,
VladMaybe I am not going down the right path,
Have you opened your build-impl.xml?
I see two different location for this file and plus the one you are saying this file is located. Is there two adminReportsMain.jsp?
Processing E:\cartman\dist\tmp\adminReports\adminReportsMain.jsp.before.j2ee13 to
E:\cartman\dist\tmp\adminReports\adminReportsMain.jsp'Processing E:\cartman\dist\tmp\WelcomeUser.jsp.before.j2ee13 to E:\cartman\dist\tmp\WelcomeUser.jsp
Processing E:\cartman\dist\tmp\adminReportsMain.jsp.before.j2ee13 to
E:\cartman\dist\tmp\adminReportsMain.jsp -
WAR file deployment problem on WebSphere 6.1
I have a WAR file that used to work on WebSphere 6.1. Somewhere, probably in PVCS someone tinkered with it and it no longer starts properly. The war file will deploy and indicate it has started in the control panel. When the UI is pulled up, only a blank page is returned. There are no errors in the SystemErr or SystemOut logs and my own log4j logs indicate no failures. This has befuddled me for some time. Does anyone have any experience with this? I've run the validator on the war file and it says everything is fine. Thanks in advance.
its only a war, so it is only a webapp right? Try deploying on Tomcat 6 and see what happens then; perhaps it will give you more information as to where the problem is. Just don't neglect one thing: it may not be a problem in the war, but something else that changed! Server setting, network setting, etc.
-
War file deployment to Test env not working
Hi All,
i am using war file as scheduler for calling bpel process. Now i need to move the same war to test environment. For this i followed this site http://biemond.blogspot.ca/2009/04/using-weblogic-deployment-plan-to.html. But it is not working.
even i update the generated deployment plan to weblogic console, but still this is not working.
here is the my web.xml file
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>wsdlUrl</param-name>
<param-value>http://sasoah91.corp.gdglobal.ca:8001/soa-infra/services/TarakTest/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL</param-value>
</context-param>
<servlet>
<servlet-name>SOASchedulerServlet</servlet-name>
<servlet-class>sample.oracle.otn.soascheduler.SOASchedulerServlet</servlet-class>
<init-param>
<param-name>cronExpr</param-name>
<param-value>0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>SOASchedulerServlet</servlet-name>
<url-pattern>/soaschedulerservlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/soaschedulerservlet</welcome-file>
</welcome-file-list>
</web-app>My deployment plan is
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
<application-name>TSSScheduler.war</application-name>
<variable-definition>
<!-- add the wsdl var -->
<variable>
<name>wsdlUrl</name>
<value>http://sasoah81.corp.gdglobal.ca:8001/soa-infra/services/TSStoRMS/TSStoRMSScheduler/tsstormsschedulerproject_client_ep?WSDL/</value>
</variable>
</variable-definition>
<module-override>
<module-name>TSSScheduler.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>weblogic-web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>wsdlUrl</name>
<xpath>/web-app/context-param/[param-name="wsdlUrl"]/param-value</xpath>
<operation>replace</operation>
</variable-assignment>
</module-descriptor>
</module-override>
<!--<config-root>/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy</config-root>-->
<config-root>/u01/textdata/SOATST/Tarak/deploymentplan</config-root>
</deployment-plan>I ran below code
export ORACLE_HOME="/u01/app/soadev/product/fmw11/middleware"
echo "ORACLE_HOME=$ORACLE_HOME"
ls -l $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
. $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
export JAVA_HOME="/usr/java/jdk1.6.0_24"
export planname="TSSScheduler.xml"
export warfile="/u01/textdata/SOATST/Tarak/TsstoRmsSchedulerProject/deploy/TSSScheduler.war"
echo "---------------------------------------"
echo "THE CLASSPATH=$CLASSPATH"
echo "---------------------------------------"
java weblogic.Deployer -adminurl t3://sasoah81.corp.gdglobal.ca:7001 -username weblogic -password Soatst_s132 -deploy -name TsstoRmsSchedulerProject -source $warfile -targets AdminServer -stage -plan $plannameCan some one please let me know where i am going...
Also can some one tell me any other way to change the endpoint in war file. this is very urgent so kindly request all to let me know how to go with it.
Regards,
Tarak.Hi,
Here is what the parameter says
<servlet>
<servlet-name>SOASchedulerServlet</servlet-name>===================My Serverlet name
<servlet-class>sample.oracle.otn.soascheduler.SOASchedulerServlet</servlet-class>======Server class
<init-param>
<param-name>cronExpr</param-name>=======this is cron job
<param-value>0 0,5,10,15,20,25,30,35,40,45,50,55 * * * ?</param-value>===this invoke my bpel process in every 5 mins.
</init-param>
</servlet>
Please see the side line comments
Sure i will open the ticket,
Regards,
Tarak.
Maybe you are looking for
-
I have loaded Lion on my MacBook and the new trackpad functions work only on one ordinary account or user and not on the admin account. The trackpad preferences are well set. What can I do?
-
WLS 8.1 JAX-RPC stubs and SSL
I am part of an industry effort to assess WS interop. We have created a common WSDL that will be implemented in WAS, .NET and WLS 8.1. As part of this effort, we are also trying to use two-way SSL authentication. However, I have not found a way to co
-
F-53, Simulate time getting message "Correct the marked line items"
Hi All, While posting the outgoing payment (F-53), at time of simulate I'm getting the message " correct the marked line items" & missing the vendor side line item but showing for enter amont( bank acccount line items) on screen. when I trying to do
-
How do I identify what is using a color within a document?
I am working with two other "designers" and am having to set up complicated art files for press. The "add all used color options" brings up several swatches that are being used within the documents. Unfortunately neither one of these designers are pr
-
PhoneGap Dreamweaver CS5.5 Android App Fail
I am attempting the to create an Android app using Dreamweaver CS 5.5 and PhoneGap. The build always fails with the following message at the end of the error log: -dex: [echo] Converting compiled files and external libraries into C:\Users\ROG\De